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.