View Single Post
  #2  
Old 02-27-2012, 11:08 AM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

MovePCInstance

Here is the zoner in Barindu that ports people into Vxed and Tipt
Code:
sub EVENT_SPAWN {
  	$x = $npc->GetX();
   	$y = $npc->GetY();
	quest::set_proximity($x - 25, $x + 25, $y - 25, $y + 25);
}

sub EVENT_ENTER {
	$InInstanceTipt = quest::GetInstanceID("tipt",0);
	$InInstanceVxed = quest::GetInstanceID("vxed",0);
	if($InInstanceTipt > 0){
		quest::MovePCInstance(289, $InInstanceTipt, -448, -2374, 12);
	}
	elsif($InInstanceVxed > 0){
	    	quest::MovePCInstance(290, $InInstanceVxed, -427, -3552, 14);
	}	
	else {
		$client->Message(13, "You are not a part of an instance!");
	}
}
Reply With Quote