Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-28-2001, 10:56 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
i dont thinkthat is right

first Let me saywhat the crap is this

if (timeout){
Check();
showimg 0,0,fish.gif,this.x,this.y;
timeout=1;
}
function Check(){
this.x=int(random(0,64));
this.y=int(random(0,64));
if (!tiles[this.x,this.y]=tile) Error... no ;

Check(); YOUR redoing the function within the function......
}


Ok i wil explain
ok have it so that it replaces the fish in a diffeent spot every couple seconds... right..
and lets not use functions..since.. it might confuse u.. no offense



if (timeout||created){ // does the stuff below when
// first created or when timer runs out
this.done=0;
while (!this.done=1){ // keeps doing the below until it finds a tile
//that is what ever the tile u are looking for is
this.x=int(random(0,64)); // gets a random number between 0&64
this.y=int(random(0,64));
if (tiles[this.x,this.y]=***){this.done=1;}
}

showimg 0,0,fish.gif,this.x,this.y; // shows fish at this.x and this.y
timeout=1;
} // ends statment



Where the ***'s are at put in the number tile for the water.. or what ever.. i dont know what it is

this should work i have not checked..
Hope that helps

Dragoon Vengance
Owner of Pangea Relics of Time
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.