9
3

Nettleville.lua 911 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : ZoneScripts/Nettleville.lua
  3. Script Purpose :
  4. Script Author : Jabantiz
  5. Script Date : 6/11/2018
  6. Script Notes :
  7. --]]
  8. local UNFORTUNATE_MISTAKES = 303
  9. function init_zone_script(zone)
  10. SetLocationProximityFunction(zone, 582.66, -26.54, 375.95, 10, "UnfortunateMistakesTrigger", "Leave")
  11. end
  12. function player_entry(zone, player)
  13. end
  14. function enter_location(zone, spawn, grid)
  15. end
  16. function leave_location(zone, spawn, grid)
  17. end
  18. function dawn(zone)
  19. end
  20. function dusk(zone)
  21. end
  22. function UnfortunateMistakesTrigger(zone, Spawn)
  23. if HasQuest(Spawn, UNFORTUNATE_MISTAKES) and GetQuestStep(Spawn, UNFORTUNATE_MISTAKES) == 1 then
  24. local Ralkesh = GetSpawn(Spawn, 2330065)
  25. if Ralkesh ~= nil then
  26. if GetTempVariable(Ralkesh, "Ready") == "true" then
  27. AddTimer(Ralkesh, 250, "StartRitual")
  28. end
  29. end
  30. end
  31. end
  32. function Leave(zone, Spawn)
  33. end