Index: scripts/zones/Gusgen_Mines/npcs/_5g0.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5g0.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5g0.lua (revision 0) @@ -0,0 +1,42 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Door C +-- @pos 44 -42.4 -25.5 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + return 0; +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; \ No newline at end of file Index: scripts/zones/Gusgen_Mines/npcs/_5g1.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5g1.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5g1.lua (revision 0) @@ -0,0 +1,42 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Door B +-- @pos 20.002 -42.398 -25.499 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + return 0; +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; \ No newline at end of file Index: scripts/zones/Gusgen_Mines/npcs/_5g2.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5g2.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5g2.lua (revision 0) @@ -0,0 +1,42 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Door A +-- @pos -4.001 -42.4 -25.5 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + return 0; +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; \ No newline at end of file Index: scripts/zones/Gusgen_Mines/npcs/_5g3.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5g3.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5g3.lua (revision 0) @@ -0,0 +1,42 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Door F +-- @pos 44 -22.399 174.494 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + return 0; +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; \ No newline at end of file Index: scripts/zones/Gusgen_Mines/npcs/_5g4.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5g4.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5g4.lua (revision 0) @@ -0,0 +1,42 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Door E +-- @pos 19.998 -22.4 174.506 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + return 0; +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; \ No newline at end of file Index: scripts/zones/Gusgen_Mines/npcs/_5g5.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5g5.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5g5.lua (revision 0) @@ -0,0 +1,42 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Door D +-- @pos -4.001 -22.4 174.498 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + return 0; +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; \ No newline at end of file Index: scripts/zones/Gusgen_Mines/npcs/_5ga.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5ga.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5ga.lua (revision 0) @@ -0,0 +1,55 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Lever C +-- @pos 44 -40.561 -54.199 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + + --Designation: Door(db name), lever(db name) + --A: 17580370(_5g2), 17580376(_5gc) + --B: 17580369(_5g1), 17508375(_5gb) + --C: 17580368(_5g0), 17508374(_5ga) + --D: 17508373(_5g5), 17580379(_5gf) + --E: 17580372(_5g4), 17580378(_5ge) + --F: 17580371(_5g3), 17580377(_5gd) + + --local nID = npc:getID(); + --printf("id: %u", nID); + GetNPCByID(17580368):setAnimation(8);--open door C + GetNPCByID(17580369):setAnimation(9);--close door B + GetNPCByID(17580370):setAnimation(9);--close door A +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; \ No newline at end of file Index: scripts/zones/Gusgen_Mines/npcs/_5gb.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5gb.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5gb.lua (revision 0) @@ -0,0 +1,55 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Lever B +-- @pos 19.999 -40.561 -54.198 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + + --Designation: Door(db name), lever(db name) + --A: 17580370(_5g2), 17580376(_5gc) + --B: 17580369(_5g1), 17508375(_5gb) + --C: 17580368(_5g0), 17508374(_5ga) + --D: 17508373(_5g5), 17580379(_5gf) + --E: 17580372(_5g4), 17580378(_5ge) + --F: 17580371(_5g3), 17580377(_5gd) + + --local nID = npc:getID(); + --printf("id: %u", nID); + GetNPCByID(17580368):setAnimation(9);--close door C + GetNPCByID(17580369):setAnimation(8);--open door B + GetNPCByID(17580370):setAnimation(9);--close door A +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; \ No newline at end of file Index: scripts/zones/Gusgen_Mines/npcs/_5gc.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5gc.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5gc.lua (revision 0) @@ -0,0 +1,55 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Lever A +-- @pos -4 -40.561 -54.199 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + + --Designation: Door(db name), lever(db name) + --A: 17580370(_5g2), 17580376(_5gc) + --B: 17580369(_5g1), 17508375(_5gb) + --C: 17580368(_5g0), 17508374(_5ga) + --D: 17508373(_5g5), 17580379(_5gf) + --E: 17580372(_5g4), 17580378(_5ge) + --F: 17580371(_5g3), 17580377(_5gd) + + --local nID = npc:getID(); + --printf("id: %u", nID); + GetNPCByID(17580368):setAnimation(9);--close door C + GetNPCByID(17580369):setAnimation(9);--close door B + GetNPCByID(17580370):setAnimation(8);--open door A +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; \ No newline at end of file Index: scripts/zones/Gusgen_Mines/npcs/_5gd.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5gd.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5gd.lua (revision 0) @@ -0,0 +1,55 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Lever F +-- @pos 44 -20.56 143.802 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + + --Designation: Door(db name), lever(db name) + --A: 17580370(_5g2), 17580376(_5gc) + --B: 17580369(_5g1), 17508375(_5gb) + --C: 17580368(_5g0), 17508374(_5ga) + --D: 17508373(_5g5), 17580379(_5gf) + --E: 17580372(_5g4), 17580378(_5ge) + --F: 17580371(_5g3), 17580377(_5gd) + + --local nID = npc:getID(); + --printf("id: %u", nID); + GetNPCByID(17580371):setAnimation(8);--open door F + GetNPCByID(17580372):setAnimation(9);--close door E + GetNPCByID(17580373):setAnimation(9);--close door D +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; \ No newline at end of file Index: scripts/zones/Gusgen_Mines/npcs/_5ge.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5ge.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5ge.lua (revision 0) @@ -0,0 +1,55 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Lever E +-- @pos 20 -20.561 143.801 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + + --Designation: Door(db name), lever(db name) + --A: 17580370(_5g2), 17580376(_5gc) + --B: 17580369(_5g1), 17508375(_5gb) + --C: 17580368(_5g0), 17508374(_5ga) + --D: 17508373(_5g5), 17580379(_5gf) + --E: 17580372(_5g4), 17580378(_5ge) + --F: 17580371(_5g3), 17580377(_5gd) + + --local nID = npc:getID(); + --printf("id: %u", nID); + GetNPCByID(17580371):setAnimation(9);--close door F + GetNPCByID(17580372):setAnimation(8);--open door E + GetNPCByID(17580373):setAnimation(9);--close door D +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; \ No newline at end of file Index: scripts/zones/Gusgen_Mines/npcs/_5gf.lua =================================================================== --- scripts/zones/Gusgen_Mines/npcs/_5gf.lua (revision 0) +++ scripts/zones/Gusgen_Mines/npcs/_5gf.lua (revision 0) @@ -0,0 +1,55 @@ +----------------------------------- +-- Area: Gusgen Mines +-- NPC: Lever C +-- @pos 44 -40.561 -54.199 +----------------------------------- +package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; +----------------------------------- + +require("scripts/zones/Gusgen_Mines/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + + --Designation: Door(db name), lever(db name) + --A: 17580370(_5g2), 17580376(_5gc) + --B: 17580369(_5g1), 17508375(_5gb) + --C: 17580368(_5g0), 17508374(_5ga) + --D: 17508373(_5g5), 17580379(_5gf) + --E: 17580372(_5g4), 17580378(_5ge) + --F: 17580371(_5g3), 17580377(_5gd) + + --local nID = npc:getID(); + --printf("id: %u", nID); + GetNPCByID(17580371):setAnimation(9);--close door F + GetNPCByID(17580372):setAnimation(9);--close door E + GetNPCByID(17580373):setAnimation(8);--open door D +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; \ No newline at end of file