Author Topic: Reliable Container Open Confirmation  (Read 2408 times)

0 Members and 1 Guest are viewing this topic.

Offline PauloniusTopic starter

  • Elite
  • *
  • *
  • Posts: 2040
  • Activity:
    0%
  • Reputation Power: 29
  • Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.
  • Respect: +299
  • Referrals: 1
    • View Profile
Reliable Container Open Confirmation
« on: September 01, 2010, 02:23:51 PM »
0
I am wondering whether anyone has a reliable means in EUO to drop in a check to confirm whether an event macro 17 0 has been effective to open a container.

My thoughts:
1.   I could look for an item in the container and if my #FindCnt is greater than zero its open, but that won't work for containers that are empty.

2.   I was hoping that I might be able to reset one of the related values other than #LobjectID and then look for a change, but it appears that the container variables are not two way variables, so that is not a very promising venue.

3.  My last idea was to use option 1 first, and if it doesn't detect anything, switch the current container to the backpack by opening it before attempting the container again, and then checking against container ID.  This would be slower, but ought to be reliable.

Anyone have a better solution?
This coin declares Caesar is "Dictator for Life." He did serve as Dictator for the remainder of his life, but his life would end only a few weeks after this issue. For Caesar to put his image on coins and essentially declare himself king was too much for Brutus and his republican allies.

"If everything seems under control, you're not going fast enough'
-Mario Andretti

"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +778
  • Referrals: 11
    • View Profile
Re: Reliable Container Open Confirmation
« Reply #1 on: September 01, 2010, 03:15:23 PM »
0
Gumpwait?
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13306
  • Activity:
    0.6%
  • 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: +2989
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Reliable Container Open Confirmation
« Reply #2 on: September 01, 2010, 03:32:21 PM »
0
I've developed LOTS of different methods for this.  My favorite and one that works for most instances is:

1. Note present #CONTID
2. open target container
3. wait until present container doesn't match noted container

If you know the #CONTSIZE that's going to be opened, that'll help filtering things out.

The CLAw has a REALLY aggressive filtering scheme because of all the errant gumps that fly around during combat.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +762
  • Referrals: 1
    • View Profile
Re: Reliable Container Open Confirmation
« Reply #3 on: September 01, 2010, 04:05:09 PM »
0
I've developed LOTS of different methods for this.  My favorite and one that works for most instances is:

1. Note present #CONTID
2. open target container
3. wait until present container doesn't match noted container

If you know the #CONTSIZE that's going to be opened, that'll help filtering things out.


Dito .. thats the method i use as well.   Also if reopening the same type of containor over and over.. you can have it store the contkind on the first open and check that on successive openings.  (rember contkind changes after each patch so script must learn it to use it)
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline PauloniusTopic starter

  • Elite
  • *
  • *
  • Posts: 2040
  • Activity:
    0%
  • Reputation Power: 29
  • Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.
  • Respect: +299
  • Referrals: 1
    • View Profile
Re: Reliable Container Open Confirmation
« Reply #4 on: September 01, 2010, 07:10:53 PM »
0
I like the ID check, that should work for what I am doing - which is opening a series of ten containers, a miss on any of which causes the script to go wanky.

Thanks gentlemen.
This coin declares Caesar is "Dictator for Life." He did serve as Dictator for the remainder of his life, but his life would end only a few weeks after this issue. For Caesar to put his image on coins and essentially declare himself king was too much for Brutus and his republican allies.

"If everything seems under control, you're not going fast enough'
-Mario Andretti

"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr

Tags: