Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   ReplaceGani (https://forums.graalonline.com/forums/showthread.php?t=6071)

BocoC 06-29-2001 09:36 AM

ReplaceGani
 
Has anyone gotten replacegani to work? I have tried and tried, but I can't get it to work...

BocoC 06-30-2001 12:14 AM

Please? Anybody? I have tried serverside AND clientside, but none worked! Also, I tried replaceani instead of replacegani (clientside AND serverside), but THAT didn't work either! Maybe Bravo's npcserver is old or something...

Admins 06-30-2001 03:35 AM

The torch script is like this:

NPC Code:

if (created)
setshape 1,32,32;
if (playertouchsme)
toweapons Torch;
if (weaponfired) {
replaceani idle,torch_idle;
replaceani walk,torch_walk;
}



May be you have mixed some stuff with the weapons
(?). The 'replaceani' must be called on the clientside,
so only in weapons script, or in normal npcs with
a //#CLIENTSIDE line

06-30-2001 03:45 AM

Aha! It's replaceani, not replacegani!

BocoC 06-30-2001 06:29 AM

Yeah. You might wanna fix that in the documentation Stefan. =P Thanks for your help!

vergil 06-30-2001 08:14 AM

Why can't we 'unhold' the torch after we've used it? I have to sit down in a chair to get rid of the torch

06-30-2001 08:36 AM

Or swing sword

grim_squeaker_x 06-30-2001 03:22 PM

NPC Code:
if (created) 
setshape 1,32,32;
if (playertouchsme)
toweapons Torch;
if (weaponfired) {
this.active=1-this.active;
if (this.active==1) {
replaceani idle,torch_idle;
replaceani walk,torch_walk;
}
else {
replaceani torch_idle,idle;
replaceani torch_walk,walk;
}
}


Admins 07-03-2001 09:12 PM

No you set it back to the original thing with

replaceani idle,idle;
replaceani walk,walk;

I have mentioned that in the
newfeatures2001.txt

toad1413 07-05-2001 06:42 PM

Yeah Stefan, you might want to fix that part of the newfeatures2001.txt in the next update.

Admins 07-05-2001 06:54 PM

oh yes sorry :-)


All times are GMT +2. The time now is 12:44 AM.

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