
05-29-2007, 12:50 AM
|
|
That guy with a beard
|
 |
Join Date: May 2004
Location: Ontario, Canada
Posts: 819
|
|
Quote:
Originally Posted by cbkbud
Try something like this ... I didn't really understand what you were doing in your code.
PHP Code:
function warpToHosptial()
{
this.locations = {
{ "level1.nw", x, y },
{ "level2.nw", x, y },
{ "level3.nw", x, y }
};
temp.ran = random( 0, this.locations.size() );
temp.coords = this.locations[temp.ran];
player.setlevel2( temp.coords[0], temp.coords[1], temp.coords[2] );
}
|
ok you are just putting the levels and x,y's in one flag so that it's easier to call them randomly? |
__________________
Quote:
|
Game Master (Server): Greetings PrinceOfKenshin, there are new posts on the forums that demand your urgent attention! God speed, the fate of the world is in your hands. If you fail, middle earth will forever be in the darkness and your children will be enslaved by McKain.
|
|
|
|
|