Author Topic: Faction Reg vendor  (Read 3799 times)

0 Members and 1 Guest are viewing this topic.

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Faction Reg vendor
« on: January 29, 2010, 04:10:53 PM »
0
Has anyone seen or have a script that will stand in a bank and buy regs from the faction vendors and drop them in the bank?

Offline OMGBurgers

  • Hero Member
  • *
  • Posts: 800
  • Activity:
    0%
  • Reputation Power: 7
  • OMGBurgers has no influence.
  • Respect: +44
  • Referrals: 0
    • View Profile
Re: Faction Reg vendor
« Reply #1 on: January 29, 2010, 04:13:36 PM »
0
I have an old one I used to use that I wrote maybe a year or so if you'd like to test it to see if it still works :P

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Re: Faction Reg vendor
« Reply #2 on: January 29, 2010, 04:17:50 PM »
0
That would be sweet

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Re: Faction Reg vendor
« Reply #3 on: January 29, 2010, 07:36:52 PM »
0
How to I set a new variable for each of the vendors I that shows up when i do a finditem IS    if i do not know how many are going to be there.

I don't think that is real clear.

finditem IS G

For #findindex #findcnt
{
finditem IS G
event property #findid
if The Reagent Vendor In #property
set a variable
                                                                 <<<<<<<<<< at this point i want to set a variable for the vendor. My prob is that what if there are 5 of them           
                                                                                                     is there a way to make one variable for all five?

}     


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: Faction Reg vendor
« Reply #4 on: January 29, 2010, 08:52:37 PM »
0
You're fighting with #findindex, let it do the work for you:

Code: [Select]
finditem IS G
if #FINDCNT > 0
{
  for #FINDINDEX 1 #FINDCNT
  {
    event property #FINDID
    if reagent_vendor in #PROPERTY
    {
      ; do it!
    }
  }
}
finditem maintains a list of the last known items that met your search criterion.  #FINDCNT tells you how many were matches.  You can iterate through the list with #FINDINDEX.  #FINDITEM is automatically updated when you change the value of #FINDINDEX.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Re: Faction Reg vendor
« Reply #5 on: January 29, 2010, 09:28:34 PM »
0
I guess i was trying to set a variable when I really done need to i can call a sub that will buy the regs then return. Ha I guess i did not think it out all the way. One more question then i looked trough the TrailMyx's Buy Agent Sub but could not figure out how you make if select all of one reg there is to buy i can get it to do it one at a time but is there a faster way to buy all of the? I have my sub doing
 gosub OffsetClick 206 84 d
but to buy 999 regs that are on a faction vendor it would take for ever

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: Faction Reg vendor
« Reply #6 on: January 29, 2010, 09:33:42 PM »
0
The buy agent handles that:

gosub TM_BuyAgent_ID %npc_id BSF 10 ; <- last value is the quantity.

You might look through the debugging that Kham did; I'm not sure if there was a hiccup with it.  It's been a while since I played with these subs.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Winker

  • Jr. Member
  • **
  • Posts: 18
  • Activity:
    0%
  • Reputation Power: 0
  • Winker has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: Faction Reg vendor
« Reply #7 on: January 30, 2010, 02:35:19 AM »
0
Has anyone seen or have a script that will stand in a bank and buy regs from the faction vendors and drop them in the bank?

I use one to buy my regs from faction vendors its called Auto item buyer. Its attached if you want it

[admin] Please don't post scripts that you didn't write. Post links to them. [/admin]
« Last Edit: January 30, 2010, 11:04:49 AM by TrailMyx »

Offline boom

  • Newbie
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 0
  • boom has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Faction Reg vendor
« Reply #8 on: February 23, 2010, 02:40:26 PM »
0
Has anyone seen or have a script that will stand in a bank and buy regs from the faction vendors and drop them in the bank?

I use one to buy my regs from faction vendors its called Auto item buyer. Its attached if you want it


Please don't post scripts that you didn't write.  Post links to them.



Could you link it to me?  I am wanting to restock my reg collection...  PLZ!

Offline Winker

  • Jr. Member
  • **
  • Posts: 18
  • Activity:
    0%
  • Reputation Power: 0
  • Winker has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: Faction Reg vendor
« Reply #9 on: February 24, 2010, 04:20:35 AM »
0
Has anyone seen or have a script that will stand in a bank and buy regs from the faction vendors and drop them in the bank?

I use one to buy my regs from faction vendors its called Auto item buyer. Its attached if you want it


Please don't post scripts that you didn't write.  Post links to them.



Could you link it to me?  I am wanting to restock my reg collection...  PLZ!

do a search for  Auto item buyer on easy uo site.

Tags: