ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: krustenkrabbe on July 10, 2012, 06:38:01 AM

Title: Need help with saving and reloading a *variable
Post by: krustenkrabbe on July 10, 2012, 06:38:01 AM
So, this is probably a pretty basic task for you scripters, but I can't seem to get it done.
I've modified the TerMur Lumberjack so that it cycles through banks to drop off and to have it use a beetle and I'd like to post that modification in the proper thread but.... I hardcoded all the click-locations in the script for me and now want to do it with a setup.

Here is what I mean:
Code: [Select]
set %rune 1
set %tree 1
set *x . #charid . %rune . %tree 1234
msg *x . #charid . %rune . %tree

So I'd like it to message "1234" but it doesn't....

Thanks for your help, I'm really desperate about that one, I'm toying around with it for like 2 weeks now and can't seem to find a solution.
Title: Re: Need help with saving and reloading a *variable
Post by: TrailMyx on July 10, 2012, 07:36:47 AM
You need an intermediate variable:

Code: [Select]
set %rune 1
set %tree 1
set %temp #charid , %rune , %tree
set * . %temp 1234
display * . %temp
stop

Title: Re: Need help with saving and reloading a *variable
Post by: krustenkrabbe on July 10, 2012, 08:13:36 AM
mhm that's not so hard, was it? =)

Thanks a lot!

I'll make sure to post my lumberjack script this weekend!