Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-02-2005, 04:57 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Unhappy a bug?

this script has worked online before, but now it doesn't the script hasn't been changed at all, what could be wrong?
NPC Code:
//NPC by Excaliber
if (actionserverside) {
if (strequals(#p(0),warp)) {
setlevel2 main1_darkrival2.nw,6.5,14;
}
}
if (created) {
dontblock;
}
//#CLIENTSIDE
if (playerenters&&!hasweapon(Warp Rings/MainTown)) {
addweapon Warp Rings/MainTown;
}
if(weaponfired){
freezeplayer 2;
play thunder.wav;
setplayerdir 2;
for (i=0;i<11;i++) {
hideplayer .02;
seteffect i/10,i/10,i/10,i/10;sleep .1
}
{
sleep 1;
triggeraction 0,0,serverside,Warp Rings/MainTown,warp;
sleep 1;
seteffect 0,0,0,0;

}
}
if(playerenters&&!hasweapon(Warp Rings/MainTown)){
showlocal
}
if(playertouchsme){
addweapon Warp Rings/MainTown;hidelocal
}
if(playerenters&&hasweapon(Warp Rings/MainTown)){
hidelocal
}

Reply With Quote
  #2  
Old 09-02-2005, 05:13 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Separate your first warping NPC into two parts. The level script which actually adds the weapon (but doesn't have the weapon's script in it, the weapon's script goes into NC) and the weapon itself.

Then, you can start fixing your weapon.
Reply With Quote
  #3  
Old 09-02-2005, 11:52 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
I did what you said and it still does not work. It always worked before, but it may have been since I added a 'run' capability that messed it up. I fnd you cannot warp with gp boots on, and the run script was like those boots, except you could not walk on walls. i removed this run function, but it still does not work. what could be wrong?
Reply With Quote
  #4  
Old 09-03-2005, 10:11 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
nvm, i reset my account, and it works now X_x

Last edited by excaliber7388; 09-03-2005 at 11:09 PM..
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 03:44 PM.


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