here is a script i made . .im using it on unholy nation . it lets u browse thru blocks id
I altered it a bit here so it doesnt use the blocking blocks
ill also post a image of where its used
NPC Code:
// NPC made by LiquidIce - Flooded
if (playerenters) {dontblock;}
timereverywhere;
if (playertouchsme&&this.enabled=0) {
this.tile=strtofloat(#s(constructiontile));
disabledefmovement;
showblock();
setani idle,;
this.enabled=1;
timeout=.05;
}
if (timeout) {
if (keydown(1)) {
this.tile--;
this.tile=abs(this.tile);
}
if (keydown(3)) {
this.tile=this.tile+1%4095;
}
if (keydown(5)) {
this.enabled=0;
}
if (keydown(6)) {
set();
}
show();
if (this.enabled=1) { timeout=.1; }
else { hideblock(); enabledefmovement;}
}
function show() {
board[x+(64*(y-1))]=this.tile;
updateboard x,y-1,1,1;
showimg 100,@#v(this.tile),x-(strlen(#v(this.tile))/4),y-2.5;
}
if (playerchats&&this.enabled=1) {
tokenize #c;
if (tokenscount=1) {
this.check=strtofloat(#t(0));
if (this.check=<4095&&this.check>0) { this.tile=this.check; }
}
}
function set() {
setstring constructiontile,#v(this.tile);
setplayerprop #c,Tile Set to #v(this.tile);
this.enabled=0;
}
function showblock() {
}
function hideblock() {
board[x+(64*(y-1))]=2358;
updateboard x,y-1,1,1;
hideimg 100;
}
on the image. the 'orange' old looking pins is the npc.