Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Weapon does not exist? (https://forums.graalonline.com/forums/showthread.php?t=56274)

prozac424242 12-02-2004 11:47 PM

Weapon does not exist?
 
in the RC in my server, I added a weapon
and it worked fine.
The weapon is supposed to destroy it self from the player's inventory
after they leave the level (its for an events place)

The weapon name is Events Bow.
Is that a reserved or something?

Any reason why it would work once,
then I still see it on the RC list of weapons
but now i cannot get in to edit the script
and the addweapon npc no longer adds the weapon!

The part that removes the weapon, triggered by playerenters:

NPC Code:

if (!strequals(#L,pro_argame.graal)){destroy;}



any reason why this would erase the npc from the npc server?
I just want it to go away from the players q menu inventory...

calum 12-02-2004 11:53 PM

I don't quite see what your getting at, but would it help if you used the 'removeweapon' command instead of using 'destroy'?
NPC Code:

removeweapon weaponname;


So...
NPC Code:

removeweapon Events Bow;


Slash-P2P 12-03-2004 04:26 AM

NPC Code:

if (actionserverside) {
removeweapon Events Bow;
}
//#CLIENTSIDE
if (playerenters) {
if (!strequals(#L,pro_argame.graal)) {
triggeraction 0,0,serverside,Events Bow,#a;
}
}



You can use destroy clientsided to remove the weapon from the player, but if you use it serversided, it will screw up the weapon.


All times are GMT +2. The time now is 07:31 PM.

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