View Single Post
  #3  
Old 01-25-2002, 08:29 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
here is a little bit faster script

NPC Code:

// NPC made by screen_name

if (created) {
this.x=0;
this.y=0;
timeout=.05; }

if (timeout) {
if (this.x<64) {
for (i=0; i<=3; i++) {
if (tiles[this.x+i,this.y]==9) {
putnpc treeimage,textfile,this.x-1+i,this.y; } }
for (i=0; i<=3; i++) {
if (tiles[this.x+i,this.y+1]==9) {
putnpc treeimage,textfile,this.x-1+i,this.y+1; } }
for (i=0; i<=3; i++) {
if (tiles[this.x+i,this.y+2]==9) {
putnpc treeimage,textfile,this.x-1+i,this.y+2; } }
for (i=0; i<=3; i++) {
if (tiles[this.x+i,this.y+3]==9) {
putnpc treeimage,textfile,this.x-1+i,this.y+3; } }
this.x+=4; } else if (this.x==64) {
this.y+=4;
this.x=0; }
timeout=.05; }

__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote