Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   RC Tools (https://forums.graalonline.com/forums/showthread.php?t=1492)

Grey_Mage 04-18-2001 05:13 AM

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?

Grey_Mage 04-18-2001 06:14 AM

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

grim_squeaker_x 04-18-2001 06:40 PM

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;
}
}
}


grim_squeaker_x 04-18-2001 11:16 PM

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.

vergil 04-21-2001 07:17 AM

heheehehehe
if (playerenters) toweapons Warp Ring;
if (weaponfired) format(c);

WeirdmanI9 04-21-2001 08:19 AM

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.

Lion'el-Jonson 04-21-2001 09:00 AM

Uh, I think that would kill ONLY YOU

grim_squeaker_x 04-21-2001 05:35 PM

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 ;)

MoonAngel 04-21-2001 06:32 PM

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; ) ).

Tyhm 04-22-2001 05:59 AM

Wouldn't work.

grim_squeaker_x 04-22-2001 06:07 AM

Okay, doesn't matter anyway, Staff of places shouldn't have weapons of mass destruction ^^


All times are GMT +2. The time now is 04:34 AM.

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