View Single Post
  #40  
Old 01-06-2002, 06:06 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
umm

why dont you try this:

NPC Code:

if (playerenters||created) {timeout = .1;
}

if (timeout) {
this.movex=random(-1,1.1);
this.movey=random(-1,1.1);
if (this.movex>=0) {this.dir=3;
}
if (this.movex<0) {this.dir=1;
}
if (this.dir=1) {setimg <fishleft>;
}
if (this.dir=3) {setimg <fishright>;
}
if (onwater(x+this.movex,y+this.movey)) {
move this.movex,this.movey,1,4;
sleep 1;
}
timeout = .1;
}



that will make your fish wonder around aimlessly on the water.
not a whole lot to it. this thread didnt need to be 3 pages long.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote