Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Replaceani with Parameters (https://forums.graalonline.com/forums/showthread.php?t=85762)

Struggler 05-26-2009 11:33 PM

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.

Tigairius 05-26-2009 11:35 PM

replaceani is clientside only.

fowlplay4 05-27-2009 12:40 AM

Er, nvm.

PHP Code:

//#CLIENTSIDE

function onPlayerChats() {
  if (
player.chat.starts("replaceidle")) {
    
replaceani("idle"player.chat.substring("replaceidle ".length()));
    
player.chat "Idle ani replaced.";
  }




All times are GMT +2. The time now is 11:08 PM.

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