My macro won't delete a certain item

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

1everdude
decaying skeleton
decaying skeleton
Posts: 4
Joined: Tue May 01, 2012 1:47 pm

My macro won't delete a certain item

Post by 1everdude » Mon Oct 08, 2012 3:50 pm

Hi everyone, this is my first post here. I found a simple macro somebody posted on a forum of the EQEmu server I play on, and modified it a bit to pick up and then delete junk items I loot from Velketor, and then target and loot the nearest corpse. I don't know much at all about writing macros, but I'm trying to teach myself. This macro isn't super efficient, and I'm sure there are better ways of doing it, but it works. Anyways, I added one item to the list that the macro will pick up, but not delete. I'd appreciate it if someone could take a look at the code and tell me what I'm doing wrong?
The item that's not being deleted is the "Barbed Ringmail Gloves"
It's working fine with everything else.
Anyways, thanks in advance. :D

Code: Select all

Sub Main
    /if (${FindItemCount[=Barbed Ringmail Gloves]}) /shiftkey /itemnotify ${FindItem[=Barbed Ringmail Gloves].InvSlot} leftmouseup
    /if (${Cursor.Name.Equal[Barbed Ringmail Gloves/]}) /destroy
    /if (${FindItemCount[=Large Brick of Velium]}) /shiftkey /itemnotify ${FindItem[=Large Brick of Velium].InvSlot} leftmouseup
    /if (${Cursor.Name.Equal[Large Brick of Velium/]}) /destroy
    /if (${FindItemCount[=Zeannor's Thesis Pg. 16]}) /shiftkey /itemnotify ${FindItem[=Zeannor's Thesis Pg. 16].InvSlot} leftmouseup
    /if (${Cursor.Name.Equal[Zeannor's Thesis Pg. 16]}) /destroy
    /if (${FindItemCount[=Small Piece of Velium]}) /shiftkey /itemnotify ${FindItem[=Small Piece of Velium].InvSlot} leftmouseup
    /if (${Cursor.Name.Equal[Small Piece of Velium]}) /destroy
    /if (${FindItemCount[=Loaf of Bread]}) /shiftkey /itemnotify ${FindItem[=Loaf of Bread].InvSlot} leftmouseup
    /if (${Cursor.Name.Equal[Loaf of Bread]}) /destroy
    /if (${FindItemCount[=Spider Fur Collar]}) /shiftkey /itemnotify ${FindItem[=Spider Fur Collar].InvSlot} leftmouseup
    /if (${Cursor.Name.Equal[Spider Fur Collar]}) /destroy
    /if (${FindItemCount[=Block of Velium]}) /shiftkey /itemnotify ${FindItem[=Block of Velium].InvSlot} leftmouseup
    /if (${Cursor.Name.Equal[Block of Velium]}) /destroy
    /if (${FindItemCount[=Stone of Descent]}) /shiftkey /itemnotify ${FindItem[=Stone of Descent].InvSlot} leftmouseup
    /if (${Cursor.Name.Equal[Stone of Descent]}) /destroy
    /tar corpse
    /lootall
/return

xomega1
a ghoul
a ghoul
Posts: 134
Joined: Mon Jun 19, 2006 6:02 pm

Re: My macro won't delete a certain item

Post by xomega1 » Mon Oct 08, 2012 7:44 pm

Code: Select all

 
   /if (${FindItemCount[=Barbed Ringmail Gloves]}) /shiftkey /itemnotify ${FindItem[=Barbed Ringmail Gloves].InvSlot} leftmouseup
    /if (${Cursor.Name.Equal[Barbed Ringmail Gloves/]}) /destroy
 
Try removing the "/" from Barbed Ringmail Gloves.
should look like this:

Code: Select all

 
   /if (${FindItemCount[=Barbed Ringmail Gloves]}) /shiftkey /itemnotify ${FindItem[=Barbed Ringmail Gloves].InvSlot} leftmouseup
    /if (${Cursor.Name.Equal[Barbed Ringmail Gloves]}) /destroy
 










xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: My macro won't delete a certain item

Post by xyilla » Fri Jan 16, 2026 3:37 am