(Kind of a mixture of a few fishing macro's I found, and I squished em all together with what I wanted to do)
Thanks in advance for all help and critique!
Seems to be working
Code: Select all
|***************************************************************************************|
| - YodaFish.mac - *|
| - By: Yoda *|
| - v1.0 *|
| *|
| Usage: *|
| To Fish and Gate if anything attacks you. *|
| Will Sit and camp out when you run out of bait. *|
| To be used with a Fisherman's Companion. *|
| *|
|***************************************************************************************|
#turbo
#event BrokenPole "You can't fish without a fishing pole, go buy one."
#event NoBait "You can't fish without fishing bait, go buy some."
#event Stunned "You are struck by a sudden force"
#event Fizzle "Your spell fizzles"
#event Interupt "Your spell has been interrupted"
#event NotStunned "You are no longer stunned"
Sub Main
/cleanup
:Fish
/call CheckPole
/doability Fishing
/delay 65
/doevents
/if "$cursor(name)"=="Tattered Cloth Sandal" /destroy
/delay 1
/if "$cursor(name)"=="Rusty Dagger" /destroy
/delay 1
/if $cursor()==TRUE /call KeepItem
/if n $char(hp,pct)<98 /call GateMe
/goto :Fish
/return
Sub KeepItem
/if "$cursor(name)"!="Fish Scales" /call DoLog "Caught $cursor(name)..."
/autoinventory
/return
Sub CheckPole
/if "$equip(primary,name)"~~"Brell's Fishin' Pole" /return
/if $invpanel==FALSE /press i
/if "$char(state)"=="SIT" /sit
/delay 4
/cast item "Fisherman's Companion"
/delay 11s
/autoinventory
/press i
/sit
/return
Sub GateMe
/delay 6
/if "$char(state)"=="SIT" /sit
/target myself
:Gate
/cast "Gate"
/delay 5
/doevents
/delay 6s
/if "$char(state)"=="STAND" /sit
/camp desktop
/endmacro
Sub DoLog(Text)
/mqlog @Text
/echo @Text
/return
Sub Event_BrokenPole
/call CheckPole
/return
Sub Event_NoBait
/call GateMe
/return
Sub Event_Fizzle
/goto :Gate
/return
Sub Event_Interupt
/goto :Gate
/return
Sub Event_Stunned
:Wait
/delay 1s
/doevents
:goto wait
/return
Sub Event_NotStunned
/goto :Gate
/return

