Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-12-2010, 03:09 AM
Jimbo33 Jimbo33 is offline
****
Jimbo33's Avatar
Join Date: Jan 2008
Location: Canada
Posts: 74
Jimbo33 is on a distinguished road
Send a message via AIM to Jimbo33 Send a message via MSN to Jimbo33
Small question!

Hi,

I'm making a class selection GUI, and I want the player to get a specific weapon AND to get clientr.playerclass set to something when selecting a specific class, but the problem is that the stuff happening on button action are clientside, while adding weapons and editing those variables is serverside. Someone told me long ago how to call stuff serverside from clientside, something like:

HTML Code:
triggeraction(this.x,this.y ... or something like that?
So yeah, here's the part of my script after the player has pushed the button to select his class:

PHP Code:
function ClassSelect_Button3.onAction() {
  
clientr.playerclass "Swordsman";
  
addWeapon("-Swordsman/Skill1");
  
ClassSelect_Window1.destroy();

Obviously,the only thing working here is ClassSelect_Window1.destroy(), clientr.playerclass and addWeapon don't work because they have to be serverside...

HELP
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:11 AM.


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