~AlphaFlame~
Hi kiddies. Here's the ultimate lag-your-server script. Enjoy.
NPC Code:
if (created && strtofloat(#s(server.msgbrd))=0){
setstring server.msgbrd,0;
}
if (playerchats && startswith(post:,#c)){
this.length=0;
this.l2=0;
tokenize #c;
setstring this.post,#a: ;
this.length+=strlen(#a)+2;
for (this.t=1;this.t<tokenscount;this.t++){
setstring this.post,#s(this.post) #t(this.t);
this.length+=strlen(#t(this.t));
}
this.startpage=strtofloat(#s(server.msgbrd));
this.pages=int(this.length/32+1)+this.startpage;
for (this.page=this.startpage;this.page<this.pages;thi s.page++){
setstring server.page#v(this.pages),#e(this.l2,32,#s(this.po st));
this.l2+=32;
}
setstring server.msgbrd,#v(strtofloat(#s(msgbrd))+this.pages )
}
if (playerchats && strequals(#c,read board)){
this.readpage=3;
say2 #s(server.page#v(this.readpage-2))
#b#s(server.page#v(this.readpage-1))
#b#s(server.page#v(this.readpage));
}
if (playerendsreading && this.readpage<strtofloat(#s(server.msgbrd))){
this.readpage+=3;
say2 #s(server.page#v(this.readpage-2))
#b#s(server.page#v(this.readpage-1))
#b#s(server.page#v(this.readpage));
}
And nobody raise hell over how its scripted...
