ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Coragin on December 28, 2009, 04:42:02 AM
-
My Armor Imbuer located here http://www.scriptuo.com/index.php?topic=3182.0 (http://www.scriptuo.com/index.php?topic=3182.0)
I set it to stop after it is successful in making a piece of armor. Which is good because it would just keep using resources over and over and waste them. But here is the problem.
There is 4 targets you have to setup in the beginning, resource, ingot bag in resource, ingot bag in backpack and storage of completed item.
Now in a ton of your scripts you make it so it will save these features and only redo if you want to. Can you show me a simple way to do this with my script(s) that use containers? I think it would be so much easier on a ton of people who use them if they dont have to re-click every container when they restart. Or at the end of the script, maybe I could just have it go back to the armor selection part? But I would like to have it save just those four bags so you dont have to re-do them every single time.
Is this beyond my skill level to even understand? Or you think in your wisdom and the wonderful teacher you are you could show me a quick and simple way to do this?
-
Well you should look at those scripts to get ideas. ;)
I use two different methods for saving information. My File handing stuff for when I want to generate a file that can be transfered from computer to computer. I don't recommend that since it's pretty complex and might be hard to understand.
I also use the EUO registry and *vars to store information. Those subs are very simple. If you take a look at the healer HERE (http://www.scriptuo.com/index.php?topic=20.0) at ScriptUO, you'll find more information on these subs and how to use them:
;------------------------------------------------------------
sub TM_GetPersistantVariable
set #RESULT %1 , _ , #CHARID
set #RESULT * . #RESULT
return #RESULT
;------------------------------------------------------------
sub TM_SetPersistantVariable
set #RESULT %1 , _ , #CHARID
set * . #RESULT %2
return