9
3

agossamergroundskeeper.lua 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/agossamergroundskeeper.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.14 12:10:49
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. AddTimer(NPC, 6000, "waypoints")
  12. Appearance(NPC)
  13. end
  14. function Appearance(NPC)
  15. if GetGender(NPC)==2 then
  16. SpawnSet(NPC,"model_type",2851)
  17. end
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function waypoints(NPC)
  23. if GetSpawnLocationID(NPC)==133778178 then
  24. MovementLoopAddLocation(NPC, 1054.41, -10.25, -674.03, 2, 0)
  25. MovementLoopAddLocation(NPC, 1062.13, -10.25, -692.43, 2, 0)
  26. MovementLoopAddLocation(NPC, 1059.32, -10.25, -704.01, 2, 0)
  27. MovementLoopAddLocation(NPC, 1054.11, -10.25, -710.41, 2, 0)
  28. MovementLoopAddLocation(NPC, 1038.42, -10.32, -706.81, 2, math.random(4,9))
  29. MovementLoopAddLocation(NPC, 1031.17, -10.25, -702.45, 2, 0)
  30. MovementLoopAddLocation(NPC, 1026.93, -10.25, -692.83, 2, 0)
  31. MovementLoopAddLocation(NPC, 1060.11, -10.25, -673.05, 2, 0)
  32. MovementLoopAddLocation(NPC, 1083.37, -10.25, -661.99, 2, math.random(4,12))
  33. MovementLoopAddLocation(NPC, 1060.11, -10.25, -673.05, 2, 0)
  34. MovementLoopAddLocation(NPC, 1026.93, -10.25, -692.83, 2, 0)
  35. MovementLoopAddLocation(NPC, 1031.17, -10.25, -702.45, 2, 0)
  36. MovementLoopAddLocation(NPC, 1038.42, -10.32, -706.81, 2, math.random(4,9))
  37. MovementLoopAddLocation(NPC, 1054.11, -10.25, -710.41, 2, 0)
  38. MovementLoopAddLocation(NPC, 1059.32, -10.25, -704.01, 2, 0)
  39. MovementLoopAddLocation(NPC, 1062.13, -10.25, -692.43, 2, 0)
  40. MovementLoopAddLocation(NPC, 1054.41, -10.25, -674.03, 2, 0)
  41. else if GetSpawnLocationID(NPC)==133778179 then
  42. MovementLoopAddLocation(NPC, 1022.49, -10.25, -688.72, 2, 0)
  43. MovementLoopAddLocation(NPC, 1011.3, -19, -664.87, 2, 0)
  44. MovementLoopAddLocation(NPC, 1010.45, -19, -660.17, 2, 0)
  45. MovementLoopAddLocation(NPC, 1018.87, -19.01, -651.51, 2, 0)
  46. MovementLoopAddLocation(NPC, 1028.21, -19, -653.71, 2, 0)
  47. MovementLoopAddLocation(NPC, 1030.3, -19, -661.95, 2, math.random(4,9))
  48. MovementLoopAddLocation(NPC, 1030.3, -19, -661.95, 2, 0)
  49. MovementLoopAddLocation(NPC, 1027.52, -18.99, -652.75, 2, 0)
  50. MovementLoopAddLocation(NPC, 1029.21, -19.01, -646.1, 2, 0)
  51. MovementLoopAddLocation(NPC, 1042.8, -19.01, -640.33, 2, 0)
  52. MovementLoopAddLocation(NPC, 1052.54, -19.01, -645.16, 2, math.random(4,9))
  53. MovementLoopAddLocation(NPC, 1043.5, -19.01, -649.4, 2, 0)
  54. MovementLoopAddLocation(NPC, 1052.15, -12.3, -665.86, 2, 0)
  55. MovementLoopAddLocation(NPC, 1056.82, -10.25, -677.94, 2, 0)
  56. MovementLoopAddLocation(NPC, 1026.39, -10.25, -693.81, 2, math.random(4,9))
  57. MovementLoopAddLocation(NPC, 1026.39, -10.25, -693.81, 2, 0)
  58. MovementLoopAddLocation(NPC, 1056.82, -10.25, -677.94, 2, 0)
  59. MovementLoopAddLocation(NPC, 1052.15, -12.3, -665.86, 2, 0)
  60. MovementLoopAddLocation(NPC, 1043.5, -19.01, -649.4, 2, 0)
  61. MovementLoopAddLocation(NPC, 1052.54, -19.01, -645.16, 2, math.random(4,9))
  62. MovementLoopAddLocation(NPC, 1042.8, -19.01, -640.33, 2, 0)
  63. MovementLoopAddLocation(NPC, 1029.21, -19.01, -646.1, 2, 0)
  64. MovementLoopAddLocation(NPC, 1027.52, -18.99, -652.75, 2, 0)
  65. MovementLoopAddLocation(NPC, 1030.3, -19, -661.95, 2, 0)
  66. MovementLoopAddLocation(NPC, 1030.3, -19, -661.95, 2, math.random(4,9))
  67. MovementLoopAddLocation(NPC, 1028.21, -19, -653.71, 2, 0)
  68. MovementLoopAddLocation(NPC, 1018.87, -19.01, -651.51, 2, 0)
  69. MovementLoopAddLocation(NPC, 1010.45, -19, -660.17, 2, 0)
  70. MovementLoopAddLocation(NPC, 1011.3, -19, -664.87, 2, 0)
  71. MovementLoopAddLocation(NPC, 1022.49, -10.25, -688.72, 2, math.random(4,9))
  72. end
  73. end
  74. end