Advertisement
Tom_Neverwinter

Chocobocircuit zone

Nov 16th, 2022
939
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. -----------------------------------
  2. --
  3. -- Zone: Chocobo_Circuit
  4. --
  5. -----------------------------------
  6. local ID = require("scripts/zones/Chocobo_Circuit/IDs")
  7. require("scripts/globals/zone")
  8. -----------------------------------
  9. local zone_object = {}
  10.  
  11. zone_object.onInitialize = function(zone)
  12. end
  13.  
  14. zone_object.onZoneIn = function(player, prevZone)
  15.     local cs = -1
  16.  
  17.     -- there are five zones, need to seperate into respective zone in areas
  18.     if player:getXPos() == 0 and player:getYPos() == 0 and player:getZPos() == 0 then
  19.         player:setPos(-319.816, -0.2895, -475.1285) --temp zone in testing --teleporters need scripting --zone in doors not scripted
  20.     end
  21.  
  22.     return cs
  23. end
  24.  
  25. zone_object.onRegionEnter = function(player, region)
  26. end
  27.  
  28. zone_object.onEventUpdate = function(player, csid, option)
  29. end
  30.  
  31. zone_object.onEventFinish = function(player, csid, option)
  32. end
  33.  
  34. return zone_object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement