Index: npcs/Adrienaure.lua =================================================================== --- npcs/Adrienaure.lua (revision 0) +++ npcs/Adrienaure.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x000B); +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; + Index: npcs/Bezetep.lua =================================================================== --- npcs/Bezetep.lua (revision 0) +++ npcs/Bezetep.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x0130); +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; + Index: npcs/Chalvava.lua =================================================================== --- npcs/Chalvava.lua (revision 0) +++ npcs/Chalvava.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x0131); +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; + Index: npcs/Faomahd.lua =================================================================== --- npcs/Faomahd.lua (revision 0) +++ npcs/Faomahd.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x0132); +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; + Index: npcs/Jaroney-Baroney.lua =================================================================== --- npcs/Jaroney-Baroney.lua (revision 0) +++ npcs/Jaroney-Baroney.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x0137); +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; + Index: npcs/Kyairah_Mochaafa.lua =================================================================== --- npcs/Kyairah_Mochaafa.lua (revision 0) +++ npcs/Kyairah_Mochaafa.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x0135); +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; + Index: npcs/Lohvi_Rashiibo.lua =================================================================== --- npcs/Lohvi_Rashiibo.lua (revision 0) +++ npcs/Lohvi_Rashiibo.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x012E); +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; + Index: npcs/Mathais.lua =================================================================== --- npcs/Mathais.lua (revision 0) +++ npcs/Mathais.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x012D); +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; + Index: npcs/Obolt.lua =================================================================== --- npcs/Obolt.lua (revision 0) +++ npcs/Obolt.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x0136); +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; + Index: npcs/Relentless_storm.lua =================================================================== --- npcs/Relentless_storm.lua (revision 0) +++ npcs/Relentless_storm.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x09C4); +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; + Index: npcs/Risto-Fristo.lua =================================================================== --- npcs/Risto-Fristo.lua (revision 0) +++ npcs/Risto-Fristo.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x012F); +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; + Index: npcs/Sainene.lua =================================================================== --- npcs/Sainene.lua (revision 0) +++ npcs/Sainene.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x0140); +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; + Index: npcs/Saldinor.lua =================================================================== --- npcs/Saldinor.lua (revision 0) +++ npcs/Saldinor.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x014A); +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; + Index: npcs/Sivalda.lua =================================================================== --- npcs/Sivalda.lua (revision 0) +++ npcs/Sivalda.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x0134); +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; + Index: npcs/Sluicegate.lua =================================================================== --- npcs/Sluicegate.lua (revision 0) +++ npcs/Sluicegate.lua (working copy) @@ -0,0 +1,54 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + +local sluice = npc:getID(); +if (sluice == 17834307)then +GetNPCByID(17834256):openDoor(8); +elseif(sluice == 17834308)then +GetNPCByID(17834255):openDoor(8); +elseif(sluice == 17834309)then +GetNPCByID(17834257):openDoor(8); +elseif(sluice == 17834310)then +GetNPCByID(17834258):openDoor(8); +elseif(sluice == 17834311)then +player:messageSpecial(NOTHING); +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; + Index: npcs/Soltargan.lua =================================================================== --- npcs/Soltargan.lua (revision 0) +++ npcs/Soltargan.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x0139); +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; + Index: npcs/Trentain.lua =================================================================== --- npcs/Trentain.lua (revision 0) +++ npcs/Trentain.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x0133); +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; + Index: npcs/Yeggha_Dolashi.lua =================================================================== --- npcs/Yeggha_Dolashi.lua (revision 0) +++ npcs/Yeggha_Dolashi.lua (working copy) @@ -0,0 +1,42 @@ +----------------------------------- +-- +-- Auto-Script: Requires Verification (Verified by Brawndo) +----------------------------------- +package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Rala_Waterways/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) +player:startEvent(0x013F); +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; + Index: TextIDs.lua =================================================================== --- TextIDs.lua (revision 4120) +++ TextIDs.lua (working copy) @@ -1,7 +1,8 @@ --- 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: +-- 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: + NOTHING = 6392; Index: Zone.lua =================================================================== --- Zone.lua (revision 4120) +++ Zone.lua (working copy) @@ -19,12 +19,14 @@ -- onZoneIn ----------------------------------- -function onZoneIn(player,prevZone) -cs = -1; +function onZoneIn(player,prevZone) + cs = -1; + if ((player:getXPos() == 0) and (player:getYPos() == 0) and (player:getZPos() == 0)) then + player:setPos(-269,-5,-380,129); + end + return cs; +end; -return cs; -end; - ----------------------------------- -- onRegionEnter -----------------------------------