ScaleYard.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : ZoneScripts/Sprawl.lua
  3. Script Purpose : Attempt to manage changes to the zone between client version
  4. Script Author : Jabantiz
  5. Script Date : 6/18/2018
  6. Script Notes : This will hide the pink cubes in clients greater then 1096 as well as show any replacements we manage to make
  7. --]]
  8. -- Spawn ID's of old widgets/signs that work in 1096 but not newer clients
  9. local old_spawns = { 1390076, 1390073, 1390074, 1390071, 1390072, 1390069, 1390070 }
  10. function init_zone_script(zone)
  11. end
  12. function player_entry(zone, player)
  13. local version = GetClientVersion(player)
  14. if version > 1096 then
  15. local spawn = GetSpawn(player, 1390124)
  16. if spawn ~= nil then
  17. AddSpawnAccess(spawn, Player)
  18. end
  19. else
  20. for index, id in ipairs(old_spawns) do
  21. local spawn2 = GetSpawn(player, id)
  22. if spawn ~= nil then
  23. AddSpawnAccess(spawn, Player)
  24. end
  25. end
  26. end
  27. end
  28. function enter_location(zone, spawn, grid)
  29. end
  30. function leave_location(zone, spawn, grid)
  31. end
  32. function dawn(zone)
  33. end
  34. function dusk(zone)
  35. end
  36. --[[
  37. Inner door of the bank for 1208+
  38. 970376927
  39. 84.02222
  40. -2.783144
  41. -34.46384
  42. ]]