![]() |
destroy;
NPC Code: anyone know why destroy dont work... |
once you leave a level the script stops running and thats one of the most pathetic attemps of doing a strequals for a string I've seen
strequals for a string is like this if (playerhurt&&strequals(#s(client.armor),3)){ blah; } for the setlevel2 thing, put the destroy before it, and also remember this, destroy destroys the npc for the WHOLE server |
does destroy delete it from database if it is a database npc??
|
Quote:
|
Quote:
Quote:
|
Quote:
thing (0.05 seconds timeout?) |
ooooooooh Stefan showed you all up!:p
|
Quote:
Quote:
so anyone got any ideas why it doesnt work? and it is for non-p2p btw, this is my first time using destroy so im not that familiar. |
Quote:
NPC Code: |
Didn't I say a few posts up that you have to put it above the setlevel/2?
|
Quote:
|
If I said that, then I ment you would put it right before the setlevel2 since the client stops running scripts once it leaves the level
|
Quote:
:D |
Quote:
hmph... well yeah you could do things with p2p easily... but with non-p2p you would have to go thru some mondo trouble, but if the player is leaving, i see no reason the npc should be terminated. |
Quote:
and if you really wanted to destroy it you could but there would have to be 2 people in the room and another NPC to control the destroying process but there is no point |
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: The Weapon NPC Code: |
Re: umm
Quote:
|
Quote:
thanks to all that try to help |
| All times are GMT +2. The time now is 09:48 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.