Author Topic: finditem issue  (Read 2120 times)

0 Members and 1 Guest are viewing this topic.

Offline xapcxTopic starter

  • Jr. Member
  • **
  • Posts: 30
  • Activity:
    0%
  • Reputation Power: 0
  • xapcx has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
finditem issue
« on: October 03, 2009, 03:40:25 PM »
0
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?

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: finditem issue
« Reply #1 on: October 03, 2009, 03:43:43 PM »
0
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.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline xapcxTopic starter

  • Jr. Member
  • **
  • Posts: 30
  • Activity:
    0%
  • Reputation Power: 0
  • xapcx has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: finditem issue
« Reply #2 on: October 03, 2009, 03:59:32 PM »
0
Thanks, Im going to keep working with it.  I have tried a few differant filters.  It has become a challenge at this point!

Tags: