Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //v2 NO CURE
- @clearusequeue
- @cleartargetqueue
- //pause 50
- headmsg '*Auto Bandage Self*' 67
- if not @listexists 'boolBandage'
- @createlist 'boolBandage'
- endif
- createtimer 'actionCD'
- //changed actionCD from 600 to 650
- settimer 'actionCD' 650
- if not timerexists 'failSafe'
- createtimer 'failSafe'
- endif
- if not timerexists 'bandageMacro'
- createtimer 'bandageMacro'
- endif
- while not dead
- if @injournal 'the bandages' 'system'
- @clearlist 'boolBandage'
- elseif @injournal 'you heal what little' 'system' or @injournal 'you have failed to cure your target' 'system'
- @clearlist 'boolBandage'
- endif
- if timer 'failSafe' >= 15000
- @clearlist 'boolBandage'
- settimer 'failSafe' 0
- endif
- settimer 'bandageMacro' 12000
- if @findobject 'lefthand'
- @setalias 'currentWeapon' 'found'
- endif
- if not @inlist 'boolBandage' 'true'
- if targetexists
- canceltarget
- pause 25
- endif
- if hits < maxhits or poisoned
- @clearjournal
- if @findtype 0xe21 'any' 'backpack'
- settimer 'bandageMacro' 0
- useobject 'found'
- settimer 'actionCD' 0
- while not targetexists 'beneficial'
- if @injournal 'you must wait to perform another action' 'system'
- replay
- endif
- endwhile
- target! 'self'
- headmsg '***Bandaging***' 33
- waitforjournal 'you begin' 500
- //original value 300
- else
- headmsg '*Out of bandages!*' 50
- pause 4000
- endif
- if @injournal 'you begin' 'system'
- clearjournal
- settimer 'failSafe' 0
- pushlist 'boolBandage' 'true'
- while not @injournal 'the bandages' 'system' and not @injournal 'you have been cured of all poisons' 'system'
- if @injournal 'you heal what little' 'system' or @injournal 'you have failed to cure your target' 'system'
- break
- else
- endif
- endwhile
- //pause 50
- if @injournal 'you have been cured of all poisons' 'system'
- playsound 884
- //doesnt always work. possibly because of no pause + ping
- headmsg '*Bandage Cured!*' 56
- endif
- endwhile
- @clearlist 'boolBandage'
- endif
- endif
- endif
- endwhile
- @clearusequeue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement