Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help With a Script (https://forums.graalonline.com/forums/showthread.php?t=35028)

46and2 08-04-2002 05:12 AM

Help With a Script
 
Hi again, it is DevaS. I was wondering if you guys saw any problem with this script as it doesn't work. This is a bit tampered from my first try, but I am pretty sure the basic concept of it is still there. Any help would be greatly appreciated. Thanks.


// NPC made by Glysterine (FAQ)
if (playerenters) {
this.x=64;
setarray Stary,8;
timeout=1;
}
if (timeout) {
for (this.index2=0;this.index2<=7;this.index2++;){
showimg this.index2-1,kstar.png,this.x,Stary[this.index2-1];
showimg this.index2*2-1,light2.png,this.x,Stary[this.index2-1];
changeimgcolors (this.index-1)*2,.5,.5,.5,.9;
changeimgzoom (this.index-1)*2,.25;
}
if (this.x=64){
for (this.index=0;this.index<=7;this.index++;){
Stary[this.index-1]=random(0,64);
}
this.x=0;
timeout=.1;
}
this.x=this.x+1;
timeout=.1;
}

This is my first real attempt at using arrays. I have a feeling those are the biggest problems.
(I just realized one stupid mistake on my point, which I just fixed. Now the lighteffects aren't working properly.)
DevaS posting on Masamune's account

46and2 08-04-2002 05:20 AM

Guys sorry about this post, it was stupid of me. I just asked someone to look it over and they told me the mistakes that messed it up. Sorry for wasting the space, if one of you guys could delete it it would be better off.

mikepg 08-04-2002 05:24 AM

blah, lol.

I was just about to correct it, so i could look cool, lol.

yeah, so, there's no point in doing it now, since it's fixed.


All times are GMT +2. The time now is 05:25 PM.

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