Simple Script help

Stormlord

Active Member
Code:
function main()
{
   declare stwarn int 0
   declare matime Float 0

;-----------;
; MAIN LOOP ;
;-----------;
   do
    {

      if ${Me.Ability[Perseverance].IsReady}
	{
	eq2execute /useability Perseverance
	}
}
while 1
}
Object is to just have the script check to see if perseverance is up, and cast it if its not. Apparently tho IsReady doesn't check that just if the spell is castable. I've tried different formats of Me.Maintained but can't seem to find the magic syntax that would make it work, it keeps returning NULL regardless if perseverance is up or down.

So any indication of what the proper formatting is for this would help immensly...
 

bob_the_builder

Well-Known Member
Code:
if !${Me.Maintained[Perseverance](exists)} && ${Me.Ability[Perseverance].IsReady}
I dont know what Perseverance is but try that, might work.

So you could test it using

echo ${Me.Maintained[Perseverance](exists)}

Bob
 

Stormlord

Active Member
Will give that a try thanks. Perseverance is a Zerker AA that is intstant cast, instant recast, instant recovery, it puts one trigger on you that when your health falls below 30% heals you for an amount that scales by level ~15-20% health.
 

bob_the_builder

Well-Known Member
Will give that a try thanks. Perseverance is a Zerker AA that is intstant cast, instant recast, instant recovery, it puts one trigger on you that when your health falls below 30% heals you for an amount that scales by level ~15-20% health.
I ment I dont know if it a effect or a maintained spell. Like Spirit of the Wolf vs Swill. You can check for Swill with Me.Maintained but cant check Spirit of the Wolf.

Bob
 

Kannkor

Ogre
Think you've been botting a little too long..

It's now a perma buff that fires once every 30 seconds and refreshes automatically.

However if you want to simply buff that one... Bob's line should work... otherwise buff it the same way you buff all your buffs.
 
Top Bottom