ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Nellie on December 12, 2009, 01:10:02 AM

Title: Tool uses counter.
Post by: Nellie on December 12, 2009, 01:10:02 AM
How easy would it be to write a script that counts the amount of uses on a certain tool in your backpack i.e. i have 10 fletching tools in my bp and am in heartwood, i know i can make 37 - 40 lots of bows before my bp is full so would need to have 400 uses of a fletchers kit available.

Nel
Title: Re: Tool uses counter.
Post by: Scrripty on December 12, 2009, 01:29:50 AM
How easy would it be to write a script that counts the amount of uses on a certain tool in your backpack i.e. i have 10 fletching tools in my bp and am in heartwood, i know i can make 37 - 40 lots of bows before my bp is full so would need to have 400 uses of a fletchers kit available.

Nel

I believe you would have to event property each tool individually and parse the number of uses remaining on it somehow... unless there's another way I'm not thinking of...?
Title: Re: Tool uses counter.
Post by: Superslayer on December 12, 2009, 05:05:51 AM
That's pretty much how I do it Twinkle McNugget, Event property on the tool, then with every use of it, I set the number of uses left - 1 until my internal count reaches zero.  Event property the next tool, rinse and repeat.
Title: Re: Tool uses counter.
Post by: Endless Night on December 12, 2009, 06:29:42 AM
On a difficulty scale for an expereniced scripter id give it a  0 0r 1 (its an annoyance not difficult)
for a medium experienced scripter 3-4  (strings can be tricky)
for a newbie scripter id give it a 7 or 8. (what are strings ? and how do you manipulate then)


Title: Re: Tool uses counter.
Post by: Scrripty on December 12, 2009, 09:11:55 AM
I kinda browsed his code too, and he's not giving much time for the script to get to the vendor after it's found.  1 second isn't very much time when you recall in and search for the venor to walk to it also... :)