Thread: Bridge
View Single Post
  #5  
Old 01-15-2003, 03:29 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Here you are:

NPC Code:

// Script made by Com013
// fixed by: Trevor

if (created) {
setarray btiles,14*9;

for (i=0; i<9; i++)
for (j=0; j<14; j++) {
if (i<2 || i>=7)
btiles[i*14+j] = 22;
else
btiles[i*14+j] = 0;
}

setshape2 14,9,btiles;
setarray btiles,0;

dontblock;
}
//#CLIENTSIDE
if (playerenters || timeout) {
message #v(npcs[0].id) - #v(playerattachid) - #v(playerattached || false) - (#v(levelorgx) - #v(levelorgy));

if(playerdir==0||playerdir==2){
drawoverplayer;
}

if (playerattached) {
if (playerdir==1 && playerx<=x-0.5 ||
playerdir==3 && playerx>=x+11.5){
drawunderplayer;
detachplayer;
}
} else if (playery in |y+1,y+4|) {
if (playerdir==3 && playerx==x-2.5 ||
playerdir==1 && playerx==x+13.5){
attachplayertoobj 0,npcs[0].id;
}
}

timereverywhere;
timeout = 0.05;
}



I tried everything then I was like "OMG!, this is so simple."

You can see what I did
__________________
new account: Trevor
Reply With Quote