Index: Zone.lua =================================================================== --- Zone.lua (revision 3296) +++ Zone.lua (working copy) @@ -7,7 +7,11 @@ package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"); +require("scripts/globals/titles"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + ----------------------------------- -- onInitialize ----------------------------------- @@ -35,6 +39,8 @@ zone:registerRegion(20, 550, -2, 522, 557, 0, 529); -- map 11 west porter (white) zone:registerRegion(21,-556, -2,-489,-550, 0,-483); -- map 12 east porter (white) zone:registerRegion(22,-610, -2,-489,-603, 0,-483); -- map 12 west porter (blue) + zone:registerRegion(23,382, -1,-582,399, 1,-572); --mission 9 TOAU + end; ----------------------------------- @@ -122,6 +128,12 @@ [22] = function (x) player:startEvent(0x00D2); end, + [23] = function (x) + if(player:getCurrentMission(TOAU) == UNDERSEA_SCOUTING and player:getVar("TOAUM9") ==1)then + player:startEvent(0x0001); + end + end, + } end; @@ -148,4 +160,11 @@ function onEventFinish(player,csid,option) --printf("CSID: %u",csid); --printf("RESULT: %u",option); + if(csid ==0x0001)then + player:addKeyItem(ASTRAL_COMPASS); +player:messageSpecial(KEYITEM_OBTAINED,ASTRAL_COMPASS); +player:setVar("TOAUM9",0); +player:completeMission(TOAU,UNDERSEA_SCOUTING); +player:addMission(TOAU,ASTRAL_WAVES); +end end;