Thread: destroy;
View Single Post
  #16  
Old 03-16-2002, 10:16 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
umm

if it's a client side NPC, it wont work, because once you leave the level, it's not going to go to the destroy command.

If it's a server side NPC, it wont work, because the timeout is 0.05

To get it to work serverside, change it to .1 or higher

to get it to work, the client would have to have some kind of weapon that is triggered, or does a timeout check when a new level is entered.

1st NPC (Part of timeout section) :
NPC Code:

if (strequals(#s(server.etegg),ended)) {
for (i=0; i<playerscount; i++; ) {
if (strequals(#s(etegg),playing)) {
client.eteggwon=1;
destroy;
}
}
}


The Weapon
NPC Code:

if (playerenters) {
sleep 1;
if (client.eteggwon=1) {
client.eteggwon=0;
setlevel2 yourlevel,x,y;
}
}

__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote