Index: npcs/Halver.lua =================================================================== --- npcs/Halver.lua (revision 3296) +++ npcs/Halver.lua (working copy) @@ -39,7 +39,15 @@ local currentMission = player:getCurrentMission(pNation); local MissionStatus = player:getVar("MissionStatus"); - if(player:getQuestStatus(SANDORIA,LURE_OF_THE_WILDCAT_SAN_D_ORIA) == QUEST_ACCEPTED and player:getMaskBit(player:getVar("wildcatSandy_var"),17) == false) then + +if(player:getCurrentMission(TOAU) == CONFESSIONS_OF_ROYALTY and player:hasKeyItem(RAILLEFALS_LETTER))then +player:startEvent(0x0234); + +elseif(player:getCurrentMission(TOAU) == EASTERLY_WINDS and player:getVar("TOAUM6") == 0)then +player:startEvent(0x0235); + + + elseif(player:getQuestStatus(SANDORIA,LURE_OF_THE_WILDCAT_SAN_D_ORIA) == QUEST_ACCEPTED and player:getMaskBit(player:getVar("wildcatSandy_var"),17) == false) then player:startEvent(0x022e); -- Blackmail quest elseif(player:getQuestStatus(SANDORIA, BLACKMAIL) == QUEST_ACCEPTED and player:hasKeyItem(SUSPICIOUS_ENVELOPE)) then @@ -137,12 +145,16 @@ ----------------------------------- function onEventFinish(player,csid,option) ---printf("CSID: %u",csid); ---printf("RESULT: %u",option); +printf("CSID: %u",csid); +printf("RESULT: %u",option); if(csid == 0x01f5) then player:addMission(BASTOK,THE_EMISSARY_SANDORIA); player:setVar("MissionStatus",4); + elseif(csid == 0x0234 and option == 1) then + player:completeMission(TOAU,CONFESSIONS_OF_ROYALTY); + player:addMission(TOAU,EASTERLY_WINDS); + player:delKeyItem(RAILLEFALS_LETTER); elseif(csid == 0x01f7) then player:setVar("MissionStatus",9); elseif(csid == 0x01fc) then