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-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
  #2  
Old 07-25-2001, 10:40 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Um...
Ring of Fire = Cool looking offline.
Ring of Fire also = Lag heaven online.
__________________

-=Shard IceFire=-
Reply With Quote
  #3  
Old 07-25-2001, 11:20 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Omg that is awesome! But shard is right, if players had it that would = bad =\
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #4  
Old 07-26-2001, 12:30 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
wow, thats cool!
__________________
Justin
Reply With Quote
  #5  
Old 07-26-2001, 01:04 AM
Guest
Posts: n/a
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?
Reply With Quote
  #6  
Old 07-26-2001, 05:18 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
heh, what will you do if you see it on delteria?
__________________
Justin
Reply With Quote
  #7  
Old 07-26-2001, 05:35 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by mystic_pheonix
heh, what will you do if you see it on delteria?
I bet its already on Delteria!
Reply With Quote
  #8  
Old 07-26-2001, 05:36 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
probably
__________________
Justin
Reply With Quote
  #9  
Old 07-26-2001, 09:34 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
haha...putexplosion always causes major lag...Yes it will probably be stolen and put on delteria...
__________________

-=Shard IceFire=-
Reply With Quote
  #10  
Old 07-26-2001, 10:03 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:

LOL CIRCEL CODE MAD BY KYLE BUT IT SI JUST TRIGNOMETRY!
Reply With Quote
  #11  
Old 07-27-2001, 06:40 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
and if it isnt... wait... there is no isnt about it
__________________
Justin
Reply With Quote
  #12  
Old 07-27-2001, 06:45 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
AAAAAAAAAAHHHHHHHHHHHHHHHH!!!!!$@@)(*&!)@$(*^!@)($ *&!)(@*$^)!*(@&$)(*!&@$)(*!&@)$(*^!@)($)(!*@&$)!(@ *$)(!*@^$)@^%#*&^_!@$!^@(*$!

I made that circle script? How long ago?

I am very scared of putexplosion *hides in a soup can in the corner*
Reply With Quote
  #13  
Old 07-27-2001, 06:46 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
a soupcan?
__________________
Justin
Reply With Quote
  #14  
Old 07-29-2001, 11:09 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
Question 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
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #15  
Old 07-30-2001, 03:05 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
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)
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #16  
Old 07-30-2001, 08:01 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Hmm.. We need a command called. putscripter level,x,y;
He scripts all your stuff so you dont have to!!!! lol..
__________________

subliminal message: 1+1=3
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 10:18 PM.


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