Thread: Board Local?
View Single Post
  #11  
Old 08-02-2001, 01:39 AM
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
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.
Attached Thumbnails
Click image for larger version

Name:	graal.png
Views:	137
Size:	21.6 KB
ID:	2917  
__________________
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