Page 1 of 1
Layer
Posted: 2006-02-14 15:28:19
by -=SaCi=-
I´m trying to use Unequip !
it ask for the layer name, where can i get it ?
Posted: 2006-02-14 17:30:19
by -=SaCi=-
using the so topic!
what i need to do to make a SAY sends the mensage inside a global ?
like:
uo.setGlobal("falando","testing")
uo.say("falando")
Posted: 2006-02-14 19:34:54
by agem
Layers list is here:
http://yoko.netroof.net/help/help.php?l ... item=layer
(the only non-russian words in table are keywords for layers, their meaning is quite self-explanatory).
To say the contents of global variable, use
UO.Say(UO.GetGlobal("falando"))
Posted: 2006-02-14 19:49:54
by -=SaCi=-
sub saya()
uo.setGlobal("Falando","testing")
UO.Say(UO.GetGlobal("falando"))
end sub
returns N/A ?
is it right ?
Posted: 2006-02-14 19:51:41
by agem
I'm not sure, but probably global names are case-sensitive, so "Falando" and "falando" are two different global variables. Try using exactly the same name in both lines.
Posted: 2006-02-14 20:18:20
by -=SaCi=-
Agem tks
case-sensitive!
More 1 thing
how can i add string into global
Like
sub saya()
uo.setGlobal("Falando","ABC")
UO.Say(UO.GetGlobal("Falando"))
end sub
i want to add a D,
uo.setGlobal("Falando","(uo.setGlobal("Falando"))+D")
?
Posted: 2006-02-14 20:48:36
by agem
The idea is quite simple: you always use UO.SetGlobal to set value of the variable, and UO.GetGlobal to get it. So, in your case, use:
UO.SetGlobal("Falando",UO.GetGlobal("Falando")+"D")
The only tricky thing is to put the quotes correctly
