Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   NPC Help needed (https://forums.graalonline.com/forums/showthread.php?t=2185)

Cyboars 05-04-2001 06: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 11:10 AM

No, you dont

KJS 05-04-2001 11:25 AM

wtf?
 
Quote:

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 12:36 PM

Quote:

Originally posted by omni-m00gle
No, you dont

Cyboars 05-04-2001 11:24 PM

I Dont have a server, nor do I work for one, I was just wondering.

freddyfox 05-04-2001 11:56 PM

Suuuuure you were....

Cyboars 05-05-2001 12: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 12: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 07:18 PM

That ain't a good script, cause when people have touched it once. They'll not touch it again....

05-05-2001 07: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 09: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 06:07 AM

Quote:

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


All times are GMT +2. The time now is 09:30 PM.

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