diff --git a/include/maps.hrl b/include/maps.hrl index 7c7531f..1e80ff8 100644 --- a/include/maps.hrl +++ b/include/maps.hrl @@ -172,6 +172,14 @@ %~ {1060302, [{type, mission}, {file, "data/missions/phantom-ruins.a.quest.nbl"}, {start, [0, 8002, 0]}]}, %~ {1060303, [{type, mission}, {file, "data/missions/phantom-ruins.s.quest.nbl"}, {start, [0, 8002, 0]}]}, + % MAG' + + {1072100, [{type, mission}, {file, "data/missions/mag-prime.c.quest.nbl"}, {start, [1, 5000, 0]}]}, + {1072101, [{type, mission}, {file, "data/missions/mag-prime.b.quest.nbl"}, {start, [1, 5000, 0]}]}, + {1072102, [{type, mission}, {file, "data/missions/mag-prime.a.quest.nbl"}, {start, [1, 5000, 0]}]}, + {1072103, [{type, mission}, {file, "data/missions/mag-prime.s.quest.nbl"}, {start, [1, 5000, 0]}]}, + {1072104, [{type, mission}, {file, "data/missions/mag-prime.s2.quest.nbl"}, {start, [1, 5000, 0]}]}, + % Planetary lobbies {1100000, [{type, lobby}, {file, "data/lobby/colony.quest.nbl"}]}, @@ -415,6 +423,24 @@ %~ {[1060303, 0], [{file, "data/missions/phantom-ruins.s-0.zone.nbl"}]}, %~ {[1060303, 1], [{file, "data/missions/phantom-ruins.s-1.zone.nbl"}]}, + % MAG' + + {[1072100, 1], [{file, "data/missions/mag-prime.c.zone-1.nbl"}]}, + {[1072100, 2], [{file, "data/missions/mag-prime.c.zone-2.nbl"}]}, + {[1072100, 3], [{file, "data/missions/mag-prime.c.zone-3.nbl"}]}, + {[1072101, 1], [{file, "data/missions/mag-prime.b.zone-1.nbl"}]}, + {[1072101, 2], [{file, "data/missions/mag-prime.b.zone-2.nbl"}]}, + %~ {[1072101, 3], [{file, "data/missions/mag-prime.b.zone-3.nbl"}]}, + {[1072102, 1], [{file, "data/missions/mag-prime.a.zone-1.nbl"}]}, + {[1072102, 2], [{file, "data/missions/mag-prime.a.zone-2.nbl"}]}, + {[1072102, 3], [{file, "data/missions/mag-prime.a.zone-3.nbl"}]}, + {[1072103, 1], [{file, "data/missions/mag-prime.s.zone-1.nbl"}]}, + {[1072103, 2], [{file, "data/missions/mag-prime.s.zone-2.nbl"}]}, + {[1072103, 3], [{file, "data/missions/mag-prime.s.zone-3.nbl"}]}, + {[1072104, 1], [{file, "data/missions/mag-prime.s2.zone-1.nbl"}]}, + {[1072104, 2], [{file, "data/missions/mag-prime.s2.zone-2.nbl"}]}, + {[1072104, 3], [{file, "data/missions/mag-prime.s2.zone-3.nbl"}]}, + % Colony {[1100000, 0], [{file, "data/lobby/colony.zone-0.nbl"}]}, diff --git a/src/psu_missions.erl b/src/psu_missions.erl index cf642e2..0cc85aa 100644 --- a/src/psu_missions.erl +++ b/src/psu_missions.erl @@ -28,6 +28,8 @@ start(InstanceID, QuestID, _SetID) -> MapList = proplists:get_value(QuestID, ?MISSIONS), map_init(InstanceID, MapList, 0, 0, 1024). +map_init(_InstanceID, undefined, _BlockID, _ObjectID, _TargetID) -> + ignore; %% @todo Temporary clause until everything works fine. map_init(_InstanceID, [], _BlockID, _ObjectID, _TargetID) -> ok; map_init(InstanceID, [Map|Tail], BlockID, ObjectID, TargetID) ->