Re: Clarification
So then a quick question, this code here isn't functioning for anyone but the leader when multiple people are in the same map (in this case onlinestartlocal.nw) but if playertouchsme runs for everyone then why isn't it?
(Yes I know its bloated and messy but it works offline/(if leader online) )
[code]// NPC made by Hashi
//#CLIENTSIDE
if (playerenters) {
this.maxnumber=4;
this.number=0;
this.count=0;
}
if (playertouchsme) {
freezeplayer.15;
this.number=1;
this.count=1;
setani idle,;
sleep.1;
timeout=0.05;
}
//WOOD BACKGROUND
if (timeout&&this.count=1) {
freezeplayer.15;
showimg 550,dswoodsignvined.png,playerx-9,playery+2.5;
changeimgpart 550,0,0,380,208;
changeimgvis 550,2;
timeout=0.05;
}
//FIRST PAGE OF TEXT
if (timeout&&this.number=1) {
//hide previous images
hideimg 556;
hideimg 557;
hideimg 558;
hideimg 559;
hideimg 560;
//line 1
showtext 551,playerx-5,playery+5.5,Arial,Welcome to DreamScape!;
changeimgvis 551,3;
changeimgcolors 551,0,0,0,1;
changeimgzoom 551,1;
//line 2
showtext 552,playerx-5,playery+7,Arial,This is just a glimpse of what;
changeimgvis 552,3;
changeimgcolors 552,0,0,0,1;
changeimgzoom 552,.8;
//line 3
showtext 553,playerx-5,playery+8,Arial,you can expect from this server.;
changeimgvis 553,3;
changeimgcolors 553,0,0,0,1;
changeimgzoom 553,.8;
//line 4
showtext 554,playerx-5,playery+9,Arial,Use the arrow keys left and right;
changeimgvis 554,3;
changeimgcolors 554,0,0,0,1;
changeimgzoom 554,.8;
//line 5
showtext 555,playerx-5,playery+10,Arial,to control which page of text you>;
changeimgvis 555,3;
changeimgcolors 555,0,0,0,1;
changeimgzoom 555,.8;
timeout=0.05;
}
//SECOND PAGE OF TEXT
if (timeout&&this.number=2) {
//hide pervious images
hideimg 551;
hideimg 552;
hideimg 553;
hideimg 554;
hideimg 555;
hideimg 561;
hideimg 562;
hideimg 563;
hideimg 564;
hideimg 565;
//line 1
showimg 556,@Arial@@are looking at :),playerx-5,playery+5.5;
changeimgvis 556,3;
changeimgcolors 556,0,0,0,1;
changeimgzoom 556,.8;
//line 2
showimg 557,@Arial@@We the staff hope you enjoy your,playerx-5,playery+6.5;
changeimgvis 557,3;
changeimgcolors 557,0,0,0,1;
changeimgzoom 557,.8;
//line 3
showimg 558,@Arial@@stay here at our server!,playerx-5,playery+7.5;
changeimgvis 558,3;
changeimgcolors 558,0,0,0,1;
changeimgzoom 558,.8;
//line 4
showimg 559,@Arial@@,playerx-5,playery+8.5;
changeimgvis 559,3;
changeimgcolors 559,0,0,0,1;
changeimgzoom 559,.8;
//line 5
showimg 560,@Arial@@,playerx-5,playery+9.5;
changeimgvis 560,3;
changeimgcolors 560,0,0,0,1;
changeimgzoom 560,.8;
timeout=0.05;
}
//THIRD PAGE OF TEXT
if (timeout&&this.number=3) {
//hide pervious images
hideimg 556;
hideimg 557;
hideimg 558;
hideimg 559;
hideimg 560;
hideimg 566;
//line 1
showimg 561,@Arial@@To contact us about staff positions,playerx-5,playery+5.5;
changeimgvis 561,3;
changeimgcolors 561,0,0,0,1;
changeimgzoom 561,.8;
//line 2
showimg 562,@Arial@@Please send an email to:,playerx-5,playery+6.5;
changeimgvis 562,3;
changeimgcolors 562,0,0,0,1;
changeimgzoom 562,.8;
//line 3
showimg 563,@Arial@@“[email protected]” with examples,playerx-5,playery+7.5;
changeimgvis 563,3;
changeimgcolors 563,0,0,0,1;
changeimgzoom 563,.8;
//line 4
showimg 564,@Arial@@stating which position you are after,playerx-5,playery+8.5;
changeimgvis 564,3;
changeimgcolors 564,0,0,0,1;
changeimgzoom 564,.8;
//line 5
showimg 565,@Arial@@To exit this push the “A” key,playerx-5,playery+9.5;
changeimgvis 565,3;
changeimgcolors 565,0,0,0,1;
changeimgzoom 565,.8;
}
//FOURTH PAGE OF TEXT
if (timeout&&this.number=4) {
//hide pervious images
hideimg 561;
hideimg 562;
hideimg 563;
hideimg 564;
hideimg 565;
//line 1
showimg 566,@Arial@@PS: Have fun with fluffy ^^,playerx-5,playery+9.5;
changeimgvis 566,3;
changeimgcolors 566,0,0,0,1;
changeimgzoom 566,.8;
}
//Hide all when closed
if (timeout&&this.count=0) {
hideimg 550;
hideimg 551;
hideimg 552;
hideimg 553;
hideimg 554;
hideimg 555;
hideimg 556;
hideimg 557;
hideimg 558;
hideimg 559;
hideimg 560;
hideimg 561;
hideimg 562;
hideimg 563;
hideimg 564;
hideimg 565;
hideimg 566;
timeout=0.05;
}
//stop variable from going too far
if (this.number==-1) {this.number=0;}
if (this.number==5) {this.number=4;}
//button pushes
if (keydown(1)&&this.count=1) {
this.number-=1;
timeout=0.15;
}
if (keydown(3)&&this.count=1) {
this.number+=1;
timeout=0.15;
}
if (keydown(6)) {
this.number=0;
this.count=0
timeout=0.05;
}[/code]