Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Riddle me this. (https://forums.graalonline.com/forums/showthread.php?t=8266)

Brady2 07-27-2001 10:56 PM

Riddle me this.
 
1 Attachment(s)
Jadis:

Hey hey hey,

I made a script that isn't too complicated. I just love the radar sweep :)

NPC Code:

// NPC made by Jadis
if (playerenters) timeout = .1;
if (timeout) {
this.1 = 200;
for (this.angle=0;this.angle<6.28;this.angle+=.314/8) {
for (this.radius=0;this.radius<5;this.radius+=.1) {
this.x = x+sin(this.angle)*this.radius;
this.y = y+cos(this.angle)*this.radius;
showimg this.1,picsgold.gif,this.x,this.y;
this.1++;
}
sleep .05;
}
}



You could also take out the sleep .05; line and change the image to whatever color you want and make a bad-looking version of a lighting effect :)

Brady2 07-27-2001 11:12 PM

Jadis:

Ok one more :rolleyes:

NPC Code:

// NPC made by Jadis
if (playerenters) {
timeout = 1;
this.1 = 200;
this.angle = 0;
}
if (timeout) {
this.1 = 200;
for (this.angle=0;this.angle==this.angle;this.angle+=. 314/8) {
for (this.radius=0;this.radius<5;this.radius+=.1) {
this.x = x+sin(this.angle)*this.radius;
this.y = y+cos(this.angle)*this.radius;
showimg this.1,picsgold.gif,this.x,this.y;
changeimgvis this.1,2;
this.1++;
if (this.1>=800) hideimg this.1-600;
}
sleep .05;
}
timeout = .05;
}


G_yoshi 07-27-2001 11:41 PM

erm, picsgold.gif is a blank file with a gold palette......

Brady2 07-27-2001 11:42 PM

Jadis:

No it is a 1x1 image of a gold pixel.

DarkPyro_2001 07-27-2001 11:51 PM

It's a 'backpal' for pics1.png.

Brady2 07-27-2001 11:52 PM

Jadis:

God damnit I know what it is. If you are not using setbackpal picsgold.gif; then it is just a 1x1 image of a gold pixel with a gold palette.

grim_squeaker_x 07-27-2001 11:55 PM

You can also use:
showimg i,@arial@@.,x,y;
changeimgcolors i,0,1,1,1;
Since when using the text display option the changeimgzoom and changeimgcolor is seeable for everyone (These don't require special programming).

Brady2 07-28-2001 12:15 AM

Good point :)

omni-m00gle 07-29-2001 02:38 AM

Reminds me of comsat scanning from starcraft..

I was playing around with it and switched it to putexplosion with a radius of .5...it looked 3Dish.. :D

07-31-2001 02:44 AM

very laggy ;/

General 07-31-2001 03:42 AM

of course, icepick tried to put on his server delteria, like he does with every NPC he comes across

zokemon 07-31-2001 04:39 AM

DISCO DOTS!

Quote:

if (playerenters) {
timeout = 1;
this.1 = 200;
this.angle = 0;
}
if (timeout) {
this.1 = 200;
for (this.angle=0;this.angle==this.angle;this.angle+=. 314/8) {
for (this.radius=0;this.radius<5;this.radius+=.1) {
this.x = x+sin(this.angle)*this.radius;
this.y = y+cos(this.angle)*this.radius;
showimg this.1,@arial@@.,this.x,this.y;
changeimgcolors this.1,random(0,1),random(0,1),random(0,1),random( 0,1);
changeimgvis this.1,2;
this.1++;
if (this.1>=800) hideimg this.1-600;
}
sleep .05;
}
timeout = .05;
}

Brady2 07-31-2001 07:38 AM

Jadis:

It only lags if you like men.


All times are GMT +2. The time now is 05:02 AM.

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