Tom_Neverwinter icon

Chocobocircuit zone

Tom_Neverwinter | PRO | 11/16/22 06:03:57 AM UTC | 0 ⭐ | 1245 👁️ | Never ⏰ | []
Lua |

910 B

|

None

|

0 👍

/

0 👎

-----------------------------------
--
-- Zone: Chocobo_Circuit
--
-----------------------------------
local ID = require("scripts/zones/Chocobo_Circuit/IDs")
require("scripts/globals/zone")
-----------------------------------
local zone_object = {}
 
zone_object.onInitialize = function(zone)
end
 
zone_object.onZoneIn = function(player, prevZone)
    local cs = -1
 
    -- there are five zones, need to seperate into respective zone in areas
    if player:getXPos() == 0 and player:getYPos() == 0 and player:getZPos() == 0 then
        player:setPos(-319.816, -0.2895, -475.1285) --temp zone in testing --teleporters need scripting --zone in doors not scripted
    end
 
    return cs
end
 
zone_object.onRegionEnter = function(player, region)
end
 
zone_object.onEventUpdate = function(player, csid, option)
end
 
zone_object.onEventFinish = function(player, csid, option)
end
 
return zone_object

Comments