Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Interrupt own Spell Fightclass c#

Featured Replies

Hello, you can use code like 

       var spell = new Spell("Healing Touch");
        spell.Launch(true, false);
        Thread.Sleep(Usefuls.Latency + 300);
        while (ObjectManager.Me.CastingSpell.Name == "Healing Touch")
        {
            if (ObjectManager.Me.HealthPercent > 80)
            {
                Lua.LuaDoString("SpellStopCasting() SpellStopCasting()");
                break;
            }
            Thread.Sleep(50);
        }

https://wrobot.eu/forums/topic/2652-how-to-cancel-the-current-cast/

 

  • Author

@Droidz while (ObjectManager.Me.CastingSpell.Name == "Healing Touch ") do nothing but while (ObjectManager.Me.CastingSpellId == 8903) works. Why?

What game locale are you using? The safest way is to use NameInGame instead of Name if you are using EN game locale.

Or instead of string name comparsion - use something like this (works for me 100% times):
 

public Spell LightningBolt = new Spell("Lightning Bolt");

if (ObjectManager.Me.CastingSpell.NameInGame == LightningBolt.NameInGame)
{
  // Your action here
}

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.