-----------------------------------
--
-- Zone: Kazham (250)
--
-----------------------------------

-----------------------------------
-- onInitialize
-----------------------------------

function onInitialize(zone)
end;

-----------------------------------
-- onZoneIn
-----------------------------------

function onZoneIn(player,prevZone)			
	cs = -1;		
	if ((player:getXPos() == 0) and (player:getYPos() == 0) and (player:getZPos() == 0)) then		
		if (prevZone == 226) then	
			cs = 0x2712;
		end	
		player:setPos(-4.000, -3.000, 14.000, 66);	
	end		
	return cs;		
end;			

-----------------------------------			
-- onTransportEvent			
-----------------------------------			

function onTransportEvent(player,transport)	
	player:startEvent(0x2710);
end;	

-----------------------------------	
-- onEventUpdate	
-----------------------------------	

function onEventUpdate(player,csid,option)	
	--printf("CSID: %u",csid);
	--printf("RESULT: %u",option);
end;	

-----------------------------------	
-- onEventFinish	
-----------------------------------	

function onEventFinish(player,csid,option)		
	--printf("CSID: %u",csid);	
	--printf("RESULT: %u",option);	
	if (csid == 0x2710) then	
		player:setPos(0,0,0,0,226);
	end	
end;		
