ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Noobie on January 29, 2010, 04:10:53 PM
-
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 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
-
That would be sweet
-
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?
}
-
You're fighting with #findindex, let it do the work for you:
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.
-
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
-
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.
-
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]
-
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!
-
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.