Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-02-2004, 11:47 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
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...
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #2  
Old 12-02-2004, 11:53 PM
calum calum is offline
Registered User
Join Date: Nov 2003
Location: Scotland
Posts: 182
calum is on a distinguished road
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;

__________________
Reply With Quote
  #3  
Old 12-03-2004, 04:26 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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