ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: xapcx on October 03, 2009, 03:40:25 PM

Title: finditem issue
Post by: xapcx on October 03, 2009, 03:40:25 PM
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?
Title: Re: finditem issue
Post by: TrailMyx on October 03, 2009, 03:43:43 PM
You should keep an eye on this thread:

http://www.scriptuo.com/index.php?topic=2831.msg21641#msg21641

C2 is wrestling with the same issue.
Title: Re: finditem issue
Post by: xapcx on October 03, 2009, 03:59:32 PM
Thanks, Im going to keep working with it.  I have tried a few differant filters.  It has become a challenge at this point!