Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-29-2001, 09:36 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
ReplaceGani

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

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #2  
Old 06-30-2001, 12:14 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
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...
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #3  
Old 06-30-2001, 03:35 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
  #4  
Old 06-30-2001, 03:45 AM
Guest
Posts: n/a
Aha! It's replaceani, not replacegani!
  #5  
Old 06-30-2001, 06:29 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Yeah. You might wanna fix that in the documentation Stefan. =P Thanks for your help!
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #6  
Old 06-30-2001, 08:14 AM
vergil vergil is offline
Registered User
vergil's Avatar
Join Date: Mar 2001
Posts: 1,408
vergil will become famous soon enough
Send a message via ICQ to vergil
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
  #7  
Old 06-30-2001, 08:36 AM
Guest
Posts: n/a
Or swing sword
  #8  
Old 06-30-2001, 03:22 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
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;
}
}

__________________

  #9  
Old 07-03-2001, 09:12 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
No you set it back to the original thing with

replaceani idle,idle;
replaceani walk,walk;

I have mentioned that in the
newfeatures2001.txt
  #10  
Old 07-05-2001, 06:42 PM
toad1413 toad1413 is offline
toad@graal:~$ ./Oldbie
Join Date: May 2001
Location: Aust.
Posts: 3,819
toad1413 is on a distinguished road
Send a message via ICQ to toad1413
Yeah Stefan, you might want to fix that part of the newfeatures2001.txt in the next update.
__________________
Creator of the original 'spam' icon. Worst mistake I ever made on these forums.
  #11  
Old 07-05-2001, 06:54 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
oh yes sorry :-)
 


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 02:10 AM.


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