Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-27-2001, 10:56 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Riddle me this.

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
Attached Images
 
Reply With Quote
  #2  
Old 07-27-2001, 11:12 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

Ok one more

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

Reply With Quote
  #3  
Old 07-27-2001, 11:41 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
erm, picsgold.gif is a blank file with a gold palette......
__________________
Reply With Quote
  #4  
Old 07-27-2001, 11:42 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

No it is a 1x1 image of a gold pixel.
Reply With Quote
  #5  
Old 07-27-2001, 11:51 PM
DarkPyro_2001 DarkPyro_2001 is offline
Über-1337 Member
DarkPyro_2001's Avatar
Join Date: Jun 2001
Location: Graal Classic Jail
Posts: 1,184
DarkPyro_2001 is on a distinguished road
Send a message via ICQ to DarkPyro_2001 Send a message via AIM to DarkPyro_2001 Send a message via Yahoo to DarkPyro_2001
It's a 'backpal' for pics1.png.
__________________
Friends University of Central Kansas... weird acronym, weird place.

NoFace (3/25/02 8:42:10 PM):
Mass message:
how do u get the trident to work?
Reply With Quote
  #6  
Old 07-27-2001, 11:52 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
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.
Reply With Quote
  #7  
Old 07-27-2001, 11:55 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
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).
__________________

Reply With Quote
  #8  
Old 07-28-2001, 12:15 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Good point
Reply With Quote
  #9  
Old 07-29-2001, 02:38 AM
omni-m00gle omni-m00gle is offline
delete all proofs
omni-m00gle's Avatar
Join Date: Apr 2001
Location: United Kingdom
Posts: 2,528
omni-m00gle is on a distinguished road
Send a message via AIM to omni-m00gle
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..
__________________
-+ Malak +-

Never taste of the fruit...

Quote:
Originally posted by Stefan
on andor i got jailed for
impersonating me
Reply With Quote
  #10  
Old 07-31-2001, 02:44 AM
Guest
Posts: n/a
very laggy ;/
Reply With Quote
  #11  
Old 07-31-2001, 03:42 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
of course, icepick tried to put on his server delteria, like he does with every NPC he comes across
Reply With Quote
  #12  
Old 07-31-2001, 04:39 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Talking

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;
}
__________________
Do it with a DON!
Reply With Quote
  #13  
Old 07-31-2001, 07:38 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

It only lags if you like men.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:22 AM.


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