Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Replaceani Not Working? (https://forums.graalonline.com/forums/showthread.php?t=74714)

killerogue 06-19-2007 02:26 AM

Replaceani Not Working?
 
I'm trying to make some functions I need to set some anis and such from a class, seeing as triggerclient or server hasn't been working for me classwise (thought Novo says it is possible).

Weapon
PHP Code:

public function aniSet(acctconditionaninewanianiparams) {
  
temp.attr 0;
  
temp.img 0;
  
  
plyr findPlayer(acct);
  
this.ani ani;
  
this.oldani ani;
  
this.newani newani;
  
  switch (
condition) {
    case 
"set":
      
with (plyr) {
        
triggerclient(this.name"set"thiso.anianiparams);
      }
    break;
    
    case 
"replace":
      if (
aniparams == NULL) {
        
with (plyr) {
          
triggerclient(this.name"replace"thiso.oldanithiso.newani);
        }
      }
    break;
  }
}

//#CLIENTSIDE
function onActionClientside(conditionaniinfo1aniinfo2) {
  
player.chat params;

  switch (
condition) {
    case 
"set":
      
setani(params[1], params[2]);
    break;
    
    case 
"replace":
      
player.replaceani(params[1], params[2]);
    break;  
  }


Test Weapon
PHP Code:

function onCreated() {
  
systemAniSet.aniSet("Chandler""replace""idle""mal_new_idle"NULL);


Seems replaceani is not working wherever I try it.


All times are GMT +2. The time now is 01:56 PM.

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