Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Rings of Fire!!! Eye candy (https://forums.graalonline.com/forums/showthread.php?t=8068)

prozac424242 07-25-2001 09:45 PM

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~

Shard_IceFire 07-25-2001 10:40 PM

Um...
Ring of Fire = Cool looking offline.
Ring of Fire also = Lag heaven online.

ownerofbabylon 07-25-2001 11:20 PM

Omg that is awesome! But shard is right, if players had it that would = bad =\

mystic_pheonix 07-26-2001 12:30 AM

wow, thats cool!

07-26-2001 01:04 AM

its super cool...but i have a feeling that we will see this on deltaria...:(




and what is the deal with all those secret codes..where did you get them from?:confused:

mystic_pheonix 07-26-2001 05:18 AM

heh, what will you do if you see it on delteria?

Poogle 07-26-2001 05:35 AM

Quote:

Originally posted by mystic_pheonix
heh, what will you do if you see it on delteria?
I bet its already on Delteria!

mystic_pheonix 07-26-2001 05:36 AM

probably :(

Shard_IceFire 07-26-2001 09:34 PM

haha...putexplosion always causes major lag...Yes it will probably be stolen and put on delteria...

Brady2 07-26-2001 10:03 PM

Jadis:

LOL CIRCEL CODE MAD BY KYLE BUT IT SI JUST TRIGNOMETRY!

mystic_pheonix 07-27-2001 06:40 AM

and if it isnt... wait... there is no isnt about it

kyle0654 07-27-2001 06:45 AM

AAAAAAAAAAHHHHHHHHHHHHHHHH!!!!!$@@)(*&!)@$(*^!@)($ *&!)(@*$^)!*(@&$)(*!&@$)(*!&@)$(*^!@)($)(!*@&$)!(@ *$)(!*@^$)@^%#*&^_!@$!^@(*$!

I made that circle script? How long ago?

I am very scared of putexplosion *hides in a soup can in the corner*

mystic_pheonix 07-27-2001 06:46 AM

a soupcan?

Solareon 07-29-2001 11:09 AM

can you
 
which part you have to remove to make it just one circle around the player, I am trying to play with it to work but the code is really sloppy and not well documented

CyanideSR71 07-30-2001 03:05 AM

that script is so laggy grr..

must be the putexplosions of course.


sheesh ok we need something to replace putexplosion so bad.

making your own functon that does it will prabably be faster.

signed, Rogue Shadow -TT-*C* (TCN)

Falcor 07-30-2001 08:01 AM

Hmm.. We need a command called. putscripter level,x,y;
He scripts all your stuff so you dont have to!!!! lol..


All times are GMT +2. The time now is 10:27 PM.

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