Curently this will run in the background, forages and keeps everything and properly handles things if a character is attacking something.
Okay...here come the questions...:)
1) /if $char(ability,forage)>0 /call DoForage
Is this a reasonable (read: reliable) way to check if the forage skill is loaded and ready to go?
2) What is the best way to make sure the cursor has been cleared if something is on it? (placed in autoequip)
3) Is it possible to test if a character is sitting or standing?
aka. /if SITTING { /stand /dosomething /sitbackdown }, or if standing remain standing....
Any help appreciated...code below
Code: Select all
Sub Main
:WaitForage
/if $char(ability,forage)>0 /call DoForage
/doevents
/delay 10
/goto :WaitForage
Sub DoForage
/if $combat==TRUE {
/attack off
/varset v10 1
}
/doability forage
/if $invpanel==FALSE /press i
/mouseto auto
/click left
/delay 5
/click left
/if $invpanel==TRUE /press i
/if $v10==1 /attack
/varset v10 0
/doevents
/return
/endmacro



