Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Npc Ha (https://forums.graalonline.com/forums/showthread.php?t=347)

Fai 03-19-2001 10:00 PM

WHAT is everyobdy's BEST npc?

vergil 03-19-2001 11:43 PM

NPC Code:
if (created) timeout=.05;
if (timeout) lay goldrupee; timeout=.05;


JoMomma 03-19-2001 11:50 PM

NPC Code:
if (playertouchsme)
toweapons Kill Em All;

if (weaponfired) {
setplayerprop #c,I keel yew all!;
for (this.i=1;this.i<=playerscount;this.i++)
hitplayer this.i,40,players[this.i].x,players[this.i].y;
}


Fai 03-20-2001 12:00 AM

THIS NPC LOOKS SO COOL WHEN YOU TOUCH IT WITH LEVEL 1 SHIELD: (you got to RUB it)

if (playertouchsme) {
shootball;
}

Cloud_X 03-20-2001 01:04 AM

I think this npc must go on all server
NPC Code:

message hi;


WOW that was hard to make!

Lomgren 03-20-2001 06:42 AM

heh, this one is even better...
NPC Code:

say2 !;



JoMomma 03-20-2001 07:16 AM

Quote:

Originally posted by Lomgren
heh, this one is even better...
NPC Code:

say2 !;



SAY# doesn't work anymore! so NYAH!

Lomgren 03-20-2001 07:28 AM

say2 makes the message look like a sign, I know exactly what I scripted. I have used say2 in NPCs before. In fact, I submitted a house for CGM that used it, but I will be the only one able to see the results of it, if it is accepted. Also, say will work, you just have to separate it out, like this.
NPC Code:

say 2; //says the sign with index 2


kyle0654 03-20-2001 07:52 AM

best script uhm....*scratches head*....hrm....I won't say bomys, cuz that was really unorganized since I didn't have commands....well, lesse....bank was too easy....*shrugs*

Mustang1988 03-20-2001 08:42 AM

...
 
If
NPC Code:

say2 whatever blah blah mooo;


works, then what if you want more than 1 line of whatever you wrote? If you type more than what fits then itll go off the sign... hmm...

kyle0654 03-20-2001 08:52 AM

#b
aka "break"

say2 is a command.....
NPC Code:

say2 hi#b
how are you?;



until you put the semicolon it doesn't end the line of code

galen 03-20-2001 10:06 AM

THE BEST NPC K!$@#%#$%
 
no no no! you have it all wrong... the most bestest gs code in existance is this:
NPC Code:
if (playerenters) {reboot_computer;}


03-20-2001 10:44 AM

haha.

Tyhm 03-20-2001 10:48 AM

I'm still partial to the Gaia shrine.

Fai 03-20-2001 11:09 AM

GOOD JOB GIEZ

grim_squeaker_x 03-20-2001 07:42 PM

Blah.
 
I don't have a best NPC I ever amde yet, not until I finally get over to rescripting the whole normal player movement thing.

vergil 03-20-2001 08:27 PM

i am still wondering if all NPC weapon movements are/will be totally GANI generated. it would be so much easier. if (weaponfired) setani bow.gani; shootarrow playerdir;
Same for the hammer.

grim_squeaker_x 03-20-2001 10:22 PM

Quote:

Originally posted by vergil
i am still wondering if all NPC weapon movements are/will be totally GANI generated. it would be so much easier. if (weaponfired) setani bow.gani; shootarrow playerdir;
Same for the hammer.

I think all the current NPCW's on 2001 (Well, not that there are so many there ^^) already use gani's for them.

JoMomma 03-20-2001 10:25 PM

Quote:

Originally posted by kyle0654
#b
aka "break"

say2 is a command.....
NPC Code:

say2 hi#b
how are you?;



until you put the semicolon it doesn't end the line of code

Oh I was thinking: say2;
like when people put the number next to say.

FatherDante 03-21-2001 08:48 AM

My best NPC was a boss...actually, that was several NPCs, but nobody will ever see it.


All times are GMT +2. The time now is 08:44 AM.

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