• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Looting corpe macro

jamesly

New member
I know a lot of macros are around to loot npc corpses etc, and there is still in wait4rez etc to loot your corpse but I used to have a macro that if I just ran to my corpse and did /mac loot 0 or 1, the number being the amount of items left on corpse. I recently had my hard drive fail and lost it and was searhing trying to find one but couldnt come up with it. If anyone has one or can give me a direction to head in to pull the looting from wait4rez or something and make it into a general macro I would be thankful. Thanks.
 
Rich (BB code):
#Event CorpseTooFar "The corpse is too far away to summon." 

Sub main 
/declare LootTotal int 
/declare LootSlot int 
/declare LootLeft int 

/varset LootLeft ${Param0} 

| Check number items to be left on corpse specified.  If not, default to 1 and explain parameter. 
/if (!${Defined[Param0]}) { 
   /varset LootLeft 1 
   /echo Useage: /mac loot <# items to leave on corpse> 
   /echo Useage: /mac loot 0 <Loots all items> 
   /echo Using default LootLeft of ${LootLeft} 
} 

| Get corpse on target and continue if able to target your corpse. 
/target mycorpse 
/if (${Target.Type.NotEqual[CORPSE]} || !${Target.ID}) { 
 
   /echo Unable to target your corpse. 
   /endmacro 
} 
    
:PullCorpseClose 
/sumcorpse 
/doevents 
/loot 
/delay 1s 
/if (${Me.State.NotEqual[BIND]}) { /goto :PullCorpseClose } 


/varset LootTotal 0 

| Try to get a accurate corpse item count to do all looting at one time. 
:LootLag 
/if (${LootTotal}!=${Corpse.Items}) { 
   /varset LootTotal ${Corpse.Items} 
   /delay 1s 
   /goto :LootLag 
} 

| Make sure not to loot to much/completely accidently. 
/if (${LootTotal}<=${LootLeft}) { 
 
   /echo Looting aborted.  Error in number items to be left on corpse. 
   /echo Do: /mac loot 0   To completely loot your corpse 
   /notify LootWnd DoneButton leftmouseup 
   /endmacro 
} 

| Set the number of items to actually loot leaving LootLeft number items on the corpse. 
/varset LootTotal ${Math.Calc[${Corpse.Items}-${LootLeft}]} 

 

|Main Looting Loop 
/for LootSlot 1 to ${LootTotal} 

| Loot all items fast the first time around even with connection lag or the lag when looting bags. 
:LootItem 
/itemnotify loot${LootSlot} rightmouseup 
/delay 5 
/if (${Corpse.Item[${LootSlot}].ID}==NULL) { 
   /next LootSlot 
} else { 
   /delay 5 
   /goto :LootItem 
} 

:DoneLooting 
/notify LootWnd DoneButton leftmouseup 
 
/echo Done looting.  ${LootLeft} Item(s) left on your corpse. 
/endmacro 

Sub Event_CorpseTooFar 
/echo Corpse to far away to summon.  Macro Ending. 

/face 
/endmacro
 
Your corpse stays active till your res time expires. So if you been online the whole time (IE Your didn't camp after death while macroing) and loot your corpse it will dissapear but it's not like you could have ressed it anyways so no loss.
 
Looting corpe macro

Users who are viewing this thread

Back
Top
Cart