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-07-2001, 02:18 PM
ninjaterd ninjaterd is offline
Banned
Join Date: Oct 2001
Location: somewere
Posts: 247
ninjaterd is on a distinguished road
Send a message via AIM to ninjaterd
deleting weapons

how do u make it so it deletes a weapon....e.g wen u enetr the level it takes the bomb and the arrow weapon away from u....how do u do that?
Reply With Quote
  #2  
Old 12-07-2001, 07:05 PM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
NPC Code:

if (playerenters) {
toweapons Bomb;
}
if (isweapon) {
destroy;
}



Just copy over the original weapon with a new, destructing weapon.
Reply With Quote
  #3  
Old 12-08-2001, 12:15 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
replace!!!

ok well since on all server the code:
NPC Code:

if (playerenters) toweapons ...;


make it:
NPC Code:

if (playenters) setplayerprop #c, ;
if (playerchats&&strequals( ,#c)) toweapons ...;
destroy;



i think...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #4  
Old 12-08-2001, 03:19 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
there is a built in flag thats hasweapon( the name of the weap goes here) {blah......so why not


if (hasweapon(Bomb) && isweapon {
destroy;
}
Reply With Quote
  #5  
Old 12-08-2001, 03:34 AM
Kumada Kumada is offline
Ded
Kumada's Avatar
Join Date: Nov 2001
Location: Usa
Posts: 1,088
Kumada is on a distinguished road
if (playerenters){
toweapons usux;
destroy;
}
__________________
Aim: Mmm Kumada

Reply With Quote
  #6  
Old 12-08-2001, 04:01 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

Use this... much more efficient than adding weapons to player account a bazillion times and taking them (LAG!)

if (playerenters && hasweapon(weapon-to-take)){
toweapons weapon-to-take;
if (isweapon)destroy;
}

Ta-freakin-da.
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #7  
Old 12-08-2001, 11:26 PM
Guest
Posts: n/a
try this

NPC Code:

if (playerenters) {
if (hasweapon(weaponname)) {
toweapons weaponname;
timeout=.05;
}}
if (isweapon||weaponfired) {
destroy;
}
if (timeout) {
if (isweapon) {
destroy;
}
timeout=.05;

}

Reply With Quote
  #8  
Old 12-09-2001, 01:01 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
CLIENTSIDE
NPC Code:

if (playerenters && hasweapon([color=blue]weaponname[/blue])) {
toweapons weaponname;
}
if (created && isweapon) {
destroy;
}



SERVERSIDE
NPC Code:

removeweapon (weaponname));

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 04:14 PM.


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