|Targets the nearest shiny...
|Goes to THE shiny it sees.
|Straight to it.
|Picks up the shiny.
|Targets the nearest shiny...
|A handy command when using this macro is
| /mqp
| that stands for /MacroquestPause...
|pauses it so you can move around a wall or mob or whatever
| /MQP again and it unpauses.
|doesn't recheck for close shiny things until it picks up the one it's after
|Kinda like a raccoon...
Sub Main
:Loop
/call TargetItem
/call MoveToItem ${Macro.Return}
/call GetItem
/goto :loop
/return
Sub TargetItem
:GetTarget
/echo Targeting the closest Glowing Globe
/if (${Bool[${Ground[Glowing Globe].DisplayName}]}) {
/ItemTarget Glowing Globe
/face item
/return ${Ground.ID}
} Else {
/echo NO MORE SHIINY!!!!!!!!!???
/delay 5s
/goto :GetTarget
}
/return
Sub MoveToItem(int ${Shiny})
/echo ${Ground.Distance}
:keepmoving
/squelch /face item
/keypress forward hold
/delay 2
/if (${Ground[Glowing Globe].Distance3D}>10) /goto :keepmoving
/keypress back
/return
Sub GetItem
/if (${Ground[Glowing Globe].LineOfSight}) /echo ${Ground[Glowing Globe].Grab}
/delay 1s
/if (${Cursor.ID}) /autoinv
/if (${Window[InventoryWindow].Open}) /windowstate InventoryWindow close
/echo SSSSHHHHIIIIIINNNNNNYYYYY!!!!
/autoinv
/return