Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-31-2001, 12:44 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Removing a weapon

How do you remove a weapon? is it like:
if (hasweapon(Weapon)) {
destory;
}
Reply With Quote
  #2  
Old 07-31-2001, 12:46 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
ya that works i guess
__________________
Do it with a DON!
Reply With Quote
  #3  
Old 07-31-2001, 01:11 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
if you want for a certain weapon like bomb

if (playerenters) {toweapons bomb;
timeout=.5;}
if (hasweapon&&timeout) {destroy;}


this way you can replace the npc in the data base thing so if it's ever added with RC it will destroy itself.
Reply With Quote
  #4  
Old 07-31-2001, 02:14 AM
omni-m00gle omni-m00gle is offline
delete all proofs
omni-m00gle's Avatar
Join Date: Apr 2001
Location: United Kingdom
Posts: 2,528
omni-m00gle is on a distinguished road
Send a message via AIM to omni-m00gle
easier with the NPC server..it's like

removeweapon bomb;
__________________
-+ Malak +-

Never taste of the fruit...

Quote:
Originally posted by Stefan
on andor i got jailed for
impersonating me
Reply With Quote
  #5  
Old 07-31-2001, 02:16 AM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
If you don't have a NPC Server just stick in a destroy; at the very top of the script and it'll delete itself when the player who has it reconnects, if you want to keep it in the weaponlist though (For players who like to collect weapons) it's better to put the destroy in the weaponfired part.
__________________

Reply With Quote
  #6  
Old 07-31-2001, 05:20 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
I want it for like a player leaves a level it goes bye bye remember the tred Kewl Idea about HouseBuilder? I GOT THE SCRITP! but i need to weapon to be deleted when they leave certian levels
Reply With Quote
  #7  
Old 07-31-2001, 05:44 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
if (!strequals(#L,levelnamehere.graal){destroy;}
Reply With Quote
  #8  
Old 07-31-2001, 05:45 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
or if you want the weapon for a set of levels, if (!strcontains(#L,test)){destroy;} dunno if itll work but it should delete the weapon when the player enters a level that doesnt have test in the name.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:43 AM.


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