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 08-15-2011, 01:06 AM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
TriggerServer Issue

I have this script in a class with a npc joining it in the level. I am making a character custimization screen, but for some reason, when you click, it is not triggering the server and setting the clientr change. Ive tried clientr.race, player.clientr.race, this.player.clientr.race, just about everything. Ive even tried it with other variables changing that increase numbers. With that, Ive came to the conclusion that it is not triggering the server. Please help

PHP Code:
function onActionServerside() {
 if (
params[0] == "Change")
{
 
player.clientr.race "Human";
}
}

//#CLIENTSIDE
function onCreated()
{
 
setimg("runa_races_human.png");
 }
 
 function 
onMouseDown()
{
 if (
mousescreenx in |this.x,this.x+810| &&
     
mousescreeny in |this.y,this.y+211|)
          {
          
play("runa_click");
          
triggerserver("weapon"this.name"Change");
          }
 } 
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 05:44 PM.


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