Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-25-2001, 09:45 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Rings of Fire!!! Eye candy

Hey graalians! Here is a neat little weapon
that makes five rings of fire on the screen!
Bonus points to make the norht-south-east-
west circles rotate arount the player!

// NPC made by Prozac
// circle code by Kyle0654 used with permission
// for personal use only, do not upload to a server without
//permission

if (playerenters){show;}
if (playertouchsme){toweapons Rings of Fire; this.a=0;}

if (weaponfired && this.a==0){this.what=0;
this.a=1; sleep .2; this.radius=5; timeout=.05;}
if (weaponfired && this.a==1){this.a=0; this.what=1; sleep .2; timeout=.05;}

if (timeout && this.a==1)
{
if (this.what==1){this.radius--;}
if (this.radius<5){this.what=0;}
if (this.radius<15 && this.what==0){this.radius++;}
if (this.radius==15){this.what=1;}
x=playerx; y=playery;
this.oldi=0;
this.Angles=31.4;
this.sleeptime=.05;
for (this.j=0; this.j<1; this.j++)
{
for (this.A=0;this.A<6.28;this.A+=(6.28/this.Angles))
{ shootaball(); }
sleep .1;
}
timeout=.05;
}
/////////////////

function shootaball() {
if (!this.oldi==this.j && this.radius>0){this.radius--;}else{this.radus++;}
this.Ox=playerx+5;
this.Oy=playery;
playerx+=this.radius*cos(this.A);
playery+=this.radius*sin(this.A);

// shootball;
if (this.radius<14)
{putexplosion2 1,-8,playerx,playery;}
else
{putexplosion2 3,0,random(playerx-.5,playerx+.5),random(playery-.5,playery+.5);}

playerx=this.Ox-5;
playery=this.Oy;
this.oldi=this.j;
}


also check my NPC search engine,
http://www.figmentcode.com/cgi-bin/npc1.pl

~Prozac~
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
 


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:55 AM.


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