|-------------------------------------------------------------------------------------------------
| ShroomGank.MAC
| Written by Armysoldier
|
| Updated 15 APR 06 - added some delays to slow down the ganking.. which seems to cause CTD
| - added player check
|
|
| Useage : /macro ShroomGank
| Description : This macro will gank Mushrooms and Fungus in North Kaladim
|
|Edit by Magicdragon 1 Jun 08
|shortened the delays and added a wait timer for autoinventory.
|Also modified the PC check to work if anyone is near.
|Removed name from the itemtarget as the mushrooms do not always have same names so it will now
|target the closest groundspawn.
|To avoid problems with targeting the Brew Barrel and oven stand on far side of
|the farm. Aprox loc 657, -72
|------------------------------------------------------------------------------------------------
#Event End "#*#There is no place#*#"
#Event End "[MQ2] End"
#Event CGank "#*#Couldn't parse#*#"
#Event Find "#*#Couldn't find#*#"
Sub Main
/declare x int outer
/call Start
/return
Sub Start
/autoinventory
/for x 1 to 18
/call GMCheck
/call PC
/itemtarget
/doevents
/delay 1s
/Grab
:wait
/if (!${Cursor.ID}) {
/delay 1s
/goto :wait
}
/autoinventory
/delay 2s
/doevents
/autoinventory
/next x
/call Pause
/return
Sub Event_Find
/echo mushroom shortage. break time.
/call Pause
/return
Sub Pause
/echo No Shrooms.. Pausing 5 min 30 sec
/afk Gone for More Beer - BRB
/delay 1m
/echo tic toc .. 1 Min
/delay 1m
/echo tic toc .. 2 Min
/delay 1m
/echo tic toc .. 3 Min
/delay 1m
/echo tic toc .. 4 Min
/delay 1m
/echo tic toc .. 5 Min
/delay 30s
/echo tic toc .. 5 Min 30 Sec
/echo DING DING DING!!!
/echo time to try again
/afk
/call Start
/return
Sub GMCheck
:redo
/if (${Spawn[gm].ID}) {
/beep
/beep
/beep
/echo GM has entered the zone!
/echo pausing the macro...
/afk Gone for more beer BRB
/delay 2m
/goto :redo
/afk
}
/return
Sub PC
:redopc
/if (${SpawnCount[pc radius 225]} > 1) {
/echo player nearby
/beep
/beep
/beep
/echo Player Nearby!!!
/echo pausing the macro...
/afk Gone for More Beer - BRB
/delay 2m
/goto :redopc
/afk
}
/return