--????????????????? function s57_5_CanTakeOverWhenOnline(MapID, RoleID) return 52649974, 440, 1, 768 end aux.RegisterMapEvent("s57_5", 12, "s57_5_CanTakeOverWhenOnline") --???????????????? function s57_5_GetExporMapAndCoord(MapID, InstanceID, RoleID) return 1, 3424073512, 610+math.random(5), 23094, 669+math.random(5) end aux.RegisterMapEvent("s57_5", 13, "s57_5_GetExporMapAndCoord") --??????????????? function s57_5_1GetOnePerfectMap(MapID, InstanceID, RoleID) return 1 end aux.RegisterMapEvent("s57_5", 14, "s57_5_1GetOnePerfectMap") --????????????????????? function s57_5_CanEnter(MapID, InstanceID, RoleID) if role.GetRoleLevel(MapID, InstanceID, RoleID) >= 80 then return 1 else return 0 end end aux.RegisterMapEvent("s57_5", 15, "s57_5_CanEnter") --?????? function s57_5_OnEnterTrigger(MapID, InstanceID, RoleID, ObjID) if ObjID == 673 then --to s60 role.RoleGotoNewMap(MapID, InstanceID, RoleID, 3390518568, 1820, 200, 1300) elseif ObjID == 672 then --to s57_6 role.RoleGotoNewMap(MapID, InstanceID, RoleID, 52649206, 211, 1, 476) else S57_TryTeleportRole(MapID, InstanceID, RoleID) end end aux.RegisterMapEvent("s57_5",6,"s57_5_OnEnterTrigger") function s57_5_PlayerEnter(MapID, InstanceID, RoleID) if s57_ApplyCrystalBuff ~= nil then s57_ApplyCrystalBuff(MapID, InstanceID, RoleID) end S57_GrantPortalGrace(RoleID) S57_StartPortalTimer(MapID, InstanceID) end aux.RegisterMapEvent("s57_5", 2, "s57_5_PlayerEnter") function s57_5_OnInit(MapID, InstanceID, CreatureID, CreatureTypeID) S57_StartPortalTimer(MapID, InstanceID) end aux.RegisterMapEvent("s57_5", 0, "s57_5_OnInit")