Layer

Ask for help

Moderators: Murderator+, Murderator

Post Reply
-=SaCi=-
Posts: 14
Joined: 2006-02-01 19:58:29

Layer

Post by -=SaCi=- »

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=- »

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")
agem
Posts: 65
Joined: 2005-06-26 12:29:37

Post 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"))
-=SaCi=-
Posts: 14
Joined: 2006-02-01 19:58:29

Post by -=SaCi=- »

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 »

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=- »

Agem tks :D
case-sensitive!

More 1 thing :D
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 »

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 ;)
Post Reply