Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Problem with the command /clearnpcs (https://forums.graalonline.com/forums/showthread.php?t=37928)

BinaryCrash 09-14-2002 11:11 AM

Problem with the command /clearnpcs
 
the command /clearnpcs are not working anymore for npcs created with putnpc2.
This problem is happening on Maloria.

Graal2001_NAT 09-14-2002 11:34 AM

Re: Problem with the command /clearnpcs
 
Quote:

Originally posted by BinaryCrash
the command /clearnpcs are not working anymore for npcs created with putnpc2.
This problem is happening on Maloria.

hmm, I was having problem with the destroy command with local (putnpc2) npcs before, I would use destroy after a sleep for them but when i updated the level, they would reappear but destroy (which acted more like hide) again

BinaryCrash 09-15-2002 06:16 AM

i got an idea. will it work if we use
with(npcs[number]){
destroy;
}
??

Graal2001_NAT 09-16-2002 11:57 PM

that would destroy every npc on the level (but ones that are built-into the level would refresh on an update)

Loriel 09-17-2002 12:50 AM

NPC Code:
for (i=0; i<npcscount; i++) with (npcs[i])
destroy;
sendtorc updatelevel #L;


Or something...

BinaryCrash 09-24-2002 09:44 AM

i tested that and it clear all the npcs, at this point it work, but when try to update level it wont show the npcs from the level
file again... :\


All times are GMT +2. The time now is 01:10 AM.

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