Index: Celennia_Wexworth_Memorial_Library/Zone.lua =================================================================== --- Celennia_Wexworth_Memorial_Library/Zone.lua (revision 4158) +++ Celennia_Wexworth_Memorial_Library/Zone.lua (working copy) @@ -20,8 +20,10 @@ ----------------------------------- function onZoneIn(player,prevZone) +if( player:getXPos() == 0 and player:getYPos() == 0 and player:getZPos() == 0) then +player:setPos( -96,-2,-87,94); +end cs = -1; - return cs; end; Index: Mog_Garden/TextIDs.lua =================================================================== --- Mog_Garden/TextIDs.lua (revision 0) +++ Mog_Garden/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: Mog_Garden/Zone.lua =================================================================== --- Mog_Garden/Zone.lua (revision 0) +++ Mog_Garden/Zone.lua (working copy) @@ -0,0 +1,59 @@ +----------------------------------- +-- +-- Zone: MOG GARDEN +-- +----------------------------------- + +require("scripts/globals/settings"); +package.loaded["scripts/zones/Woh_Gates/TextIDs"] = nil; +require("scripts/zones/Woh_Gates/TextIDs"); + +----------------------------------- +-- onInitialize +----------------------------------- + +function onInitialize(zone) +end; + +----------------------------------- +-- onZoneIn +----------------------------------- + +function onZoneIn(player,prevZone) +if (player:getVar("MGVISITED") == 0)then +cs = 0x07d1 +player:setVar("MGVISITED",1); +elseif ((player:getXPos() == 0) and (player:getYPos() == 0) and (player:getZPos() == 0)) then +player:setPos(-4,0,-11,206); +cs = -1; +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; + + +