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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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:48 PM.


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