Loot window help

dobey

Lifetime Member
Joined
Sep 27, 2007
Messages
121
Reaction score
5
Points
18
I am farming and looking to /beep when a certain item is in the advloot window, I dont want to loot it I just want to recognize its there and beep to let me know. I saw some code in an old macro that dealt with the old loot window buts its not enough for me to coble something together now.


/if (${Window[LootWnd].Open}) {
/if (${Corpse.Items}==1) {
/itemnotify loot1 rightmouseup
}
}

Any ideas?
 

dobey

Lifetime Member
Joined
Sep 27, 2007
Messages
121
Reaction score
5
Points
18
This code gives the the ID for the first slot in the loot window, but I cant figure out how to use that info:


${AdvLoot.SList[1].ID}
 

htw

Developer
Joined
Aug 27, 2006
Messages
13,070
Reaction score
227
Points
63
Location
Albuquerque, NM
If it's going to be in that specific slot, you would just need the item ID, and compare it, and do something with it.

E.g. if item ID you want is 63200

/if ( ${AdvLoot.SList[1].ID}==63200) /do_whatever
 

dobey

Lifetime Member
Joined
Sep 27, 2007
Messages
121
Reaction score
5
Points
18
That worked perfectly! Thanks so much.