Index: scripts/globals/missions.lua =================================================================== --- scripts/globals/missions.lua (revision 1604) +++ scripts/globals/missions.lua (working copy) @@ -246,6 +246,65 @@ ETERNAL_MERCENARY = 47; ----------------------------------- +-- Wings of the Goddess Missions +----------------------------------- + +CAVERNOUS_MAWS = 0; +BACK_TO_THE_BEGINNING = 1; +CAIT_SITH = 2; +THE_QUEEN_OF_THE_DANCE = 3; +WHILE_THE_CAT_IS_AWAY = 4; +A_TIMESWEPT_BUTTERLY = 5; +PURPLE_THE_NEW_BLACK = 6; +IN_THE_NAME_OF_THE_FATHER = 7; +DANCERS_IN_DISTRESS = 8; +DAUGHTER_OF_A_KNIGHT = 9; +A_SPOONFUL_OF_SUGAR = 10; +AFFAIRS_OF_STATE = 11; +BORNE_BY_THE_WIND = 12; +A_NATION_ON_THE_BRINK = 13; +CROSSROADS_OF_TIME = 14; +SANDSWEPT_MEMORIES = 15; +NORTHLAND_EXPLOSURE = 16; +TRAITOR_IN_THE_MIDST = 17; +BETRAYAL_AT_BEAUCEDINE = 18; +ON_THIN_ICE = 19; +PROOF_OF_VALOR = 20; +A_SANGUINARY_PRELUDE = 21; +DUNGEONS_AND_DANCERS = 22; +DISTORTER_OF_TIME = 23; +THE_WILL_OF_THE_WORLD = 24; +FATE_IN_HAZE = 25; +THE_SCENT_OF_BATTLE = 26; +ANOTHER_WORLD = 27; +A_HAWK_IN_REPOSE = 28; +THE_BATTLE_OF_XARCABARD = 29; +PRELUDE_TO_A_STORM = 30; +STORMS_CRESCENDO = 31; +INTO_THE_BEASTS_MAW = 32; +THE_HUNTER_ENSNARED = 33; +FLIGHT_OF_THE_LION = 34; +FALL_OF_THE_HAWK = 35; +DARKNESS_DESCENDS = 36; +ADIEU_LILISETTE = 37; +BY_THE_FADING_LIGHT = 38; +EDGE_OF_EXISTENCE = 39; +HER_MEMORIES = 40; +FORGET_ME_NOT = 41; +PILLAR_OF_HOPE = 42; +GLIMMER_OF_LIFE = 43; +TIME_SLIPS_AWAY = 44; +WHEN_WILLS_COLLIDE = 45; +WHISPERS_OF_DAWN = 46; +A_DREAMY_INTERLUDE = 47; +CAIT_IN_THE_WOODS = 48; +FORM_IN_THE_ROAD = 49; +MAIDEN_OF_THE_DUSK = 50; +WHERE_IT_ALL_BEGAN = 51; +A_TOKEN_OF_TROTH = 52; +LEST_WE_FORGET = 53; + +----------------------------------- -- ----------------------------------- Index: scripts/zones/Batallia_Downs/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Batallia_Downs/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Batallia_Downs/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,62 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to Batallia_Downs_S +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getCurrentMission(WOTG) == CAVERNOUS_MAWS) then + player:startEvent(0x1f4,1); + else + if(player:getMaskBit("wotgMaws",3) == true) then + player:startEvent(0x38e); + end + end +end; + +----------------------------------- +-- onEventUpdate +----------------------------------- + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if (csid == 0x1F4) then + r = math.random(1,3); + player:addKeyItem(PURE_WHITE_FEATHER); + player:messageSpecial(KEYITEM_OBTAINED,PURE_WHITE_FEATHER); + player:completeMission(WOTG,CAVERNOUS_MAWS); + player:addMission(WOTG,BACK_TO_THE_BEGINNING); + -- Data from PXI, Pr. + if(r == 1) then + player:setMaskBit("wotgMaws",3,true); + player:setPos(-48, 0, 437, 52, 0x54); -- Batallia_Downs[S] maw + elseif (r == 2) then + player:setMaskBit("wotgMaws",0,true); + player:setPos(-190, -8, 363, 11, 0x5b); -- Rolanberry_Fields_[S] maw + elseif (r == 3) then + player:setMaskBit("wotgMaws",6,true); + player:setPos(372, 9, -228, 27, 0x62); -- Sauromugue_Champaign_[S] maw + end + elseif (csid == 0x038e) and (option == 1) then + player:setPos(-48, 0, 437, 52, 0x54); -- Batallia_Downs[S] maw + end +end; \ No newline at end of file Index: scripts/zones/Batallia_Downs_[S]/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Batallia_Downs_[S]/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Batallia_Downs_[S]/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,41 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to Batallia_Downs +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",3) == true) then + player:setMaskBit("wotgMaws",3,true); + player:startEvent(0x64); + else + player:startEvent(0x65); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if ((csid == 0x64) or (csid == 0x65)) and (option == 1) then + -- Data from PXI, Pr. + player:setPos(-49, 0, 435, 1, 0x69); -- Batallia_Downs Maw + end +end; \ No newline at end of file Index: scripts/zones/East_Ronfaure/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/East_Ronfaure/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/East_Ronfaure/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,37 @@ +----------------------------------- +-- Author: Kegsay +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw - OMNOMNOM +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",5) == true) then + player:startEvent(0x388); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if (csid == 0x388) and (option == 1) then + -- Data from PXI, Pr. + player:setPos(322, -59, 497, 64, 0x51); -- East_Ronfaure_[S] Maw + end +end; \ No newline at end of file Index: scripts/zones/East_Ronfaure_[S]/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/East_Ronfaure_[S]/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/East_Ronfaure_[S]/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,41 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to East_Ronfaure +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",5) == false) then + player:setMaskBit("wotgMaws",5,true); + player:startEvent(0x64); + else + player:startEvent(0x65); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if ((csid == 0x64) or (csid == 0x65)) and (option == 1) then + -- Data from PXI, Pr. + player:setPos(322, -59, 497, 64, 0x65); -- East_Ronfaure Maw + end +end; \ No newline at end of file Index: scripts/zones/Jugner_Forest/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Jugner_Forest/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Jugner_Forest/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,37 @@ +----------------------------------- +-- Author: Kegsay +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw - OMNOMNOM +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",4) == true) then + player:startEvent(0x389); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if (csid == 0x389) and (option == 1) then + -- setPos data is not checked against retail. Pr. + player:setPos(-115, -7, -519, 0, 0x52); -- Jugner_Forest_[S] Maw + end +end; \ No newline at end of file Index: scripts/zones/Jugner_Forest_[S]/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Jugner_Forest_[S]/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Jugner_Forest_[S]/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,41 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to Jugner_Forest +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",4) == false) then + player:setMaskBit("wotgMaws",4,true); + player:startEvent(0x65); + else + player:startEvent(0x66); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if ((csid == 0x65) or (csid == 0x66)) and (option == 1) then + -- setPos data is not checked against retail. Pr. + player:setPos(-115, -7, -519, 0, 0x68); -- Jugner_Forest Maw + end +end; \ No newline at end of file Index: scripts/zones/Meriphataud_Mountains/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Meriphataud_Mountains/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Meriphataud_Mountains/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,37 @@ +----------------------------------- +-- Author: Kegsay +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw - OMNOMNOM +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",7) == true) then + player:startEvent(0x389); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if (csid == 0x389) and (option == 1) then + -- setPos data is not checked against retail. Pr. + player:setPos(596, -32, 275, 93, 0x61); -- Meriphataud_Mountains_[S] Maw + end +end; \ No newline at end of file Index: scripts/zones/Meriphataud_Mountains_[S]/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Meriphataud_Mountains_[S]/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Meriphataud_Mountains_[S]/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,41 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to Meriphataud_Mountains +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",7) == false) then + player:setMaskBit("wotgMaws",7,true); + player:startEvent(0x66); + else + player:startEvent(0x67); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if ((csid == 0x66) or (csid == 0x67)) and (option == 1) then + -- setPos data is not checked against retail. Pr. + player:setPos(596, -32, 275, 93, 0x77); -- Meriphataud_Mountains Maw + end +end; \ No newline at end of file Index: scripts/zones/North_Gustaberg/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/North_Gustaberg/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/North_Gustaberg/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,37 @@ +----------------------------------- +-- Author: Kegsay +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw - OMNOMNOM +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",2) == true) then + player:startEvent(0x387); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if (csid == 0x387) and (option == 1) then + -- setPos data is not checked against retail. Pr. + player:setPos(472, 0, 478, 0, 0x58); -- North_Gustaberg_[S] Maw + end +end; \ No newline at end of file Index: scripts/zones/North_Gustaberg_[S]/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/North_Gustaberg_[S]/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/North_Gustaberg_[S]/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,41 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to North Gustaberg +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",2) == false) then + player:setMaskBit("wotgMaws",2,true); + player:startEvent(0x64); + else + player:startEvent(0x65); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if ((csid == 0x64) or (csid == 0x65)) and (option == 1) then + -- setPos data is not checked against retail. Pr. + player:setPos(472, 0, 478, 0, 0x6a); -- North_Gustaberg Maw + end +end; \ No newline at end of file Index: scripts/zones/Pashhow_Marshlands/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Pashhow_Marshlands/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Pashhow_Marshlands/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,37 @@ +----------------------------------- +-- Author: Kegsay +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw - OMNOMNOM +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",1) == true) then + player:startEvent(0x389); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if (csid == 0x389) and (option == 1) then + -- setPos data is not checked against retail. Pr. + player:setPos(418, 25, 25, 101, 0x5a); -- Pashhow_Marshlands_[S] Maw + end +end; \ No newline at end of file Index: scripts/zones/Pashhow_Marshlands_[S]/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Pashhow_Marshlands_[S]/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Pashhow_Marshlands_[S]/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,41 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to Pashhow_Marshlands +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",1) == false) then + player:setMaskBit("wotgMaws",1,true); + player:startEvent(0x64); + else + player:startEvent(0x65); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if ((csid == 0x64) or (csid == 0x65)) and (option == 1) then + -- setPos data is not checked against retail. Pr. + player:setPos(418, 25, 25, 101, 0x6d); -- Pashhow_Marshlands Maw + end +end; \ No newline at end of file Index: scripts/zones/Rolanberry_Fields/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Rolanberry_Fields/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Rolanberry_Fields/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,62 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to Rolanberry_Fields_S +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getCurrentMission(WOTG) == CAVERNOUS_MAWS) then + player:startEvent(0x1f4,1); + else + if(player:getMaskBit("wotgMaws",0) == true) then + player:startEvent(0x388); + end + end +end; + +----------------------------------- +-- onEventUpdate +----------------------------------- + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if (csid == 0x1F4) then + r = math.random(1,3); + player:addKeyItem(PURE_WHITE_FEATHER); + player:messageSpecial(KEYITEM_OBTAINED,PURE_WHITE_FEATHER); + player:completeMission(WOTG,CAVERNOUS_MAWS); + player:addMission(WOTG,BACK_TO_THE_BEGINNING); + -- Data from PXI, Pr. + if(r == 1) then + player:setMaskBit("wotgMaws",3,true); + player:setPos(-48, 0, 437, 52, 0x54); -- Batallia_Downs[S] maw + elseif (r == 2) then + player:setMaskBit("wotgMaws",0,true); + player:setPos(-190, -8, 363, 11, 0x5b); -- Rolanberry_Fields_[S] maw + elseif (r == 3) then + player:setMaskBit("wotgMaws",6,true); + player:setPos(372, 9, -228, 27, 0x62); -- Sauromugue_Champaign_[S] maw + end + elseif (csid == 0x0388) and (option == 1) then + player:setPos(-190, -8, 363, 11, 0x5b); -- Rolanberry_Fields_[S] maw + end +end; \ No newline at end of file Index: scripts/zones/Rolanberry_Fields_[S]/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Rolanberry_Fields_[S]/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Rolanberry_Fields_[S]/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,41 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to Rolanberry_Fields +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",0) == false) then + player:setMaskBit("wotgMaws",0,true); + player:startEvent(0x65); + else + player:startEvent(0x66); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if ((csid == 0x65) or (csid == 0x66)) and (option == 1) then + -- Data from PXI, Pr. + player:setPos(-193, 8, 360, 0, 0x6E); -- Rolanberry_Fields maw + end +end; \ No newline at end of file Index: scripts/zones/Sauromugue_Champaign/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Sauromugue_Champaign/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Sauromugue_Champaign/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,62 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to Sauromugue_Champaign_S +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getCurrentMission(WOTG) == CAVERNOUS_MAWS) then + player:startEvent(0x1f4,1); + else + if(player:getMaskBit("wotgMaws",6) == true) then + player:startEvent(0x388); + end + end +end; + +----------------------------------- +-- onEventUpdate +----------------------------------- + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if (csid == 0x1f4) then + r = math.random(1,3); + player:addKeyItem(PURE_WHITE_FEATHER); + player:messageSpecial(KEYITEM_OBTAINED,PURE_WHITE_FEATHER); + player:completeMission(WOTG,CAVERNOUS_MAWS); + player:addMission(WOTG,BACK_TO_THE_BEGINNING); + -- Data from PXI, Pr. + if(r == 1) then + player:setMaskBit("wotgMaws",3,true); + player:setPos(-48, 0, 437, 52, 0x54); -- Batallia_Downs[S] maw + elseif (r == 2) then + player:setMaskBit("wotgMaws",0,true); + player:setPos(-190, -8, 363, 11, 0x5b); -- Rolanberry_Fields_[S] maw + elseif (r == 3) then + player:setMaskBit("wotgMaws",6,true); + player:setPos(372, 9, -228, 27, 0x62); -- Sauromugue_Champaign_[S] maw + end + elseif (csid == 0x0388) and (option == 1) then + player:setPos(372, 9, -228, 27, 0x62); -- Sauromugue_Champaign_[S] maw + end +end; \ No newline at end of file Index: scripts/zones/Sauromugue_Champaign_[S]/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/Sauromugue_Champaign_[S]/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/Sauromugue_Champaign_[S]/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,41 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to Sauromugue_Champaign +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",6) == false) then + player:setMaskBit("wotgMaws",6,true); + player:startEvent(0x65); + else + player:startEvent(0x66); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if ((csid == 0x65) or (csid == 0x66)) and (option == 1) then + -- Data from PXI, Pr. + player:setPos(372, 9, -228, 27, 0x78); -- Sauromugue_Champaign Maw + end +end; \ No newline at end of file Index: scripts/zones/West_Sarutabaruta/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/West_Sarutabaruta/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/West_Sarutabaruta/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,37 @@ +----------------------------------- +-- Author: Kegsay +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw - OMNOMNOM +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaw",8) == true) then + player:startEvent(0x388); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if (csid == 0x388) and (option == 1) then + -- Data from PXI, Pr. + player:setPos(0, 0, -164, 29, 0x5f); -- West_Sarutabaruta_[S] Maw + end +end; \ No newline at end of file Index: scripts/zones/West_Sarutabaruta_[S]/npcs/Cavernous_Maw.lua =================================================================== --- scripts/zones/West_Sarutabaruta_[S]/npcs/Cavernous_Maw.lua (revision 0) +++ scripts/zones/West_Sarutabaruta_[S]/npcs/Cavernous_Maw.lua (working copy) @@ -0,0 +1,41 @@ +----------------------------------- +-- Author: ReaperX +-- Adapted for Darkstar by PrBlahBlahtson +-- Cavernous Maw +-- Teleports Players to West_Sarutabaruta +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/keyitems"); +require("scripts/globals/missions"); + +----------------------------------- +-- onTrade Action +----------------------------------- +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + if(player:getMaskBit("wotgMaws",8) == false) then + player:setMaskBit("wotgMaws",8,true); + player:startEvent(0x64); + else + player:startEvent(0x65); + end +end; + +----------------------------------- +-- onEventFinish Action +----------------------------------- +function onEventFinish(player,csid,option) +--print("CSID:",csid); +--print("RESULT:",option); + if ((csid == 0x64) or (csid == 0x65)) and (option == 1) then + -- Data from PXI, Pr. + player:setPos(0, 0, -164, 29, 0x73); -- West_Sarutabaruta Maw + end +end; \ No newline at end of file