Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-26-2009, 11:33 PM
Struggler Struggler is offline
Zone Repulser =D
Struggler's Avatar
Join Date: May 2006
Posts: 54
Struggler is an unknown quantity at this point
Replaceani with Parameters

I used a triggerserver script:
(shortened version)
PHP Code:
function onActionServerside(){
  if(
params[0] == "replaceidle"){
    
replaceani("idle",params[1]);
  }
}
//#CLIENTSIDE
function onPlayerChats(){
  if(
player.chat.starts("replaceidle")){
    
triggerserver("gui",this.name,"replaceidle",player.chat.substring(12));
  }

The replaceani doesnt work, I think it has something to do with the params.. So how would I go about getting it to work? It is to set the ani idle to the parameters identified in the playerchats function. Someone please explain what I'm doing wrong? Yes I know it can be shortened farther, but I have lots of others serverside actions along with that so I just decided to have it in the serverside aswell.
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 12:40 AM.


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