Index: Aht_Urhgan_Whitegate/npcs/Naja_Salaheem.lua =================================================================== --- Aht_Urhgan_Whitegate/npcs/Naja_Salaheem.lua (revision 3296) +++ Aht_Urhgan_Whitegate/npcs/Naja_Salaheem.lua (working copy) @@ -1,45 +1,61 @@ ------------------------------------ --- Area: Aht Urhgan Whitegate --- NPC: Naja Salaheem --- Type: Standard NPC --- @zone: 50 --- @pos: 22.700 -8.804 -45.591 --- --- Auto-Script: Requires Verification (Verified by Brawndo) ------------------------------------ -package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ------------------------------------ - ------------------------------------ --- onTrade Action ------------------------------------ - -function onTrade(player,npc,trade) -end; - ------------------------------------ --- onTrigger Action ------------------------------------ - -function onTrigger(player,npc) - player:startEvent(0x13c3); -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); -end; - +----------------------------------- +-- Area: Aht Urhgan Whitegate +-- NPC: Naja Salaheem +-- Type: Standard NPC +-- @zone: 50 +-- @pos: 22.700 -8.804 -45.591 +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; +require("scripts/globals/missions"); +require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); +require("scripts/globals/titles"); +require("scripts/globals/keyitems"); + +----------------------------------- + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +if(player:getCurrentMission(TOAU) == IMMORTAL_SENTRIES)then + if(player:getVar("TOAUM2") == 1) then + player:startEvent(0x0BBA,0,0,0,0,0,0,0,0,0); + end +else + player:startEvent(0x13C3); +end +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 == 0x0BBA)then +player:setVar("TOAUM2",0); +player:completeMission(TOAU,IMMORTAL_SENTRIES); +player:addMission(TOAU,PRESIDENT_SALAHEEM); +end +end; + Index: Aht_Urhgan_Whitegate/Zone.lua =================================================================== --- Aht_Urhgan_Whitegate/Zone.lua (revision 3296) +++ Aht_Urhgan_Whitegate/Zone.lua (working copy) @@ -7,6 +7,9 @@ package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); +require("scripts/globals/titles"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); ----------------------------------- -- onInitialize @@ -15,6 +18,8 @@ function onInitialize(zone) zone:registerRegion(1,57,-1,-70,62,1,-65); -- Sets Mark for "Got It All" Quest cutscene. zone:registerRegion(2,-96,-7,121,-64,-5,137); -- Sets Mark for "Vanishing Act" Quest cutscene. + + zone:registerRegion(3,14,-7,-65,37,-2,-41); end; ----------------------------------- @@ -58,6 +63,11 @@ player:startEvent(0x002c); end end, + [3] = function (x) -- AH mission + if(player:getCurrentMission(TOAU)== LAND_OF_SACRED_SERPENTS) then player:startEvent(0x0BB8,0,0,0,0,0,0,0,0,0); + + end + end, } end; @@ -110,5 +120,10 @@ elseif(csid == 0x020e)then player:setVar("gotitallCS",6); player:setPos(60,0,-71,38); - end + elseif(csid == 0x0BB8) then + player:completeMission(TOAU,LAND_OF_SACRED_SERPENTS); + player:addMission(TOAU,IMMORTAL_SENTRIES); + player:addKeyItem(SUPPLIES_PACKAGE); + player:messageSpecial(KEYITEM_OBTAINED,SUPPLIES_PACKAGE); + end end; Index: Arrapago_Reef/npcs/Meyaada.lua =================================================================== --- Arrapago_Reef/npcs/Meyaada.lua (revision 3296) +++ Arrapago_Reef/npcs/Meyaada.lua (working copy) @@ -1,6 +1,6 @@ ----------------------------------- -- Area: Arrapago Reef --- NPC: meyaada +-- NPC: meyaada subligar blue ----------------------------------- package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil; ----------------------------------- @@ -21,18 +21,23 @@ ----------------------------------- function onTrigger(player,npc) - local IPpoint=player:getPoint(AHTURHGAN ); + local IPpoint=player:getPoint(AHTURHGAN ); local assault=player:getCurrentMission(ASSAULT); --print(IPpoint); --print(assault); - - if(assault>40 and assault<51 and player:hasKeyItem(ASSAULT_ARMBAND)==false)then + + +if(player:hasKeyItem(SUPPLIES_PACKAGE))then +player:startEvent(0x0005); +elseif(player:getVar("TOAUM2") ==1)then +player:startEvent(0x0006); +elseif(player:getCurrentMission(TOAU) > IMMORTAL_SENTRIES)then +player:startEvent(0x0007); +elseif(assault>40 and assault<51 and player:hasKeyItem(ASSAULT_ARMBAND)==false)then player:startEvent(0x00DF,50,IPpoint); - - else - player:startEvent(0x0004); --- player:delKeyItem(ASSAULT_ARMBAND); - end +else +player:startEvent(0x0004); +end end; ----------------------------------- @@ -56,6 +61,11 @@ player:delPoint(AHTURHGAN,50); player:addKeyItem(ASSAULT_ARMBAND); player:messageSpecial(KEYITEM_OBTAINED,ASSAULT_ARMBAND); + elseif(csid == 0x0005 and option == 1)then + player:delKeyItem(SUPPLIES_PACKAGE); + player:setVar("TOAUM2",1); + elseif(csid == 0x0006)then + player:setVar("TOAUM2",1); end end; \ No newline at end of file Index: Arrapago_Reef/npcs/Runic_Portal.lua =================================================================== --- Arrapago_Reef/npcs/Runic_Portal.lua (revision 3296) +++ Arrapago_Reef/npcs/Runic_Portal.lua (working copy) @@ -9,7 +9,10 @@ require("scripts/globals/besieged"); require("scripts/globals/teleports"); +require("scripts/globals/missions"); require("scripts/zones/Arrapago_Reef/TextIDs"); +require("scripts/globals/titles"); +require("scripts/globals/keyitems"); ----------------------------------- -- onTrade Action @@ -23,15 +26,22 @@ ----------------------------------- function onTrigger(player,npc) - + if(player:getCurrentMission(TOAU)== IMMORTAL_SENTRIES and player:getVar("TOAUM2") ==1)then + player:startEvent(0x006F); + elseif(player:getCurrentMission(TOAU) > IMMORTAL_SENTRIES)then + if(hasRunicPortal(player,5) == 1) then player:startEvent(0x006d); else player:startEvent(0x006f); end +else +player:messageSpecial(RESPONSE); +end +end; -end; + ----------------------------------- -- onEventUpdate ----------------------------------- Index: Arrapago_Reef/TextIDs.lua =================================================================== --- Arrapago_Reef/TextIDs.lua (revision 3296) +++ Arrapago_Reef/TextIDs.lua (working copy) @@ -1,11 +1,11 @@ --- Variable TextID Description text - --- General Texts -ITEM_CANNOT_BE_OBTAINED = 6375; -- You cannot obtain the item come back again after sorting your inventory - ITEM_OBTAINED = 6378; -- Obtained: - GIL_OBTAINED = 6379; -- Obtained gil - KEYITEM_OBTAINED = 6381; -- Obtained key item: - FISHING_MESSAGE_OFFSET = 6994; -- You can't fish here - --- Other Texts -NOTHING_HAPPENS = 7266; -- Nothing happens... \ No newline at end of file +-- Variable TextID Description text + +-- General Texts +ITEM_CANNOT_BE_OBTAINED = 6375; -- You cannot obtain the item come back again after sorting your inventory + ITEM_OBTAINED = 6378; -- Obtained: + GIL_OBTAINED = 6379; -- Obtained gil + KEYITEM_OBTAINED = 6381; -- Obtained key item: + +-- Other Texts +NOTHING_HAPPENS = 7266; -- Nothing happens... +RESPONSE = 7276; --no response Index: Bhaflau_Thickets/npcs/Daswil.lua =================================================================== --- Bhaflau_Thickets/npcs/Daswil.lua (revision 3296) +++ Bhaflau_Thickets/npcs/Daswil.lua (working copy) @@ -1,45 +1,63 @@ ------------------------------------ --- Area: Bhaflau Thickets --- NPC: Daswil --- Type: Assault --- @zone: 52 --- @pos: -208.720 -12.889 -779.713 --- --- Auto-Script: Requires Verification (Verified by Brawndo) ------------------------------------ -package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil; ------------------------------------ - ------------------------------------ --- onTrade Action ------------------------------------ - -function onTrade(player,npc,trade) -end; - ------------------------------------ --- onTrigger Action ------------------------------------ - -function onTrigger(player,npc) - player:startEvent(0x0004); -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); -end; - +----------------------------------- +-- Area: Bhaflau Thickets +-- NPC: Daswil +-- Type: Assault +-- @zone: 52 +-- @pos: -208.720 -12.889 -779.713 +-- +package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil; +require("scripts/globals/missions"); +require("scripts/zones/Bhaflau_Thickets/TextIDs"); +require("scripts/globals/titles"); +require("scripts/globals/keyitems"); + +----------------------------------- + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + +if(player:hasKeyItem(SUPPLIES_PACKAGE))then +player:startEvent(0x0005); +elseif(player:getVar("TOAUM2") ==1)then +player:startEvent(0x0006); +elseif(player:getCurrentMission(TOAU) > IMMORTAL_SENTRIES)then +player:startEvent(0x0007); +else +player:startEvent(0x0004); +end +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 == 0x0005 and option == 1)then +player:delKeyItem(SUPPLIES_PACKAGE); +player:setVar("TOAUM2",1); +elseif(csid == 0x0006)then +player:setVar("TOAUM2",1); +end +end; + Index: Bhaflau_Thickets/npcs/Runic_Portal.lua =================================================================== --- Bhaflau_Thickets/npcs/Runic_Portal.lua (revision 3296) +++ Bhaflau_Thickets/npcs/Runic_Portal.lua (working copy) @@ -9,6 +9,7 @@ require("scripts/globals/besieged"); require("scripts/globals/teleports"); +require("scripts/globals/missions"); require("scripts/zones/Bhaflau_Thickets/TextIDs"); ----------------------------------- @@ -23,13 +24,17 @@ ----------------------------------- function onTrigger(player,npc) - + if(player:getCurrentMission(TOAU)== IMMORTAL_SENTRIES and player:getVar("TOAUM2") ==1)then + player:startEvent(0x006F); + elseif(player:getCurrentMission(TOAU) > IMMORTAL_SENTRIES)then if(hasRunicPortal(player,3) == 1) then player:startEvent(0x006d); else player:startEvent(0x006f); end - +else +player:messageSpecial(RESPONSE); +end end; ----------------------------------- @@ -53,6 +58,7 @@ if(csid == 0x006f) then player:addNationTeleport(AHTURHGAN,8); end + toChamberOfPassage(player); end Index: Bhaflau_Thickets/TextIDs.lua =================================================================== --- Bhaflau_Thickets/TextIDs.lua (revision 3296) +++ Bhaflau_Thickets/TextIDs.lua (working copy) @@ -1,11 +1,11 @@ --- Variable TextID Description text - --- General Texts -ITEM_CANNOT_BE_OBTAINED = 6375; -- You cannot obtain the item come back again after sorting your inventory - ITEM_OBTAINED = 6378; -- Obtained: - GIL_OBTAINED = 6379; -- Obtained gil - KEYITEM_OBTAINED = 6381; -- Obtained key item: - FISHING_MESSAGE_OFFSET = 6994; -- You can't fish here - --- Other Texts -NOTHING_HAPPENS = 7266; -- Nothing happens... \ No newline at end of file +-- Variable TextID Description text + +-- General Texts +ITEM_CANNOT_BE_OBTAINED = 6375; -- You cannot obtain the item come back again after sorting your inventory + ITEM_OBTAINED = 6378; -- Obtained: + GIL_OBTAINED = 6379; -- Obtained gil + KEYITEM_OBTAINED = 6381; -- Obtained key item: + +-- Other Texts +NOTHING_HAPPENS = 7266; -- Nothing happens... +RESPONSE = 7276; --no response Index: Caedarva_Mire/npcs/Nahshib.lua =================================================================== --- Caedarva_Mire/npcs/Nahshib.lua (revision 3296) +++ Caedarva_Mire/npcs/Nahshib.lua (working copy) @@ -1,45 +1,59 @@ ------------------------------------ --- Area: Caedarva Mire --- NPC: Nahshib --- Type: Assault --- @zone: 79 --- @pos: -274.334 -9.287 -64.255 --- --- Auto-Script: Requires Verification (Verified by Brawndo) ------------------------------------ -package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; ------------------------------------ - ------------------------------------ --- onTrade Action ------------------------------------ - -function onTrade(player,npc,trade) -end; - ------------------------------------ --- onTrigger Action ------------------------------------ - -function onTrigger(player,npc) - player:startEvent(0x0094); -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); -end; - +----------------------------------- +-- Area: Caedarva Mire +-- NPC: Nahshib +-- Type: Assault +-- @zone: 79 +-- @pos: -274.334 -9.287 -64.255 +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; +----------------------------------- + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +if(player:hasKeyItem(SUPPLIES_PACKAGE))then +player:startEvent(0x0005); +elseif(player:getVar("TOAUM2") ==1)then +player:startEvent(0x0006); +elseif(player:getCurrentMission(TOAU) > IMMORTAL_SENTRIES)then +player:startEvent(0x0007); +else +player:startEvent(0x0004); +end +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 == 0x0005 and option == 1)then +player:delKeyItem(SUPPLIES_PACKAGE); +player:setVar("TOAUM2",1); +elseif(csid == 0x0006)then +player:setVar("TOAUM2",1); +end +end; + Index: Caedarva_Mire/npcs/Nareema.lua =================================================================== --- Caedarva_Mire/npcs/Nareema.lua (revision 3296) +++ Caedarva_Mire/npcs/Nareema.lua (working copy) @@ -1,45 +1,66 @@ ------------------------------------ --- Area: Caedarva Mire --- NPC: Nareema --- Type: Assault --- @zone: 79 --- @pos: 518.387 -24.707 -467.297 --- --- Auto-Script: Requires Verification (Verified by Brawndo) ------------------------------------ -package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; ------------------------------------ - ------------------------------------ --- onTrade Action ------------------------------------ - -function onTrade(player,npc,trade) -end; - ------------------------------------ --- onTrigger Action ------------------------------------ - -function onTrigger(player,npc) - player:startEvent(0x0095); -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); -end; - +----------------------------------- +-- Area: Caedarva Mire +-- NPC: Nareema +-- Type: Assault +-- @zone: 79 +-- @pos: 518.387 -24.707 -467.297 +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; +require("scripts/globals/missions"); +require("scripts/zones/Caedarva_Mire/TextIDs"); +require("scripts/globals/titles"); +require("scripts/globals/keyitems"); + +----------------------------------- + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + +if(player:hasKeyItem(SUPPLIES_PACKAGE))then +player:startEvent(0x0005,1); +elseif(player:getVar("TOAUM2") ==1)then +player:startEvent(0x0006,1); +elseif(player:getCurrentMission(TOAU) > IMMORTAL_SENTRIES)then +player:startEvent(0x0007,1); +else +player:startEvent(0x0004,1); +end +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 == 0x0005 and option == 1)then +player:delKeyItem(SUPPLIES_PACKAGE); +player:setVar("TOAUM2",1); +elseif(csid == 0x0006)then +player:setVar("TOAUM2",1); +end +end; + Index: Caedarva_Mire/npcs/Runic_Portal.lua =================================================================== --- Caedarva_Mire/npcs/Runic_Portal.lua (revision 3296) +++ Caedarva_Mire/npcs/Runic_Portal.lua (working copy) @@ -24,7 +24,14 @@ ----------------------------------- function onTrigger(player,npc) - + + +if(npc:getID() == 17101261 and player:getCurrentMission(TOAU)== IMMORTAL_SENTRIES and player:getVar("TOAUM2") ==1)then +player:startEvent(0x007C); +elseif(npc:getID() == 17101264 and player:getCurrentMission(TOAU)== IMMORTAL_SENTRIES and player:getVar("TOAUM2") ==1)then +player:startEvent(0x007D); +elseif(player:getCurrentMission(TOAU) > IMMORTAL_SENTRIES) then + if(npc:getID() == 17101261) then -- Azouph if(hasRunicPortal(player,1) == 1) then player:startEvent(0x0083); @@ -38,9 +45,12 @@ player:startEvent(0x007d); end end - -end; +else +player:messageSpecial(RESPONSE); +end +end; + ----------------------------------- -- onEventUpdate ----------------------------------- Index: Mount_Zhayolm/npcs/Bapokk.lua =================================================================== --- Mount_Zhayolm/npcs/Bapokk.lua (revision 3296) +++ Mount_Zhayolm/npcs/Bapokk.lua (working copy) @@ -1,56 +1,59 @@ ----------------------------------- --- Area: Mount Zhayolm --- NPC: Bapokk --- Handles access to Alzadaal Ruins --- @pos -20 -6 276 61 ------------------------------------ -package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil; ------------------------------------ - -require("scripts/zones/Mount_Zhayolm/TextIDs"); - ------------------------------------ --- onTrade Action ------------------------------------ - -function onTrade(player,npc,trade) - if(trade:getItemCount() == 1 and trade:hasItemQty(2185,1)) then -- Silver - player:tradeComplete(); - player:setPos(-20,-6,0,192); -- using the pos method until the problem below is fixed - -- player:startEvent(163); -- << this CS goes black at the end, never fades in - return 1; - end -end; - ------------------------------------ --- onTrigger Action ------------------------------------ - -function onTrigger(player,npc) - - -- Ruins -> Zhayolm - if(player:getZPos() > -280) then - player:startEvent(164); - -- Zhayolm -> Ruins - else - player:startEvent(162); - end -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); -end; \ No newline at end of file + -- Area: Mount Zhayolm + -- NPC: Bapokk + -- Handles access to Alzadaal Ruins + -- @pos -20 -6 276 61 + ----------------------------------- + package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil; + ----------------------------------- + + require("scripts/zones/Mount_Zhayolm/TextIDs"); + + ----------------------------------- + -- onTrade Action + ----------------------------------- + + function onTrade(player,npc,trade) + if(trade:getItemCount() == 1 and trade:hasItemQty(2185,1)) then -- Silver + player:tradeComplete(); + player:setPos(-20,-6,0.001); -- using the pos method until the problem below is fixed + -- player:startEvent(0x00A3,0,0,0,0,0,0,0,0); -- << this CS goes black at the end, never fades in + return 1; + end + end; + + ----------------------------------- + -- onTrigger Action + ----------------------------------- + + function onTrigger(player,npc) + + -- Ruins -> Zhayolm + if(player:getZPos() >= 280) then + player:startEvent(0x00A4); + -- Zhayolm -> Ruins + else + player:startEvent(0x00A3,2,2,2,2,2,2,2,2); + end + 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 == 0x00a3)then +player:startEvent(0x00a6); +end + end; \ No newline at end of file Index: Mount_Zhayolm/npcs/Runic_Portal.lua =================================================================== --- Mount_Zhayolm/npcs/Runic_Portal.lua (revision 3296) +++ Mount_Zhayolm/npcs/Runic_Portal.lua (working copy) @@ -23,13 +23,18 @@ ----------------------------------- function onTrigger(player,npc) - +if(player:getCurrentMission(TOAU)== IMMORTAL_SENTRIES and player:getVar("TOAUM2") ==1)then + player:startEvent(0x006f); +elseif(player:getCurrentMission(TOAU) > IMMORTAL_SENTRIES) then if(hasRunicPortal(player,4) == 1) then player:startEvent(0x006d); else player:startEvent(0x006f); end +else +player:messageSpecial(RESPONSE); +end end; Index: Mount_Zhayolm/TextIDs.lua =================================================================== --- Mount_Zhayolm/TextIDs.lua (revision 3296) +++ Mount_Zhayolm/TextIDs.lua (working copy) @@ -5,7 +5,6 @@ ITEM_OBTAINED = 6378; -- Obtained: GIL_OBTAINED = 6379; -- Obtained gil KEYITEM_OBTAINED = 6381; -- Obtained key item: - FISHING_MESSAGE_OFFSET = 6994; -- You can't fish here -- Mining MINING_IS_POSSIBLE_HERE = 7355; -- Mining is possible here if you have