LiquidIce00 |
07-06-2001 01:53 PM |
Quote:
Originally posted by grim_squeaker_x
You mean this code?
NPC Code:
if (weaponfired) this.active=1-this.active;
if ((created||timeout)&&isweapon) {
if (this.active==1&&strlen(#c)>0) setplayerprop #c,#e(strlen(#c),1,#c)#e(1,strlen(#c)-1,#c);
timeout=0.05;
}
With perhaps a slower timeout... And I'm not sure if this works like it should but you get the basic idea.
|
no not that code.
Ill post a part of it ;)
and if some1 copies it will be obvious neways..
if (timeout) {
this.charshow=strtofloat(#s(charshow));
if (this.charloc+this.charshow>strlen(#s(scrolltext)) ) {
this.newbegin=this.charshow-(strlen(#s(scrolltext))-(this.charloc));
setplayerprop #c,#e(this.charloc,strlen(#s(scrolltext))-(this.charloc),#s(scrolltext)) #e(0,this.newbegin,#s(scrolltext));
}
else {
setplayerprop #c,#e(this.charloc,this.charshow,#s(scrolltext));
}
this.charloc+=1;
if (this.charloc>strlen(#s(scrolltext))) { this.charloc=0; }
if (this.enabled=1) { timeout=strtofloat(#s(scrollspeed))*.1; }
}
|