Author Topic: Reliable buying  (Read 4757 times)

0 Members and 1 Guest are viewing this topic.

Offline talkmillTopic starter

  • Jr. Member
  • **
  • Posts: 36
  • Activity:
    0%
  • Reputation Power: 0
  • talkmill has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Reliable buying
« on: September 10, 2008, 10:18:00 AM »
0
Hi, has anyone got a good idea on how to make a reliable buying sub (or can point me to one). I've tested quite a few and tested writing my own. The thing i have a problem with is the double click to select a particular item. Sometime this works, sometimes not, and i cant seem to figure out why. I've tested using: double click X X mc (instead of click d) which work a bit better but still not good. 30% of the time no item is selected. Is there a good way to do this "click" or to verify if the click succeded (if the item appeared in the buy list) without using ocr?

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • 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: Reliable buying
« Reply #1 on: September 10, 2008, 11:21:36 AM »
0
I haven't ever used the buy/sell agents in Razor.  Perhaps that's a possibility.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline talkmillTopic starter

  • Jr. Member
  • **
  • Posts: 36
  • Activity:
    0%
  • Reputation Power: 0
  • talkmill has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Reliable buying
« Reply #2 on: September 10, 2008, 11:22:51 AM »
0
Hmmm, true. I will test that, thx :)

Offline talkmillTopic starter

  • Jr. Member
  • **
  • Posts: 36
  • Activity:
    0%
  • Reputation Power: 0
  • talkmill has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Reliable buying
« Reply #3 on: September 10, 2008, 11:28:16 AM »
0
Or hmmm, don't think that is an option. That would be good if i buy the same type of item every time. Bot i'm writing a script for filling bods (normal iron smith bods) that can be filled by buying items from blacksmiths. For that to work in razor i guess a buy agent for every type of bod-item is necessary which really isn't that good :)

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: +393
  • Referrals: 1
    • View Profile
Re: Reliable buying
« Reply #4 on: September 10, 2008, 01:21:46 PM »
0
Thier is a way for reliable buying...  i wrote code that did it once...   heres a snippet from some of my code dont know if this was the very reliable one or not.. but its got to do with wait times.

     if #SHOPITEMTYPE = %BuySellItems && #SHOPITEMPRICE <= %BuySellMaxMinPrice
      {
       wait 3
       gosub gumpclick -55 -137 DMC ; D MC
       wait 2
       gosub gumpclick -55 -137 DMC ; D MC
       wait 2
       If #shopItemMax > %BuySellQuantity
         setShopItem #shopItemID %BuySellQuantity
       ELSE
         setShopItem #shopItemID #shopItemMax
      }
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 talkmillTopic starter

  • Jr. Member
  • **
  • Posts: 36
  • Activity:
    0%
  • Reputation Power: 0
  • talkmill has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Reliable buying
« Reply #5 on: September 10, 2008, 10:58:24 PM »
0
Ahh thx, i'll try your wait times to see if i get better results :)

Offline talkmillTopic starter

  • Jr. Member
  • **
  • Posts: 36
  • Activity:
    0%
  • Reputation Power: 0
  • talkmill has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Reliable buying
« Reply #6 on: September 11, 2008, 09:09:07 AM »
0
Didn't help. Tried that one and nothing happens. The only thing that works for now is:

Code: [Select]
click x y mc
click x y mc

I'm not getting why this work and not dmc, is there some kind of delay in mc or is there some other way these two type work in different ways?

Offline Hardyz

  • Jr. Member
  • **
  • Posts: 86
  • Activity:
    0%
  • Reputation Power: 0
  • Hardyz has no influence.
  • Respect: +14
  • Referrals: 0
    • View Profile
Re: Reliable buying
« Reply #7 on: September 12, 2008, 05:34:44 PM »
0
Hi, has anyone got a good idea on how to make a reliable buying sub (or can point me to one). I've tested quite a few and tested writing my own. The thing i have a problem with is the double click to select a particular item. Sometime this works, sometimes not, and i cant seem to figure out why. I've tested using: double click X X mc (instead of click d) which work a bit better but still not good. 30% of the time no item is selected. Is there a good way to do this "click" or to verify if the click succeded (if the item appeared in the buy list) without using ocr?

What I like to do is after I buy it I look to see if the items are in my pack using finditem.  If it is a stackable item and you might have some in your pack you can count the stack or you can count the amount of items prior to buying.

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: +393
  • Referrals: 1
    • View Profile
Re: Reliable buying
« Reply #8 on: September 12, 2008, 06:28:21 PM »
0
i like it hardyz i must rember that and implement in my scripts
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."

Tags: