Quote:
Originally posted by ownerofbabylon
say for mining or fishing u just want the weapon to fire on a certain block of area. Thats what I mean
|
if you just wnat like fishing in the water then you use board..
if you want mining but like on a npc u made then use triggeraction or callnpc+testnpc..
here is a code for board[] on water =)
NPC Code:
this.x=int(playerx+1.5+(vecx(playerdir)*3));
this.y=int(playery+2+(vecy(playerdir)*3));
this.canfish=board[this.x+(64*this.y)];
if (this.canfish=322) { fish code here }
322 is the index of the water tile(the swimmable one)