Ask for help
Moderators: Murderator+ , Murderator
-=SaCi=-
Posts: 14 Joined: 2006-02-01 19:58:29
Post
by -=SaCi=- » 2006-02-14 15:28:19
I´m trying to use Unequip !
it ask for the layer name, where can i get it ?
-=SaCi=-
Posts: 14 Joined: 2006-02-01 19:58:29
Post
by -=SaCi=- » 2006-02-14 17:30:19
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")
-=SaCi=-
Posts: 14 Joined: 2006-02-01 19:58:29
Post
by -=SaCi=- » 2006-02-14 19:49:54
sub saya()
uo.setGlobal("Falando","testing")
UO.Say(UO.GetGlobal("falando"))
end sub
returns N/A ?
is it right ?
agem
Posts: 65 Joined: 2005-06-26 12:29:37
Post
by agem » 2006-02-14 19:51:41
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.
-=SaCi=-
Posts: 14 Joined: 2006-02-01 19:58:29
Post
by -=SaCi=- » 2006-02-14 20:18:20
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")
?
agem
Posts: 65 Joined: 2005-06-26 12:29:37
Post
by agem » 2006-02-14 20:48:36
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