Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 05-26-2009, 11:35 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
replaceani is clientside only.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #3  
Old 05-27-2009, 12:40 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Er, nvm.

PHP Code:
//#CLIENTSIDE

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

__________________
Quote:

Last edited by fowlplay4; 05-27-2009 at 12:50 AM..
Reply With Quote
Reply


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:19 PM.


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