Thread: I need Help
View Single Post
  #2  
Old 09-16-2001, 02:09 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Use the Board command

board[x+(y*16)]

So, if you want to check for a deep water tile:
NPC Code:

this.testx=int(playerx+1.5*2);
this.testy=int(playery+2*2);
if (board[this.testx+(this.testy*16)]==322) {
dostuff;
}

__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote