Jump to content

Recommended Posts

where do I start with lua? I have a rogue and I wish to look cleaner like apply poisins, vanish at 20 percent reset from fight then regen, and range pulling certain targets with melee classes that have range weapons. SHOW ME THE WAY COMMANDER. SOMEONE BE THE COMMANDER O.O

Link to comment
https://wrobot.eu/forums/topic/9842-how-do-i-get-into-lua/
Share on other sites


Can also be modified to use Regeneration in Battlegrounder. For things like vanishing in combat and staying in stealth to regen you need C# to subscribe to fight events and block the bot's main thread to stop it from engaging in combat (really advanced - better start slow).

Link to comment
https://wrobot.eu/forums/topic/9842-how-do-i-get-into-lua/#findComment-46088
Share on other sites

Look at the other fightclasses and check for simple numbers at first near spells names to get an idea of what it's doing.

eg. Most fight classes will have ObjectManager.Me.HealthPercent which is a check to see if your health is greater or less than a certain threshold. "If health less than 70%, cast renew"

Start tweaking numbers to change what percentage what spells trigger, if you don't want it to do a spell, comment it out by placing '//' infront of the lines of code.
 

if (RaptorStrike.KnownSpell && ObjectManager.Target.GetDistance < 8)
        {
            RaptorStrike.Launch();
        }

change to
 

if (RaptorStrike.KnownSpell && ObjectManager.Target.GetDistance < 8)
        {
            //RaptorStrike.Launch();
        }

Here's a more complex line that is almost human readable, hopefully the fightclasses you download were written well:
 

if (ObjectManager.Me.HealthPercent <= 40 && FlashHeal.KnownSpell && !ObjectManager.Me.HaveBuff("Shadowform") && ObjectManager.Me.ManaPercentage > 15)
        {
            FlashHeal.Launch();
        } 

"If my health is less than 40% and I know flash heal, I'm not in shadowform (the ! means inverse) and I have some mana"

 

Link to comment
https://wrobot.eu/forums/topic/9842-how-do-i-get-into-lua/#findComment-46117
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...