Yoko

All sides of Injection
It is currently 2025-12-16 23:17:44

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Layer
PostPosted: 2006-02-14 15:28:19 
Offline

Joined: 2006-02-01 19:58:29
Posts: 14
I´m trying to use Unequip !
it ask for the layer name, where can i get it ?


Top
   
 Post subject:
PostPosted: 2006-02-14 17:30:19 
Offline

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


Top
   
 Post subject:
PostPosted: 2006-02-14 19:34:54 
Offline

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


Top
   
 Post subject:
PostPosted: 2006-02-14 19:49:54 
Offline

Joined: 2006-02-01 19:58:29
Posts: 14
sub saya()
uo.setGlobal("Falando","testing")
UO.Say(UO.GetGlobal("falando"))
end sub


returns N/A ?
is it right ?


Top
   
 Post subject:
PostPosted: 2006-02-14 19:51:41 
Offline

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


Top
   
 Post subject:
PostPosted: 2006-02-14 20:18:20 
Offline

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

?


Top
   
 Post subject:
PostPosted: 2006-02-14 20:48:36 
Offline

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited