Index: Dho_Gates/mobs/Knotted_root.lua =================================================================== --- Dho_Gates/mobs/Knotted_root.lua (revision 0) +++ Dho_Gates/mobs/Knotted_root.lua (working copy) @@ -0,0 +1,57 @@ +----------------------------------- +-- Area: dho gate +-- NPC: knotted root +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/missions"); +require("scripts/globals/titles"); +require("scripts/globals/status"); + +----------------------------------- +-- onMobSpawn Action +----------------------------------- + +function onMobSpawn(mob) +end; + + +----------------------------------- +-- onMobEngaged +----------------------------------- +function onMobEngaged(mob,target) +end; + +----------------------------------- +-- onMobDeath Action +----------------------------------- + +function onMobDeath(mob,killer) + +local A = GetMobAction(17891484); +local B = GetMobAction(17891485); +local D = GetMobAction(17891492); +local E = GetMobAction(17891493); +local C = A+B; +local F = D+E; + +if(C >= 42 and C <= 50)then +-- GetNPCByID(17891567):openDoor(3600); +-- GetNPCByID(17891568):openDoor(3600); +DespawnMob(17891486); +DespawnMob(17891487); +DespawnMob(17891488); +DespawnMob(17891489); +DespawnMob(17891490); +DespawnMob(17891491); +elseif(F >= 42 and F <= 50)then +GetNPCByID(17891569):openDoor(3600); +GetNPCByID(17891570):openDoor(3600); +DespawnMob(17891494); +DespawnMob(17891495); +DespawnMob(17891496); +DespawnMob(17891497); +DespawnMob(17891498); +DespawnMob(17891499); +end +end; Index: Dho_Gates/TextIDs.lua =================================================================== --- Dho_Gates/TextIDs.lua (revision 0) +++ Dho_Gates/TextIDs.lua (working copy) @@ -0,0 +1,7 @@ +-- 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: Index: Dho_Gates/Zone.lua =================================================================== --- Dho_Gates/Zone.lua (revision 0) +++ Dho_Gates/Zone.lua (working copy) @@ -0,0 +1,55 @@ +----------------------------------- +-- +-- Zone: Doh Gates +-- +----------------------------------- + +require("scripts/globals/settings"); +package.loaded["scripts/zones/Dho_Gates/TextIDs"] = nil; +require("scripts/zones/Dho_Gates/TextIDs"); + +----------------------------------- +-- onInitialize +----------------------------------- + +function onInitialize(zone) +end; + +----------------------------------- +-- onZoneIn +----------------------------------- + +function onZoneIn(player,prevZone) + cs = -1; + if ((player:getXPos() == 0) and (player:getYPos() == 0) and (player:getZPos() == 0)) then + player:setPos(62,-10,83,80); + end + return cs; +end; +----------------------------------- +-- onRegionEnter +----------------------------------- + +function onRegionEnter(player,region) +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; + + +