Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   My NPC idea (https://forums.graalonline.com/forums/showthread.php?t=19605)

Bird2prey 12-25-2001 09:03 PM

My NPC idea
 
I already posted it... but here it is again.

An NPC of a gold rupee or a hat that jumps away when you get close. Maybe for april fools day.

Mrmicro 12-25-2001 09:35 PM

Heh that would be pretty cool.. .I might make it

Bird2prey 12-25-2001 09:45 PM

-
 
So long as I get credit for the IDEA : \

Googi 12-25-2001 10:16 PM

The last person to get credit on graal for something they only had an idea of was Stefan, when graal was made;)

Jman9912-P2P 12-26-2001 12:02 AM

lol that would be pretty easy i might script that

Bird2prey 12-26-2001 08:27 AM

-
 
Eh, fine script it.

Sennema 12-27-2001 12:34 AM

Quote:

Originally posted by Googi
The last person to get credit on graal for something they only had an idea of was Stefan, when graal was made;)
I dunno. Stefan didn't only have the idea. He also made the game. I saw someone give credit to someone else for an idea on a server before, but I forget which one (I think it might've been Mithica, but not sure)

Faheria_GP2 12-27-2001 03:06 AM

okay, here goes

NPC Code:

if (created) {
this.shadeoff={-.25,1.25};
this.off={.5,1};
}
if (playertouchsme && this.jumping==0) {
dir=playerdir;
jump();
while (onwall(x+this.off[0],y+this.off[1])) {
if (this.jumping=0) jump();
sleep .05;
}
}
function jump() {
this.jumping=1;
this.shadex=x;
this.shadey=y;
for (this.i=2; this.i>=-2; this.i-=.5) {
y-=this.i;
x+=vecx(dir);
y+=vecy(dir);
this.shadex+=vecx(dir);
this.shadey+=vecy(dir);
//showimg 0,shadow.gif,this.shadex+this.shadeoff[0],this.shadey+this.shadeoff[1];
//Uncomment that line if you have shadow.gif, otherwise, massive slowdown.
changeimgvis 0,0;
sleep .05;
}
hideimg 0;
this.jumping=0;
}



give that a GFX with a rupee, or maybe a gralat

kittygirl765 12-27-2001 06:23 AM

Re: My NPC idea
 
Quote:

Originally posted by Bird2prey
I already posted it... but here it is again.

An NPC of a gold rupee or a hat that jumps away when you get close. Maybe for april fools day.

lol
if only there was a command that did the opposite of followplayer =P (runawayfromplayer <---:cool: )

Faheria_GP2 12-27-2001 07:53 AM

hey, use trig...


All times are GMT +2. The time now is 04:48 PM.

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