Graal Forums  

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

View Poll Results: Does the script pwn?
Yes! 2 40.00%
Of course! 1 20.00%
Never seen anything better!!!@ 2 40.00%
Voters: 5. You may not vote on this poll

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-26-2001, 05:16 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Pwnage NPC

This NPC pwns and was made my me alone so ph33r me!

// NPC made by Archaon (LAT)
// Info:
// You can reach me at [email protected]
// But don't ask for script since I suck.
// this. vars:
// this.explostype: explosion type (1 = normal, 3 = jolt bomb)
// this.radius: the explosion radius
// this.xincr: how much x space between the explosions
// set to 0 for no hortzontal movement
// this.yincr: how much y space between explosions
// set to 0 for no vertical movement
// this.explosstartx: the x where the explosion streak starts
// this.explosstarty: the y where the explosion streak starts
// this.explosx: the x where the explosion appear, dont touch
// this.explosy: the y where the explosion appear, dont touch
// this.xexplosdir: the x direction (1 = left, 3 = right)
// this.yexplosdir: the y direction (0 = up, 2 = down)
// this.exploscount: the number of explosions
// this.explodedcount: dont change this
// this.timeout: the time between each explosion streak
// this.timeout2: the time betweem each explosion
// this.again: leave this

if (playerenters) {
this.explostype = 3;
this.radius = 2;
this.xincr = 2;
this.yincr = 1;
this.explosstartx = x;
this.explosstarty = y;
this.explosx = this.explosstartx;
this.explosy = this.explosstarty;
this.xexplosdir = 3;
this.yexplosdir = 2;
this.exploscount = 20;
this.explodedcount = 0;
this.timeout = 1.1;
this.timeout2 = 0.05;
this.again = 1;
timeout = this.timeout;
}
if (timeout&&this.again==1) {
putexplosion2 this.explostype,this.radius,this.explosx,this.expl osy;
if (this.xexplosdir==3) {
this.explosx+=this.xincr;
} else if (this.xexplosdir==1) {
this.explosx-=this.xincr;
}
if (this.yexplosdir==0) {
this.explosy-=this.yincr;
} else if (this.yexplosdir==2) {
this.explosy+=this.yincr;
}
this.explodedcount+= 1;
if (this.explodedcount=>this.exploscount) {
this.explosx = this.explosstartx;
this.explosy = this.explosstarty;
this.explodedcount = 0;
this.again == 0;
timeout = this.timeout;
}
if (this.again==1) {
timeout = this.timeout2;
}
} else if (this.again==0) {timeout=this.timeout;this.again=1}
Reply With Quote
  #2  
Old 06-26-2001, 08:27 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
does the script pwn? what?
__________________

-=Shard IceFire=-
Reply With Quote
  #3  
Old 06-26-2001, 08:41 PM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Quote:
Originally posted by Shard_IceFire
does the script pwn? what?
'pwn' is meant as a misstricken key for 'o', pwn means own.
__________________
the sky is falling
Reply With Quote
  #4  
Old 06-26-2001, 08:49 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Okay maybe the poll was a bit retarded but the script is quite useful if you want to make traps and dangerous rooms Ã*n quests.
Reply With Quote
  #5  
Old 06-26-2001, 10:29 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
*runs from putexplosion, the master of lag*
Reply With Quote
  #6  
Old 06-27-2001, 05:16 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
It shoots explosions in long lines and you can change the angel in wich they are shot
Reply With Quote
  #7  
Old 06-28-2001, 06:54 AM
tecgoku234 tecgoku234 is offline
Registered User
Join Date: Mar 2001
Posts: 21
tecgoku234 is on a distinguished road
...no commenting on the comments

one question, why didn't you just put them in with the rest of the code? instead of making it's own section to describe the variables.

plus, i just realized not a lot of scripters actually comment there code, *tsk tsk*, bad habit there, it helps you remember what in the heck the block of codes does.

espically comment in perl with a rather long script that you messed up and you can't fix, that is annoying...
__________________
Temporary disabled
Stefan Knorr
Reply With Quote
  #8  
Old 06-28-2001, 03:21 PM
Munkey Munkey is offline
Guest
Join Date: May 2001
Location: Outside Pittsburgh
Posts: 279
Munkey is on a distinguished road
Send a message via ICQ to Munkey Send a message via AIM to Munkey
umm *wonders*
Reply With Quote
  #9  
Old 06-28-2001, 11:10 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
I never do it except when I send scripts to someone else.
Reply With Quote
  #10  
Old 06-29-2001, 12:25 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
I usually put a two line
//NPC made & copyright by Supersonic
//Date - Intention of Use - Server for use on (if any)
Reply With Quote
  #11  
Old 06-29-2001, 12:27 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
Oh yea also whenever i define a variable i put
this.var=1 //0-On, 1-off
this.vol=30 //Volume of the NPC
Reply With Quote
  #12  
Old 06-29-2001, 01:17 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
You should just change it to "Made by the official Graal script monkey"
Reply With Quote
  #13  
Old 06-29-2001, 02:08 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Heh. But back to my script!!!@

Is it useful or not?
Reply With Quote
  #14  
Old 06-29-2001, 01:19 PM
tecgoku234 tecgoku234 is offline
Registered User
Join Date: Mar 2001
Posts: 21
tecgoku234 is on a distinguished road
help if i used it yet

well, i learned my lesson for commenting, do it.
graalscript really isn't necessary but for what i did to my perl, oiu...

*puts the script into graal*
somewhat useful, if i needed a stream of jolt bombs to come and attack me ^_^

heh, reminds me of when i made the fire blast spell that fuitad said he would put on graal, which never did... oh well..

the magic cape in onnet was much better, but was slopily scripted... dang cap and him rushing me with it

*reminisces of the olden days*
..blah blah..
*goes on for hours*

*ends this post*
__________________
Temporary disabled
Stefan Knorr
Reply With Quote
  #15  
Old 06-29-2001, 11:40 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
I works fine as long as there is only one player in the level!!! x.X
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:44 PM.


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