Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Run Away Rupee (https://forums.graalonline.com/forums/showthread.php?t=19775)

btedji 12-28-2001 06:23 AM

Run Away Rupee
 
1 Attachment(s)
Hehe this is something funny I made

Faheria_GP2 12-28-2001 07:26 AM

sigh, already been done

Faheria_GP2 12-28-2001 07:29 AM

plus mine looks better

Faheria_GP2 12-28-2001 07:31 AM

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



use golrupee.gif or something similar

btedji 12-28-2001 07:49 AM

oh well someone wanted this so I decided what the heck

Dean 12-30-2001 10:35 PM

Its kool Dont Diss
 
Its a cool NPC but if you go diagnle you can get it

Bird2prey 12-31-2001 12:40 AM

-
 
That was me ^ ^. I didn't do any scripting I just posted it as an idea.

Poogle 01-02-2002 05:52 AM

1 Attachment(s)
I got it going straight down (excuse the bar i was working on before)

btedji 01-02-2002 11:46 PM

I know you can get it just change some of the vars I didnt spend much time on this script


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

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