| Yoko http://forum.yoko.com.ua/ |
|
| Layer http://forum.yoko.com.ua/viewtopic.php?f=3&t=5748 |
Page 1 of 1 |
| Author: | -=SaCi=- [ 2006-02-14 15:28:19 ] |
| Post subject: | Layer |
I´m trying to use Unequip ! it ask for the layer name, where can i get it ? |
|
| Author: | -=SaCi=- [ 2006-02-14 17:30:19 ] |
| Post subject: | |
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") |
|
| Author: | agem [ 2006-02-14 19:34:54 ] |
| Post subject: | |
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")) |
|
| Author: | -=SaCi=- [ 2006-02-14 19:49:54 ] |
| Post subject: | |
sub saya() uo.setGlobal("Falando","testing") UO.Say(UO.GetGlobal("falando")) end sub returns N/A ? is it right ? |
|
| Author: | agem [ 2006-02-14 19:51:41 ] |
| Post subject: | |
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. |
|
| Author: | -=SaCi=- [ 2006-02-14 20:18:20 ] |
| Post subject: | |
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") ? |
|
| Author: | agem [ 2006-02-14 20:48:36 ] |
| Post subject: | |
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 |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|