
#include serverapi.jss

Func MoveToArea(Player, Level, x, y)
{
	Var ID = GetPlayerEntity(Player);
	Var Pos = GetPos(ID);
	Pos[0] = x;
	Pos[1] = y;
	Pos[6] = Level;
	
	SetPos(ID, Pos);
}


Func goto_BrinStar1_2(Player)
{
	MoveToArea(Player, "BrinStar1", 3150, 255);
}

Func goto_BrinStar2_1(Player)
{
	MoveToArea(Player, "BrinStar2", 40, 280);
}

Func goto_BrinStar2_3(Player)
{
	MoveToArea(Player, "BrinStar2", 750, 2720);
}
Func goto_BrinStar3_2(Player)
{
	MoveToArea(Player, "BrinStar3", 40, 1216);
}
Func goto_BrinStar3_4(Player)
{
	Var ID = GetPlayerEntity(Player);
	Var Pos = GetPos(ID);
	Pos[0] = 40;
	// Pos[1] = 1252;
	Pos[6] = "BrinStar4";
	
	SetPos(ID, Pos);
}
Func goto_BrinStar4_3(Player)
{
	Var ID = GetPlayerEntity(Player);
	Var Pos = GetPos(ID);
	Pos[0] = 1560; // 1538
	// Pos[1] = 462;
	Pos[6] = "BrinStar3";
	
	SetPos(ID, Pos);
}
