Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   bar thing on screen (https://forums.graalonline.com/forums/showthread.php?t=18184)

Bortlad 11-30-2001 04:21 AM

bar thing on screen
 
How do you make a loading bar type thing, that would appear in the upper right corner acting like a mp bar.I want to know how to make it so that as a variable rises, the bar will.Once they variable is set back to 0, it starts over.

mikepg 11-30-2001 04:35 AM

umm
 
it has to deal with showimg, changeimgvis, timeouts, and equations.

to make a status bar, you will want to changeimvis to 4. ;)
4 is above everything status screen type thing.

Poogle 12-04-2001 08:07 PM

Re: umm
 
Status bars dont work offline anymore I dont think cuse mine dont and they worked before 2.1 (Full)

btedji 12-04-2001 08:16 PM

bars still work perfectly for me offline

you should go look at one of the other threads on bars, im sure everyone doesnt want to repost all of their information

aesquivel 12-04-2001 11:39 PM

Re: Re: umm
 
Quote:

Originally posted by Poogle
Status bars dont work offline anymore I dont think cuse mine dont and they worked before 2.1 (Full)
errrrrrm mine still werk offline

Saga2001 12-05-2001 03:01 PM

oh hell
 
well i have time to kill...

NPC Code:

// Variables
if (created || initialized) {
// the starting variable
this.var=0;
// the maximum variable
this.maxvar = 100;
// index, if its >200 than its for everyone <200 its clientside
this.index = 201;
// image width in pixels
this.width = 100;
timeout=.05;
}
// Increment and show
if (timeout) {
showimg this.index,imagename.png,(this.var/this.maxvar)*this.width,100;
changeimgvis this.index,4;
if (this.var<this.maxvar) this.var++;
timeout=.05;
}




:),
--PastAustin

Saga2001 12-05-2001 03:02 PM

Re: Re: umm
 
Quote:

Originally posted by Poogle
Status bars dont work offline anymore I dont think cuse mine dont and they worked before 2.1 (Full)

bars work offline, believe me.

btedji 12-05-2001 08:23 PM

i thought <440 was the showimg limit for serverside??

Saga2001 12-06-2001 12:12 AM

nope
 
Quote:

Originally posted by btedji
i thought <440 was the showimg limit for serverside??
nope, 200 is the limit...:-/ it kinda sucks when you want to make a more than 200 image array that is serverside...:-/

ShockwaveISTHEBEST 12-08-2001 10:14 AM

can anyone explaine sagas script I dont completely understand it

Sennema 12-09-2001 07:10 AM

Re: oh hell
 
Quote:

Originally posted by Saga2001
[B]well i have time to kill...

NPC Code:

// Variables
if (created || initialized) {
// the starting variable
this.var=0;
// the maximum variable
this.maxvar = 100;
// index, if its >200 than its for everyone <200 its clientside
this.index = 201;
// image width in pixels
this.width = 100;
timeout=.05;
}
// Increment and show
if (timeout) {
showimg this.index,imagename.png,(this.var/this.maxvar)*this.width,100;
changeimgvis this.index,4;
if (this.var<this.maxvar) this.var++;
timeout=.05;
}


How can you explain it better than that without confusing yourself and others? For me, it can't be done. Except one thing...
Quote:

// index, if its >200 than its for everyone <200 its clientside
It should be // index, if its <200 than its for everyone >200 its clientside. <= less than, >=greater than.


All times are GMT +2. The time now is 08:23 AM.

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