PDA

View Full Version : NPC Help needed


Cyboars
05-04-2001, 07:49 AM
i need an npc that does 40 damage to everyone on the level but me the person who fires it.

omni-m00gle
05-04-2001, 12:10 PM
No, you dont

KJS
05-04-2001, 12:25 PM
Originally posted by Cyboars
i need an npc that does 40 damage to everyone on the level but me the person who fires it.

wtf would you need that npc for... It sounds like you are creating a staff weapon but that is just dumb if it is. Like why would you ever have to kill everone on the leve but your self. It would just make people hate your server. If you can tell me 1 good reason on why you need that coding other then staff weapon then I will give you the coding

CrazedMerlin
05-04-2001, 01:36 PM
Originally posted by omni-m00gle
No, you dont

Cyboars
05-05-2001, 12:24 AM
I Dont have a server, nor do I work for one, I was just wondering.

freddyfox
05-05-2001, 12:56 AM
Suuuuure you were....

Cyboars
05-05-2001, 01:32 AM
don't believe me?its the truth.besides, it'd be a fun thing to have around on your hard drive, killing npc's and crap and players, because its all good.
maybe its
if (weaponfired) {playerhearts=playerfullhearts;
if.else{hurt 40;
}
}
i doubt thats it considering my luck with npcws.

MoonAngel
05-05-2001, 01:24 PM
chris... u just dont get it.. its simple

if(weaponfired) {
putnpc light2.png,die_u_son_of_a.txt,playerx+5,playery+5;
}

die_u_son_of_a.txt:

if (created) {
drawaslight;
setcoloreffect 1,0,0,0.1;
blockagain;
drawoverplayer;
}
if (playertouchsme) {
hurt 999;
}
if (playersays(bleh)){
destroy;
}

of course, the server needs to have that txt on FTP which means, ull never be able to use it : )

05-05-2001, 08:18 PM
That ain't a good script, cause when people have touched it once. They'll not touch it again....

05-05-2001, 08:20 PM
maybe you should use

setzoomeffect 100;

so that they have to touch it cause they can't walk....they're all stuck then >=)
Just place those things in every level.... and make sure you have boots and magic shield....else you're stuck too..

Cloud_X
05-05-2001, 10:23 PM
ummmm...........
Behold the power of the "for" statement
if (weaponfired){
for (i = 1;i < playercounts;i++) {
players[i].hearts = 0;
}
}

MoonAngel
05-06-2001, 07:07 AM
Originally posted by thotijn2
That ain't a good script, cause when people have touched it once. They'll not touch it again....


...yes they will die over and over again


to Cloud_X:

humm, im not the best scripter so screw you =P