View Single Post
  #23  
Old 07-06-2001, 01:53 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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; }
}
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote