Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #33  
Old 05-04-2009, 02:48 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Raelyn View Post
Ok, well, my script is clientside, so that means the server can't GET my clientr.level, right? I need to find some way for for the server to read my clientside variables..
Pass them to the server with
PHP Code:
//#CLIENTSIDE
function onEvent() {
triggerServer("gui","WeaponName","Equal",this.bar,temp.foo);

then on the serverside u could do something like this:
PHP Code:
function onActionServerSide(){
  if (
params[0] == "Equal") {
    
this.thing params[1];
    
this.var = params[2];
  }

then u can use this.bar and temp.foo at serverside.
but they will be named this.thing and this.var ofc
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you

Last edited by Deas_Voice; 05-04-2009 at 02:49 PM.. Reason: forgot a ; :O
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.