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 acorns in Misty Thicket
|
|
|------------------------------------------------------------------------------------
#Event End "#*#There is no place#*#"
#Event End "[MQ2] End"
#Event CGank "#*#Couldn't parse#*#"
#Event Find "#*#Couldn't find #*#"
Sub Main
/declare lootr int outer
/declare lootrt int outer
/declare test
:Start
/call GMCheck
| /call PC
/itemtarget *green
/varset test ${Ground.Name}
/echo ${Ground.Name} ground
/echo ${test} test
/if (${test.Equal["NULL"]}) {
/echo pause
/call Pause
}
/doevents
/delay 1s
/Gank
/delay 1s
/if (${Cursor.ID}) {
/echo Keeping a ${Cursor.Name}... WOOT!
/varcalc lootr ${lootr}+1
}
/autoinventory
/delay 1s
/call DisplayStats
/doevents
/delay 1s
/call GMCheck
|/call PC
/goto :Start
/return
Sub Event_End
/echo Ending Macro
/call DisplayStats
/endmacro
/return
Sub Event_CGank
/echo you do not have MQ2CGank Loaded
/endmacro
/return
Sub Event_Find
|/varset x 30
/call DisplayStats
/call pause
/return
Sub Pause
/echo No yew leafs.. Pausing 15 min
/delay 5m
/echo tic toc .. 5 Min
/delay 5m
/echo tic toc .. 10 Min
/delay 5m
/echo tic toc .. 1 Min
/echo DING DING DING!!!
/echo time to try again
/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
}
/return
Sub PC
:redopc
/if (${Spawn[pc noalert 2 radius 100].ID}) {
/echo player nearby
/beep
/beep
/beep
/echo Player Nearby!!!
/echo pausing the macro...
/afk Gone for More Beer - BRB
/delay 2m
/goto :redopc
}
/return
|--------------------------------------------------------------------------------
|SUB: Display Stats
|--------------------------------------------------------------------------------
Sub DisplayStats
/echo Test
/echo ${lootr} yew leafs
/return