• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Problem - Shiny Macro

Joined
Apr 28, 2017
RedCents
502¢
I'm sure its been done before but i couldn't find it. Currently I'm building a macro that can search for glowing globes in zones and I'm editing TreeHuginDruids original code for 12th anni mission but i ran into an issue. After about 10 mins every time the macro either targets a glowing globe not in map or mq2nav is running into difficulties. Can someone take a look at the code and see whats going on? I've been live testing it in shard's landing with a basic mesh
 

Attachments

Doesn't use fancy pathing plugins, but it sucks em up like a hoover as long as there isn't a wall... :)

Rich (BB code):
|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
 
Short of warping to it, there seems to be shinys that you're just not going to be able to get to and a macro will just get stuck looping on trying to get it. How do you add a check in, where if you try to target and grab it 5 or 10 times and it doesn't happen, you ignore the shiny at that location and just move on to the next?
 
Problem - Shiny Macro

Users who are viewing this thread

Back
Top
Cart