Quote:
Originally Posted by PrinceOfKenshin
but i have more than one x,y for the level
|
Then add the level more than once ...
PHP Code:
function warpToHosptial()
{
this.locations = {
{ "level1.nw", 10, 12 },
{ "level1.nw", 20, 56 },
{ "level1.nw", 30, 19 },
{ "level1.nw", 40, 23 },
{ "level1.nw", 50, 15 }
};
temp.ran = random( 0, this.locations.size() );
temp.coords = this.locations[temp.ran];
player.setlevel2( temp.coords[0], temp.coords[1], temp.coords[2] );
}