I have ran into a problem when looting gold... Background, i'm trying to open a corpse and loot the gold out of it. I use:
sub openIt
wait 1
event macro 17
wait 10
set %lootCont #contid
OI:
finditem %loot C_ , %lootCont ;gold
wait 2
if #findkind <> -1
{
wait 3
GOSUB moveItem #FINDID #FINDBAGID #BACKPACKID
The problem I am running into is that I am not correctly filling the varriable %lootCont with the correct #contid. The reason for this is that I am using EV's to kill monsters while the looter is looting. When the EV does damage, the little damage numbers change my gump id and contid information.
How do I only loot the container that is popping open and ignore all other gumps when the YFM pops?