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=134267661)

sssssssssss 12-27-2012 05:28 PM

replaceani not working?
 
PHP Code:

function defaultGanis() {
  
//reset all to default ganis
  
replaceani("idle""armageddon-idle");
  
replaceani("walk""armageddon-walk");
  
replaceani("swim""armageddon_swimming");
  
replaceani("sword""armageddon-sword");


NPC Code:
Weapon/GUI-script -System/Movement added/updated by sssssssssss
Script: Function replaceAni not found at line 10 in script of -System/Movement
Script: Function replaceAni not found at line 11 in script of -System/Movement
Script: Function replaceAni not found at line 12 in script of -System/Movement
Script: Function replaceAni not found at line 13 in script of -System/Movement
Weapon/GUI-script -System/Movement added/updated by sssssssssss
Script: Function replaceani not found at line 10 in script of -System/Movement
Script: Function replaceani not found at line 11 in script of -System/Movement
Script: Function replaceani not found at line 12 in script of -System/Movement
Script: Function replaceani not found at line 13 in script of -System/Movement



??? wtf lol, replaceani or replaceAni? I literally copied this from my old movement system which was in action before this weapon was made (removed from player and such of course when making the new wep).

callimuc 12-27-2012 05:58 PM

are you sure this is clientside? just tested this on serverside and that was the only case when the error appeared

sssssssssss 12-27-2012 06:01 PM

Ha no I forgot the #...
I'm getting sloppy...

callimuc 12-27-2012 06:04 PM

haha ok ^^

cbk1994 12-27-2012 08:22 PM

Just for future reference, if you're seeing errors on RC that cite "function not found" and a line number, it means the code is being run serverside. Graal can be picky about the clientside line (e.g. can't have spaces after it), but this can help you pick that up quickly.

sssssssssss 12-27-2012 09:10 PM

Yeah I know I've been out of it today it seems.

Do appreciate the help though. That really should have sent a flag straight to me...


All times are GMT +2. The time now is 03:24 PM.

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