Looting certain items

Got a cool macro idea? Wanna request a macro? Here is the place for you!

Moderator: MacroQuest Developers

User avatar
Soul Hunter
orc pawn
orc pawn
Posts: 13
Joined: Wed May 04, 2005 8:59 am

Looting certain items

Post by Soul Hunter » Sun May 08, 2005 12:13 pm

Hey guys, I've been working on a program to help loot fine steel weapons. The mobs also drop other items that I don't care for so I'd like the program to filter out those items and only loot items with 'Fine Steel' in their names.

Below is the code I use to loot
**NOTE** It's not the entire program

Code: Select all

Sub Loot


   :LtLoop
   /varcalc locv1 ${locv1}+1
   /target corpse radius 400
   /if (!${Target.ID} || ${Target.Type.NotEqual[Corpse]}) /return
   /varset xDistance 5
   /call GotoBody ${Target.ID}
   /if (${Target.ID}) /face nolook fast
   /loot
   /delay 40 ${Window[LootWnd].Open}
   /if (!${Corpse.Items}) {
      /goto :ExitSWLt
   }
   /varset LootTotal ${Corpse.Items}
   /for LootSlot 1 to ${LootTotal}
      /itemnotify loot${LootSlot} rightmouseup
      /delay 10 ${Cursor.ID}
      /notify InventoryWindow IW_CharacterView leftmouseup
      /delay 10
      :NextSWLt
   /next LootSlot
   :ExitSWLt
   /cleanup
   /delay 10
   /if (${locv1}<4) /goto :LtLoop
/return
If you could please help me edit the program so it will only loot fine steel, that would be great. Thanks in advance

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Sun May 08, 2005 12:30 pm

Wrong forum here...

User avatar
Soul Hunter
orc pawn
orc pawn
Posts: 13
Joined: Wed May 04, 2005 8:59 am

Post by Soul Hunter » Sun May 08, 2005 4:08 pm

Well then what forum should I post it at?

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Sun May 08, 2005 6:37 pm