Nettleville.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. -- SetLocationProximityFunction(zone, 640.16, -24.67, 383.95, 30, "MarketRow","LeaveLocation")
  12. end
  13. function player_entry(zone, player)
  14. SendPopUpMessage(player, "Nettleville Hovel", 230, 230, 230)
  15. end
  16. function enter_location(zone, spawn, grid)
  17. -- if grid == 342305820 then
  18. -- SendPopUpMessage(Player, "Nettleville Market Row", 255, 255, 0)
  19. -- end
  20. -- SetLocationProximityFunction(zone, 640.16, -24.67, 383.95, 30, "MarketRow","LeaveLocation")
  21. end
  22. function MarketRow(Zone,Player)
  23. SendPopUpMessage(Player, "Nettleville Market Row", 255, 255, 0)
  24. end
  25. function leave_location(zone, spawn, grid)
  26. end
  27. function dawn(zone)
  28. end
  29. function dusk(zone)
  30. end
  31. function UnfortunateMistakesTrigger(zone, Spawn)
  32. if HasQuest(Spawn, UNFORTUNATE_MISTAKES) and GetQuestStep(Spawn, UNFORTUNATE_MISTAKES) == 1 then
  33. local Ralkesh = GetSpawn(Spawn, 2330065)
  34. if Ralkesh ~= nil then
  35. if GetTempVariable(Ralkesh, "Ready") == "true" then
  36. AddTimer(Ralkesh, 250, "StartRitual")
  37. end
  38. end
  39. end
  40. end
  41. function Leave(zone, Spawn)
  42. end