View Single Post
  #11  
Old 12-09-2001, 07:10 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
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.
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote