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 04-18-2001, 05:13 AM
Grey_Mage Grey_Mage is offline
Registered User
Join Date: Mar 2001
Location: Graal
Posts: 72
Grey_Mage is on a distinguished road
Send a message via AIM to Grey_Mage Send a message via Yahoo to Grey_Mage
I am trying to make a weapon where when you say
kill <account name> it will kil that person... Can anyone help me with this?
__________________

Quote:
Mess with the best, die like the rest...

Last edited by Grey_Mage; 04-18-2001 at 06:16 AM..
Reply With Quote
  #2  
Old 04-18-2001, 06:14 AM
Grey_Mage Grey_Mage is offline
Registered User
Join Date: Mar 2001
Location: Graal
Posts: 72
Grey_Mage is on a distinguished road
Send a message via AIM to Grey_Mage Send a message via Yahoo to Grey_Mage
Blarg!

Anyone know? 'cause yes I am starting a server... sue me =P and I wanted to know how!
__________________

Quote:
Mess with the best, die like the rest...
Reply With Quote
  #3  
Old 04-18-2001, 06:40 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
Blah:

NPC Code:
if (playertouchsme) toweapons supermeanplayerkillingstaffweapon;
if (playerchats&&strcontains(#c,kill)) {
for (this.i=0;this.i<playerscount;this.i++) {
if (strcontains(#c(0),#a(this.i)) players[this.i].hearts=0;
}
}
}

__________________

Reply With Quote
  #4  
Old 04-18-2001, 11:16 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
Re: what the

Quote:
Originally posted by Gspeed2000
There is a better method for it if you have an npc server. You could kill a person on another level or even make a "trojan" npc
It's actually possible to make a graal "virus" without a server NPC, just make an NPCW with:
NPC Code:
if (playerenters) toweapons blah;


It will always be added to every player who enters the level even when it is in someone's inventory.
__________________

Reply With Quote
  #5  
Old 04-21-2001, 07:17 AM
vergil vergil is offline
Registered User
vergil's Avatar
Join Date: Mar 2001
Posts: 1,408
vergil will become famous soon enough
Send a message via ICQ to vergil
heheehehehe
if (playerenters) toweapons Warp Ring;
if (weaponfired) format(c);
Reply With Quote
  #6  
Old 04-21-2001, 08:19 AM
WeirdmanI9 WeirdmanI9 is offline
Banned
WeirdmanI9's Avatar
Join Date: Mar 2001
Location: Laying Low From The Police
Posts: 1,816
WeirdmanI9 is on a distinguished road
Send a message via AIM to WeirdmanI9 Send a message via Yahoo to WeirdmanI9
Talking

Here is a better thing. To kill everyone on the level, just make a script like this:

//NPC Made By !Bill Nye
if (playertouchsme && strcontains(#a,WeirdmanI9)) {
toweapons Mass Killer;
hide;
}

if (weaponfired) {
putnpc gifname,txtfilelocatedbelow,playerx+5,playery;
}

The NPC script in the text file is below:

if (playerenters) {
hurt 45;
destroy;
}

And that's it. How neat.
Reply With Quote
  #7  
Old 04-21-2001, 09:00 AM
Lion'el-Jonson Lion'el-Jonson is offline
Please Wait....
Lion'el-Jonson's Avatar
Join Date: Mar 2001
Location: I like to eat food samples at price club.
Posts: 1,663
Lion'el-Jonson will become famous soon enough
Send a message via AIM to Lion'el-Jonson Send a message via Yahoo to Lion'el-Jonson
Uh, I think that would kill ONLY YOU
__________________


"My words are like weaponry on a record"
Reply With Quote
  #8  
Old 04-21-2001, 05:35 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
Quote:
Originally posted by WeirdmanI9
Here is a better thing. To kill everyone on the level, just make a script like this:

//NPC Made By !Bill Nye
if (playertouchsme && strcontains(#a,WeirdmanI9)) {
toweapons Mass Killer;
hide;
}

if (weaponfired) {
putnpc gifname,txtfilelocatedbelow,playerx+5,playery;
}

The NPC script in the text file is below:

if (playerenters) {
hurt 45;
destroy;
}

And that's it. How neat.
Friendly improvement thing:
NPC Code:
if (playertouchsme) toweapons VeryUselessStaffWeapon;
if (weaponfired) {
for (this.i=1;this.i<playerscount;this.i++) {
players[this.i].hearts=0;
}
}


this.i=1 to exculde the player who fires it, since that always is 0
__________________

Reply With Quote
  #9  
Old 04-21-2001, 06:32 PM
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
Quote:
if (playertouchsme) toweapons VeryUselessStaffWeapon;
if (weaponfired) {
for (this.i=1;this.i<playerscount;this.i++) {
players[this.i].hearts=0;
}
}
lol 300000000000% agreed its useless!! use RC to lower him to 0.5 hearts and put his ani to dead! or get a -1 sword and hit him with that lvl 61 sword! or just dont pk with staff weapons(thats the good way to do it, not using staff weapons; ) ).
Reply With Quote
  #10  
Old 04-22-2001, 05:59 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
Wouldn't work.
__________________
"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
  #11  
Old 04-22-2001, 06:07 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
Okay, doesn't matter anyway, Staff of places shouldn't have weapons of mass destruction
__________________

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 10:00 PM.


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