Author Topic: TrailMyx's Buy Agent Subs  (Read 30863 times)

0 Members and 1 Guest are viewing this topic.

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: TrailMyx's Buy Agent Subs
« Reply #15 on: March 24, 2010, 05:49:35 PM »
+1
I agree.  It *should*   :P

Unfortunately, it's not...unless it's supposed to buy them one at a time?

Hmm...is there a way to make EUO hold the shift key and dbl click?  I see you can hold down two keys at once, but there doesn't seem to be anything in the documentation on keying and clicking simultaneously.
« Last Edit: March 24, 2010, 05:52:09 PM by NObama »

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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: TrailMyx's Buy Agent Subs
« Reply #16 on: March 24, 2010, 05:54:56 PM »
+1
Well should and *did* at one point.  So if it's only buying one thing now, I'm worried that something has broken on the EUO side of things.  This script hasn't changed from the time where it worked well even before Khams suggestions.  Dunno.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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: TrailMyx's Buy Agent Subs
« Reply #17 on: March 24, 2010, 06:21:56 PM »
+1
And does still work.  Just tested.  However, remember the gump doesn't update the amount; it's updated in memory.  Please refer to the EUO documentation for this note:

Quote
# Despite the fact that using setShopItem will not update the graphics in the buy gump, the ammount to sell is set in the client's memory.

http://wiki.easyuo.com/index.php/SetShopItem
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: TrailMyx's Buy Agent Subs
« Reply #18 on: March 24, 2010, 06:25:13 PM »
+1
Ah - thanks, TM.  I really appreciate it.  I would never have thought to delve into setShopItem...I didn't know enough to look.

I'm slowing succumbing to the lure of gen2000's script...trying not to, but it's hard.

 :)

Offline Twisted1851

  • Jr. Member
  • **
  • Posts: 25
  • Activity:
    0%
  • Reputation Power: 1
  • Twisted1851 has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: TrailMyx's Buy Agent Subs
« Reply #19 on: October 23, 2011, 04:24:01 PM »
+1
Could someone help me figure out how to make this buy from 7 faction bottle vendors? I tried setting it up, but after trying to buy 1 set of bottles from one npc, and failing, it gave up. Thanks!

Offline Grandewd

  • Full Member
  • ***
  • Posts: 239
  • Activity:
    0%
  • Reputation Power: 3
  • Grandewd has no influence.
  • Respect: +24
  • Referrals: 0
    • View Profile
Re: TrailMyx's Buy Agent Subs
« Reply #20 on: August 24, 2013, 04:42:20 PM »
+1
Just found this awesome sub after spending a couple of hours playing with all the getShopInfo options... Now I can quit that thanks to TM   :)

It works perfectly.... Not surprised...

Question:  Is there a way to have it buy ALL of an item? :)

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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: TrailMyx's Buy Agent Subs
« Reply #21 on: August 24, 2013, 05:53:57 PM »
+1
I don't think so.  There's no #SHOP* variable that reveals how may items are currently for sale.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Grandewd

  • Full Member
  • ***
  • Posts: 239
  • Activity:
    0%
  • Reputation Power: 3
  • Grandewd has no influence.
  • Respect: +24
  • Referrals: 0
    • View Profile
Re: TrailMyx's Buy Agent Subs
« Reply #22 on: August 24, 2013, 06:07:32 PM »
+1
I don't think so.  There's no #SHOP* variable that reveals how may items are currently for sale.

Ok, np... It works perfectly for buying any quantity otherwise...  :)

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: TrailMyx's Buy Agent Subs
« Reply #23 on: May 19, 2014, 08:56:28 AM »
+1
Question:  Is there a way to have it buy ALL of an item? :)
Just doing some buy sub stuff and saw this comment.

Technically you should be able to tell it to buy #SHOPITEMMAX and it will buy all of whatever the vendor has in stock of that given item.

XIIx "GM Res'er of Threads" OveR
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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: TrailMyx's Buy Agent Subs
« Reply #24 on: May 19, 2014, 09:02:34 AM »
+1
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: TrailMyx's Buy Agent Subs
« Reply #25 on: May 19, 2014, 09:28:39 AM »
+1
:P

I was wondering about the pixel scanning thing. I know the Buy position is different for different NPC's so a generic Buy sub is pretty much impossible without doing that. This is an area I've always been too intimidated to delve into but have always wanted to try so I guess I'll play around with it.

I wish the getshopinfo was more similar to finditem, allowing you to address specific indexes directly with one load rather than having to click to move through the items and getshopinfo repeatedly - or am I missing something that will make me happy?

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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: TrailMyx's Buy Agent Subs
« Reply #26 on: May 19, 2014, 09:32:27 AM »
+1
Yes, that's what the pixel scanning does in this set of subs.  Just like for quest item marking, I use this sub to locate the "Buy" in the context dropdown of the NPC.  So it should handle any position changes found from NPC to NPC.

To be honest, it's been so long since I've looked at these so I kinda forget how they work.  lol
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline declo

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • declo has no influence.
  • Respect: +16
  • Referrals: 1
    • View Profile
Re: TrailMyx's Buy Agent Subs
« Reply #27 on: June 03, 2014, 10:26:20 AM »
+1
Yes, that's what the pixel scanning does in this set of subs.  Just like for quest item marking, I use this sub to locate the "Buy" in the context dropdown of the NPC.  So it should handle any position changes found from NPC to NPC.

To be honest, it's been so long since I've looked at these so I kinda forget how they work.  lol

Is it possible to purchase 2 items within the loop?

ie

gosub TM_BuyAgent_ID %npc_id OIK 5 %npc_id QSK 5

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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: TrailMyx's Buy Agent Subs
« Reply #28 on: June 03, 2014, 12:37:02 PM »
+1
Nope, you have to purchase one of those at a time.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: TrailMyx's Buy Agent Subs
« Reply #29 on: October 26, 2014, 07:17:35 PM »
+1
TM. 
This is a nice build.  easy to use.   thx.