--����ڻ�е��ߺ����� function s57_9_CanTakeOverWhenOnline(MapID, RoleID) return 52646902, 180, 5, 40 end aux.RegisterMapEvent("s57_9", 12, "s57_9_CanTakeOverWhenOnline") --�ҵ���ͼ�ij��ں����� function s57_9_GetExporMapAndCoord(MapID, InstanceID, RoleID) return 1, 3424073512, 610+math.random(5), 23094, 669+math.random(5) end aux.RegisterMapEvent("s57_9", 13, "s57_9_GetExporMapAndCoord") --�ҵ�����ʵĸ���ʵ�� function s57_9GetOnePerfectMap(MapID, InstanceID, RoleID) return 1 end aux.RegisterMapEvent("s57_9", 14, "s57_9GetOnePerfectMap") --�������Ƿ��ܹ��������� function s57_9_CanEnter(MapID, InstanceID, RoleID) if role.GetRoleLevel(MapID, InstanceID, RoleID) >= 80 then return 1 else return 0 end end aux.RegisterMapEvent("s57_9", 15, "s57_9_CanEnter") --������ function s57_9_OnEnterTrigger(MapID, InstanceID, RoleID, ObjID) if ObjID == 1165 then --to s57_2 role.RoleGotoNewMap(MapID, InstanceID, RoleID, 52648438, 248, 200, 252) elseif ObjID == 1168 then --to s57_2 role.RoleGotoNewMap(MapID, InstanceID, RoleID, 52648438, 248, 200, 252) elseif ObjID == 1171 then --to s57_2 role.RoleGotoNewMap(MapID, InstanceID, RoleID, 52648438, 248, 200, 252) elseif ObjID == 1174 then --to s57_2 role.RoleGotoNewMap(MapID, InstanceID, RoleID, 52648438, 248, 200, 252) end end aux.RegisterMapEvent("s57_9",6,"s57_9_OnEnterTrigger") function c5610070_On_Talk(MapID, InstanceID, TargetID, TargetTypeID, RoleID, TalkIndex) if TalkIndex == -1 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 20, 444300) --��������һ�� msg.AddMsgEvent(MsgID, 24, TargetID) msg.AddMsgEvent(MsgID, 21, 4) msg.AddMsgEvent(MsgID, 1, 100001) --��ȷ�� msg.AddMsgEvent(MsgID, 21, 5) msg.AddMsgEvent(MsgID, 1, 100002) --��ȡ���� msg.DispatchRoleMsgEvent(RoleID, MsgID) elseif TalkIndex == 4 then role.RoleGotoNewMap(MapID, InstanceID, RoleID, 52646902, 180, 5, 40) end end aux.RegisterCreatureEvent(5610070, 7, "c5610070_On_Talk")