9
3

agossamergroundskeeper.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. function spawn(NPC)
  9. waypoints(NPC)
  10. Appearance(NPC)
  11. end
  12. function Appearance(NPC)
  13. if GetGender(NPC)==2 then
  14. SpawnSet(NPC,"model_type",2851)
  15. end
  16. end
  17. function respawn(NPC)
  18. end
  19. function waypoints(NPC)
  20. if GetSpawnLocationID(NPC)==133778178 then
  21. MovementLoopAddLocation(NPC, 1054.41, -10.25, -674.03, 2, 0)
  22. MovementLoopAddLocation(NPC, 1062.13, -10.25, -692.43, 2, 0)
  23. MovementLoopAddLocation(NPC, 1059.32, -10.25, -704.01, 2, 0)
  24. MovementLoopAddLocation(NPC, 1054.11, -10.25, -710.41, 2, 0)
  25. MovementLoopAddLocation(NPC, 1038.42, -10.32, -706.81, 2, math.random(4,9))
  26. MovementLoopAddLocation(NPC, 1031.17, -10.25, -702.45, 2, 0)
  27. MovementLoopAddLocation(NPC, 1026.93, -10.25, -692.83, 2, 0)
  28. MovementLoopAddLocation(NPC, 1060.11, -10.25, -673.05, 2, 0)
  29. MovementLoopAddLocation(NPC, 1083.37, -10.25, -661.99, 2, math.random(4,12))
  30. MovementLoopAddLocation(NPC, 1060.11, -10.25, -673.05, 2, 0)
  31. MovementLoopAddLocation(NPC, 1026.93, -10.25, -692.83, 2, 0)
  32. MovementLoopAddLocation(NPC, 1031.17, -10.25, -702.45, 2, 0)
  33. MovementLoopAddLocation(NPC, 1038.42, -10.32, -706.81, 2, math.random(4,9))
  34. MovementLoopAddLocation(NPC, 1054.11, -10.25, -710.41, 2, 0)
  35. MovementLoopAddLocation(NPC, 1059.32, -10.25, -704.01, 2, 0)
  36. MovementLoopAddLocation(NPC, 1062.13, -10.25, -692.43, 2, 0)
  37. MovementLoopAddLocation(NPC, 1054.41, -10.25, -674.03, 2, 0)
  38. else if GetSpawnLocationID(NPC)==133778179 then
  39. MovementLoopAddLocation(NPC, 1022.49, -10.25, -688.72, 2, 0)
  40. MovementLoopAddLocation(NPC, 1011.3, -19, -664.87, 2, 0)
  41. MovementLoopAddLocation(NPC, 1010.45, -19, -660.17, 2, 0)
  42. MovementLoopAddLocation(NPC, 1018.87, -19.01, -651.51, 2, 0)
  43. MovementLoopAddLocation(NPC, 1028.21, -19, -653.71, 2, 0)
  44. MovementLoopAddLocation(NPC, 1030.3, -19, -661.95, 2, math.random(4,9))
  45. MovementLoopAddLocation(NPC, 1030.3, -19, -661.95, 2, 0)
  46. MovementLoopAddLocation(NPC, 1027.52, -18.99, -652.75, 2, 0)
  47. MovementLoopAddLocation(NPC, 1029.21, -19.01, -646.1, 2, 0)
  48. MovementLoopAddLocation(NPC, 1042.8, -19.01, -640.33, 2, 0)
  49. MovementLoopAddLocation(NPC, 1052.54, -19.01, -645.16, 2, math.random(4,9))
  50. MovementLoopAddLocation(NPC, 1043.5, -19.01, -649.4, 2, 0)
  51. MovementLoopAddLocation(NPC, 1052.15, -12.3, -665.86, 2, 0)
  52. MovementLoopAddLocation(NPC, 1056.82, -10.25, -677.94, 2, 0)
  53. MovementLoopAddLocation(NPC, 1026.39, -10.25, -693.81, 2, math.random(4,9))
  54. MovementLoopAddLocation(NPC, 1026.39, -10.25, -693.81, 2, 0)
  55. MovementLoopAddLocation(NPC, 1056.82, -10.25, -677.94, 2, 0)
  56. MovementLoopAddLocation(NPC, 1052.15, -12.3, -665.86, 2, 0)
  57. MovementLoopAddLocation(NPC, 1043.5, -19.01, -649.4, 2, 0)
  58. MovementLoopAddLocation(NPC, 1052.54, -19.01, -645.16, 2, math.random(4,9))
  59. MovementLoopAddLocation(NPC, 1042.8, -19.01, -640.33, 2, 0)
  60. MovementLoopAddLocation(NPC, 1029.21, -19.01, -646.1, 2, 0)
  61. MovementLoopAddLocation(NPC, 1027.52, -18.99, -652.75, 2, 0)
  62. MovementLoopAddLocation(NPC, 1030.3, -19, -661.95, 2, 0)
  63. MovementLoopAddLocation(NPC, 1030.3, -19, -661.95, 2, math.random(4,9))
  64. MovementLoopAddLocation(NPC, 1028.21, -19, -653.71, 2, 0)
  65. MovementLoopAddLocation(NPC, 1018.87, -19.01, -651.51, 2, 0)
  66. MovementLoopAddLocation(NPC, 1010.45, -19, -660.17, 2, 0)
  67. MovementLoopAddLocation(NPC, 1011.3, -19, -664.87, 2, 0)
  68. MovementLoopAddLocation(NPC, 1022.49, -10.25, -688.72, 2, math.random(4,9))
  69. end
  70. end
  71. end