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 06-21-2001, 02:09 PM
Geovanie Legend Geovanie Legend is offline
Graunch Programmer
Geovanie Legend's Avatar
Join Date: May 2001
Location: Missouri
Posts: 931
Geovanie Legend is an unknown quantity at this point
Send a message via ICQ to Geovanie Legend Send a message via AIM to Geovanie Legend Send a message via MSN to Geovanie Legend Send a message via Yahoo to Geovanie Legend
Exclamation Weapon killer

A long time ago I made a script that would delete a weapon from your inventory when you entered a level, but now i can't remember how it's done
Would someone be so kind as to post the script here for me or send it to me in a pm. thanks
Reply With Quote
  #2  
Old 06-21-2001, 03:03 PM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
do alot like this
if (playerenters&&hasweapon(LAT Boots)) {toweapons LAT Boots;
if (playerenters&&hasweapon(Heart Stone)) {toweapons Heart Stone;
if (weaponfired) {destroy;}
}
}
like that, you get the point
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
  #3  
Old 06-21-2001, 03:12 PM
Geovanie Legend Geovanie Legend is offline
Graunch Programmer
Geovanie Legend's Avatar
Join Date: May 2001
Location: Missouri
Posts: 931
Geovanie Legend is an unknown quantity at this point
Send a message via ICQ to Geovanie Legend Send a message via AIM to Geovanie Legend Send a message via MSN to Geovanie Legend Send a message via Yahoo to Geovanie Legend
Quote:
do alot like this
if (playerenters&&hasweapon(LAT Boots)) {toweapons LAT Boots;
if (playerenters&&hasweapon(Heart Stone)) {toweapons Heart Stone;
if (weaponfired) {destroy;}
}
}
like that, you get the point
So i could redo it some and make it like this?

if (playerenters) {
timeout=0.5;
}
if (playerenters&&hasweapon(LAT Boots)) {toweapons LAT Boots;
if (playerenters&&hasweapon(Heart Stone)) {toweapons Heart Stone;
if (isweapon||timeout) {destroy;}
}
}
Reply With Quote
  #4  
Old 06-21-2001, 05:13 PM
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
NPC Code:
if (playerenters&&isweapon&&strequals(#L,levelname)) destroy;

__________________

Reply With Quote
  #5  
Old 06-22-2001, 08:24 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Here's how it should be done...

NPC Code:

if (playerenters) {
toweapons NAME TO DELETE;
}
if (isweapon)
destroy;



Very easy to make... Even easier with the NPC server.

NPC Code:

removeweapon NAME TO DELETE;

__________________
Eric Kraft
Reply With Quote
  #6  
Old 06-22-2001, 08:26 AM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
yea but my way is easier if its alot of weapons you want to destroy
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
  #7  
Old 06-22-2001, 09:36 AM
Guest
Posts: n/a
Hmm... try this

NPC Code:


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

}


Reply With Quote
  #8  
Old 06-22-2001, 11:55 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
if(playerenters) toweapons Tree Seeds;
if(isweapon) destroy;

Warning: Though this seems to happen instantaneously, some NPCs will detect hasweapon(Tree Seeds). Very bad if you're running an autojailer on it! =_=;
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #9  
Old 06-22-2001, 04:52 PM
supersaiyanboo2 supersaiyanboo2 is offline
Registered User
Join Date: Jun 2001
Location: Germany
Posts: 209
supersaiyanboo2 is on a distinguished road
Send a message via ICQ to supersaiyanboo2 Send a message via AIM to supersaiyanboo2
Talking lol?

y just do this lil code lol:

if (weaponfired && !strequals(#L, UR LEVEL)){ //when the weapon is fired in another level//
destroy;
}
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 06:50 PM.


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