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:hasKeyItem(PURE_WHITE_FEATHER) == false) then + player:startEvent(0x1f4,1); + else + if(player:getVar("BATALLIA_MAW") == 1) 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); + -- Mission status commented out. My purpose was to fix the maw, not WotG. Pr. + --player:completeMission(7,0); + --player:currentMission(7,1); + if(r == 1) then + player:setVar("BATALLIA_MAW",1); + player:setPos(-48, 0, 437, 52, 0x54); -- Batallia_Downs[S] maw + elseif (r == 2) then + player:setVar("ROLANBERRY_MAW",1); + player:setPos(-190, -8, 363, 11, 0x5b); -- Rolanberry_Fields_[S] maw + elseif (r == 3) then + player:setVar("SAUROMUGUE_MAW",1); + 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,40 @@ +----------------------------------- +-- 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:getVar("BATALLIA_MAW") == 0) then + player:setVar("BATALLIA_MAW",1); + 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 + 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:getVar("RONFAURE_MAW") == 1) 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 + -- setPos data is not checked against retail. 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:getVar("RONFAURE_MAW") == 0) then + player:setVar("RONFAURE_MAW",1); + 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(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:getVar("JUGNER_MAW") == 1) 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:getVar("JUGNER_MAW") == 0) then + player:setVar("JUGNER_MAW",1); + 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:getVar("MERIPHATAUD_MAW") == 1) 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:getVar("MERIPHATAUD_MAW") == 0) then + player:setVar("MERIPHATAUD_MAW",1); + 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:getVar("GUSTABERG_MAW") == 1) 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:getVar("GUSTABERG_MAW") == 0) then + player:setVar("GUSTABERG_MAW",1); + 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:getVar("PASHHOW_MAW") == 1) 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:getVar("PASHHOW_MAW") == 0) then + player:setVar("PASHHOW_MAW",1); + 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:hasKeyItem(PURE_WHITE_FEATHER) == false) then + player:startEvent(0x1f4,1); + else + if(player:getVar("ROLANBERRY_MAW") == 1) 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); + -- Mission status commented out. My purpose was to fix the maw, not WotG. Pr. + --player:completeMission(7,0); + --player:currentMission(7,1); + if(r == 1) then + player:setVar("BATALLIA_MAW",1); + player:setPos(-48, 0, 437, 52, 0x54); -- Batallia_Downs[S] maw + elseif (r == 2) then + player:setVar("ROLANBERRY_MAW",1); + player:setPos(-190, -8, 363, 11, 0x5b); -- Rolanberry_Fields_[S] maw + elseif (r == 3) then + player:setVar("SAUROMUGUE_MAW",1); + 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,40 @@ +----------------------------------- +-- 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:getVar("ROLANBERRY_MAW") == 0) then + player:setVar("ROLANBERRY_MAW",1); + 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 + 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:hasKeyItem(PURE_WHITE_FEATHER) == false) then + player:startEvent(0x1f4,1); + else + if(player:getVar("SAUROMUGUE_MAW") == 1) 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); + -- Mission status commented out. My purpose was to fix the maw, not WotG. Pr. + --player:completeMission(7,0); + --player:currentMission(7,1); + if(r == 1) then + player:setVar("BATALLIA_MAW",1); + player:setPos(-48, 0, 437, 52, 0x54); -- Batallia_Downs[S] maw + elseif (r == 2) then + player:setVar("ROLANBERRY_MAW",1); + player:setPos(-190, -8, 363, 11, 0x5b); -- Rolanberry_Fields_[S] maw + elseif (r == 3) then + player:setVar("SAUROMUGUE_MAW",1); + 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,40 @@ +----------------------------------- +-- 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:getVar("SAUROMUGUE_MAW") == 0) then + player:setVar("SAUROMUGUE_MAW",1); + 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 + 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:getVar("SARUTABARUTA_MAW") == 1) 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 + -- setPos data is not checked against retail. 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:getVar("SARUTABARUTA_MAW") == 0) then + player:setVar("SARUTABARUTA_MAW",1); + 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(0, 0, -164, 29, 0x73); -- West Sarutabaruta Maw +end; +end; \ No newline at end of file Index: sql/npc_list.sql =================================================================== --- sql/npc_list.sql (revision 1578) +++ sql/npc_list.sql (working copy) @@ -4409,6 +4409,7 @@ +INSERT INTO npc_list VALUES (17109774, 'Cavernous_Maw', 64, 321.899, -59.500, 509.089, 32769, 40, 40, 0, 0, 96, 0, 3, x'0000150900000000000000000000000000000000', 2, 81); INSERT INTO npc_list VALUES (17113511, 'Leonoyne', 32, -500.000, -500.000, -500.000, 0, 40, 40, 0, 0, 24, 6, 2203, x'010002033A103A203A303A403A50976100700080', 0, 82); INSERT INTO npc_list VALUES (17113551, 'Laisavie_X_Berlends', 32, 72.086, 0.000, -31.885, 7, 40, 40, 0, 0, 0, 0, 539, x'0100050400102F201A301A401A50666100702380', 0, 82); INSERT INTO npc_list VALUES (17113599, 'Royal_Provisioner', 0, 0.000, 0.000, 0.000, 0, 40, 40, 0, 0, 16, 2, 3, x'0000F40800000000000000000000000000000000', 0, 82); @@ -4621,6 +4622,8 @@ INSERT INTO npc_list VALUES (17118026, 'Shredded_Label', 0, -199.744, -31.544, 650.647, 1, 40, 40, 0, 0, 0, 0, 3, x'0000340000000000000000000000000000000000', 0, 83); INSERT INTO npc_list VALUES (17118027, 'Watchful_Pixie', 32, -25.000, -39.450, -135.000, 6, 40, 40, 0, 8, 0, 0, 515, x'0000EE0700000000000000000000000000000000', 0, 83); INSERT INTO npc_list VALUES (17118028, 'Jubilant_Pixie', 176, -30.000, -39.137, -135.000, 1, 40, 40, 0, 8, 8, 2, 2563, x'0000EE0700000000000000000000000000000000', 0, 83); +INSERT INTO npc_list VALUES (17122129, 'Cavernous_Maw', 128, -45.147, 0.056, 436.919, 32769, 40, 40, 0, 0, 96, 0, 3, x'0000150900000000000000000000000000000000', 2, 84); +INSERT INTO npc_list VALUES (17138463, 'Cavernous_Maw', 0, 462.628, 0.029, 479.280, 32769, 40, 40, 0, 0, 96, 0, 3, x'0000150900000000000000000000000000000000', 2, 88); INSERT INTO npc_list VALUES (17146285, 'Republic_Supplier', 0, 423.116, 24.187, 375.909, 7, 40, 40, 0, 0, 16, 2, 3, x'0000F50800000000000000000000000000000000', 0, 90); INSERT INTO npc_list VALUES (17146286, 'Republic_Supplier', 0, 467.299, 24.269, 403.823, 7, 40, 40, 0, 0, 16, 2, 3, x'0000F50800000000000000000000000000000000', 0, 90); INSERT INTO npc_list VALUES (17146287, 'Republic_Supplier', 0, 477.913, 24.217, 388.574, 6, 40, 40, 0, 0, 16, 2, 3, x'0000F50800000000000000000000000000000000', 0, 90); @@ -4697,6 +4700,7 @@ INSERT INTO npc_list VALUES (17146636, 'Shredded_Label', 0, -176.000, 25.249, 96.000, 1, 40, 40, 0, 0, 0, 0, 3, x'0000340000000000000000000000000000000000', 0, 90); INSERT INTO npc_list VALUES (17146637, 'Watchful_Pixie', 64, 236.000, 23.600, 212.000, 6, 40, 40, 0, 8, 0, 0, 515, x'0000EE0700000000000000000000000000000000', 0, 90); INSERT INTO npc_list VALUES (17146638, 'Jubilant_Pixie', 32, 234.000, 24.100, 204.000, 1, 40, 40, 0, 8, 8, 2, 2563, x'0000EE0700000000000000000000000000000000', 0, 90); +INSERT INTO npc_list VALUES (17150741, 'Cavernous_Maw', 225, -201.984, 7.999, 358.013, 32769, 40, 40, 0, 0, 96, 0, 3, x'0000150900000000000000000000000000000000', 2, 91); INSERT INTO npc_list VALUES (17162241, 'Kayeel-Payeel', 50, -46.010, -5.000, 132.499, 7, 40, 40, 0, 0, 0, 0, 27, x'01000905DC10DC20DC30DC40DC50566100700000', 32, 94); INSERT INTO npc_list VALUES (17162253, 'Gariri', 32, -57.009, -5.000, 88.626, 6, 40, 40, 0, 0, 0, 2, 27, x'0100050647102D20473047404750496100700000', 32, 94); INSERT INTO npc_list VALUES (17162264, 'Zolku-Azolku', 139, -34.779, -5.000, 154.713, 7, 40, 40, 0, 0, 0, 0, 27, x'01000D05CD10BA20943094409450316100700000', 32, 94);