Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   a bug? (https://forums.graalonline.com/forums/showthread.php?t=60930)

excaliber7388 09-02-2005 04:57 PM

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
}


Lance 09-02-2005 05:13 PM

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.

excaliber7388 09-02-2005 11:52 PM

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?

excaliber7388 09-03-2005 10:11 PM

nvm, i reset my account, and it works now X_x


All times are GMT +2. The time now is 12:20 PM.

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