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.

C# Question

Featured Replies

 

What I have..

    internal void CastSpell(Spell Spell, int shards, int playerHP, int targetHP)
    {

if ((Spell.KnownSpell && Spell.IsSpellUsable && Spell.IsDistanceGood) && (ObjectManager.Me.SoulShards > shards) && (ObjectManager.Me.HealthPercent <= playerHP && ObjectManager.Target.HealthPercent <= targetHP))
        {
            Logging.Write("Doing Stuff.. " + Spell.Name);
            Spell.Launch();
            return;
        }
    }

 

What I want to do... (left blank areas between , for reference)

        CastSpell(Agony, 3);

        CastSpell(Siphon, , 30, 20);

        CastSpell(Reap, 3);

        CastSpell(DrainSoul,  , 30, 15);

 Some spells require knowing how many shards I have, so not, same with player and target HP.

How would I go about making this work without having to input a value for each?

 

Note: This works for all 4 variables(to be expanded on later), but I want it where I only have to input what is necessary. I feel this is something I should already know, but it seems to be eluding me.

 

Any suggestions or recommendations? 

I'f i'm going down the wrong path, please let me know. 

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.