Index: Marjami_ravine/mobs/Monolithic_Boulder.lua =================================================================== --- Marjami_ravine/mobs/Monolithic_Boulder.lua (revision 0) +++ Marjami_ravine/mobs/Monolithic_Boulder.lua (working copy) @@ -0,0 +1,125 @@ +----------------------------------- +-- Area: marjami +-- NPC: monolithic boulder +----------------------------------- + +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(17867004); +local B = GetMobAction(17867005); +local D = GetMobAction(17867014); +local E = GetMobAction(17867015); +local G = GetMobAction(17867024); +local H = GetMobAction(17867025); +local J = GetMobAction(17867034); +local K = GetMobAction(17867035); +local M = GetMobAction(17867044); +local N = GetMobAction(17867045); +local P = GetMobAction(17867054); +local Q = GetMobAction(17867055); +local S = GetMobAction(17867064); +local T = GetMobAction(17867065); +local C = A+B; +local F = D+E; +local I = G+H; +local L = J+K; +local O = M+N; +local R = P+Q; +local U = S+T; + + +if(C >= 42 and C <= 50)then +GetNPCByID(17867153):openDoor(3600); +DespawnMob(17867006); +DespawnMob(17867007); +DespawnMob(17867008); +DespawnMob(17867009); +DespawnMob(17867010); +DespawnMob(17867011); +DespawnMob(17867012); +DespawnMob(17867013); +elseif(F >= 42 and F <= 50)then +GetNPCByID(17867154):openDoor(3600); +DespawnMob(17867016); +DespawnMob(17867017); +DespawnMob(17867018); +DespawnMob(17867019); +DespawnMob(17867020); +DespawnMob(17867021); +DespawnMob(17867022); +DespawnMob(17867023); +elseif(I >= 42 and I <= 50)then +GetNPCByID(17867155):openDoor(3600); +DespawnMob(17867026); +DespawnMob(17867027); +DespawnMob(17867028); +DespawnMob(17867029); +DespawnMob(17867030); +DespawnMob(17867031); +DespawnMob(17867032); +DespawnMob(17867033); +elseif(L >= 42 and L <= 50)then +GetNPCByID(17867156):openDoor(3600); +DespawnMob(17867036); +DespawnMob(17867037); +DespawnMob(17867038); +DespawnMob(17867039); +DespawnMob(17867040); +DespawnMob(17867041); +DespawnMob(17867042); +DespawnMob(17867043); +elseif(O >= 42 and O <= 50)then +GetNPCByID(17867157):openDoor(3600); +DespawnMob(17867046); +DespawnMob(17867047); +DespawnMob(17867048); +DespawnMob(17867049); +DespawnMob(17867050); +DespawnMob(17867051); +DespawnMob(17867052); +DespawnMob(17867053); +elseif(R >= 42 and R <= 50)then +GetNPCByID(17867158):openDoor(3600); +DespawnMob(17867056); +DespawnMob(17867057); +DespawnMob(17867058); +DespawnMob(17867059); +DespawnMob(17867060); +DespawnMob(17867061); +DespawnMob(17867062); +DespawnMob(17867063); +elseif(U >= 42 and U <= 50)then +GetNPCByID(17867159):openDoor(3600); +DespawnMob(17867066); +DespawnMob(17867067); +DespawnMob(17867068); +DespawnMob(17867069); +DespawnMob(17867070); +DespawnMob(17867071); +DespawnMob(17867072); +DespawnMob(17867073); +end +end; Index: Marjami_ravine/TextIDs.lua =================================================================== --- Marjami_ravine/TextIDs.lua (revision 0) +++ Marjami_ravine/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: Marjami_ravine/Zone.lua =================================================================== --- Marjami_ravine/Zone.lua (revision 0) +++ Marjami_ravine/Zone.lua (working copy) @@ -0,0 +1,55 @@ +----------------------------------- +-- +-- Zone: Marjami_ravine +-- +----------------------------------- + +package.loaded["scripts/zones/Marjami_ravine/TextIDs"] = nil; +require("scripts/zones/Marjami_ravine/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(416,-60,277,97); + 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; + + +