Index: scripts/zones/Windurst_Woods/npcs/Nanaa_Mihgo.lua =================================================================== --- scripts/zones/Windurst_Woods/npcs/Nanaa_Mihgo.lua (revision 2015) +++ scripts/zones/Windurst_Woods/npcs/Nanaa_Mihgo.lua (working copy) @@ -1,10 +1,11 @@ ----------------------------------- -- Area: Windurst Walls -- NPC: Nanaa Mihgo --- Starts and Finishes Quest: Mihgo's Amigo (R), The Tenshodo Showdown (start) +-- Starts and Finishes Quest: Mihgo's Amigo (R), The Tenshodo Showdown (start), Rock Racketeer (start, listed as ROCK_RACKETTER in quests.lua) -- Involved In Quest: Crying Over Onions -- Involved in Mission 2-1 --- @pos 62 -4 240 241 +-- @zone 241 +-- @pos 62 -4 240 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- @@ -58,6 +59,8 @@ MihgosAmigo = player:getQuestStatus(WINDURST,MIHGO_S_AMIGO); theTenshodoShowdown = player:getQuestStatus(WINDURST,THE_TENSHODO_SHOWDOWN); theTenshodoShowdownCS = player:getVar("theTenshodoShowdownCS"); + RockRacketeer = player:getQuestStatus(WINDURST,ROCK_RACKETTER); + RRvar = player:getVar("rockracketeer_sold"); LvL = player:getMainLvl(); Job = player:getMainJob(); @@ -68,9 +71,24 @@ if(CryingOverOnionsVar == 1) then player:startEvent(0x0256); + -- Rock Racketeer (listed as ROCK_RACKETTER in quests.lua) + elseif(MihgosAmigo == QUEST_COMPLETED and RockRacketeer == QUEST_AVAILABLE and player:getFameLevel (WINDURST) >= 3) then + if(player:needToZone()) then + player:startEvent(0x0059); -- Mihgos Amigo complete text + else + player:startEvent(0x005D); -- quest start + end + elseif(RockRacketeer == QUEST_ACCEPTED and RRvar == 2) then + player:startEvent(0x005F); -- not sold reminder + elseif(RockRacketeer == QUEST_ACCEPTED and RRvar == 1) then + player:startEvent(0x0062); -- advance quest talk to Varun + elseif(RockRacketeer == QUEST_ACCEPTED) then + player:startEvent(0x005E); -- quest reminder + + -- Quest "Mihgo's Amigo" elseif(MihgosAmigo == QUEST_AVAILABLE) then - player:getQuestStatus(WINDURST,CRYING_OVER_ONIONS); + CryingOverOnions = player:getQuestStatus(WINDURST,CRYING_OVER_ONIONS); if(CryingOverOnions ~= QUEST_AVAILABLE) then player:startEvent(0x0051); -- Start Quest "Mihgo's Amigo" with quest "Crying Over Onions" Activated @@ -90,9 +108,13 @@ elseif(theTenshodoShowdownCS >= 2) then player:startEvent(0x01f2); -- During Quest "The Tenshodo Showdown" (after cs at tensho HQ) elseif(Job == 6 and LvL < 50 and theTenshodoShowdown == QUEST_COMPLETED) then - player:startEvent(0x01f0); -- Standard dialog after "The Tenshodo Showdown" + player:startEvent(0x01f7); -- Standard dialog after "The Tenshodo Showdown" + + + + -- Standard dialog else - player:startEvent(0x004c); -- Standard dialog + player:startEvent(0x004c); end end @@ -150,6 +172,17 @@ player:delKeyItem(LAPIS_CORAL); player:addKeyItem(HIDEOUT_KEY); player:messageSpecial(KEYITEM_OBTAINED,HIDEOUT_KEY); + + -- Rock Racketeer (listed as ROCK_RACKETTER in quests.lua) + + elseif (csid == 0x005D and option ~=1) then -- add quest, KI + player:addQuest(WINDURST,ROCK_RACKETTER); + player:addKeyItem(SHARP_GRAY_STONE); + player:messageSpecial(KEYITEM_OBTAINED,SHARP_GRAY_STONE); + + elseif (csid == 0x0062) then + player:setVar("rockracketeer_sold",3); -- Rock sold talk to Varun + end end; \ No newline at end of file