TheUnderwurm.lua 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/TheUnderwurm.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.02.10 09:02:20
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. dmgMod = GetStr(NPC)/10
  11. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(55 + dmgMod))
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(95 + dmgMod))
  14. AddTimer(NPC, 6000, "waypoints")
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function waypoints(NPC)
  23. MovementLoopAddLocation(NPC, 484.03, -66.27, -408.75, 4, 0)
  24. MovementLoopAddLocation(NPC, 440.04, -68.04, -442.62, 4, 0)
  25. MovementLoopAddLocation(NPC, 434.75, -68.63, -470.9, 4, 0)
  26. MovementLoopAddLocation(NPC, 445.29, -69.55, -497.05, 4, 0)
  27. MovementLoopAddLocation(NPC, 457.91, -58.87, -520.84, 4, 0)
  28. MovementLoopAddLocation(NPC, 479.26, -62.15, -539.2, 4, 0)
  29. MovementLoopAddLocation(NPC, 517.41, -60.04, -535.75, 4, 0)
  30. MovementLoopAddLocation(NPC, 570.84, -65.14, -486.74, 4, 0)
  31. MovementLoopAddLocation(NPC, 587.98, -67.09, -447.26, 4, 0)
  32. MovementLoopAddLocation(NPC, 578.77, -68.6, -410.72, 4, 0)
  33. MovementLoopAddLocation(NPC, 554.09, -67.24, -387.26, 4, 0)
  34. MovementLoopAddLocation(NPC, 554.09, -67.24, -387.26, 4, 0)
  35. MovementLoopAddLocation(NPC, 515.52, -64.61, -368.86, 4, 0)
  36. MovementLoopAddLocation(NPC, 515.52, -64.61, -368.86, 4, 0)
  37. MovementLoopAddLocation(NPC, 488.48, -61.81, -369.14, 4, 0)
  38. MovementLoopAddLocation(NPC, 458.84, -60.92, -414.05, 4, 0)
  39. MovementLoopAddLocation(NPC, 437.7, -59.51, -392.08, 4, 0)
  40. MovementLoopAddLocation(NPC, 419.02, -51.63, -376.95, 4, 0)
  41. MovementLoopAddLocation(NPC, 386.75, -51.18, -362.51, 4, 0)
  42. MovementLoopAddLocation(NPC, 363.5, -51.39, -349.16, 4, 0)
  43. MovementLoopAddLocation(NPC, 277.39, -51.65, -346.53, 4, 0)
  44. MovementLoopAddLocation(NPC, 223.49, -57.4, -340.24, 4, 0)
  45. MovementLoopAddLocation(NPC, 246.49, -57.49, -343.19, 4, 0)
  46. MovementLoopAddLocation(NPC, 279.33, -51.36, -347.26, 4, 0)
  47. MovementLoopAddLocation(NPC, 355.61, -51.39, -345.24, 4, 0)
  48. MovementLoopAddLocation(NPC, 353.76, -51.34, -316.14, 4, 0)
  49. MovementLoopAddLocation(NPC, 353.23, -52.65, -292.41, 4, 0)
  50. MovementLoopAddLocation(NPC, 374.68, -52.83, -261.43, 4, 0)
  51. MovementLoopAddLocation(NPC, 394.45, -52.67, -236.52, 4, 0)
  52. MovementLoopAddLocation(NPC, 415.14, -52.96, -215.42, 4, 0)
  53. MovementLoopAddLocation(NPC, 420.27, -51.87, -183.13, 4, 0)
  54. MovementLoopAddLocation(NPC, 406.4, -52.88, -154.21, 4, 0)
  55. MovementLoopAddLocation(NPC, 398.86, -52.72, -130.21, 4, 0)
  56. MovementLoopAddLocation(NPC, 404.17, -51.31, -50.44, 4, 0)
  57. MovementLoopAddLocation(NPC, 396.19, -52.02, -112.56, 4, 0)
  58. MovementLoopAddLocation(NPC, 402.8, -52.7, -148.2, 4, 0)
  59. MovementLoopAddLocation(NPC, 419.93, -52.88, -167.05, 4, 0)
  60. MovementLoopAddLocation(NPC, 420.47, -52.56, -210.51, 4, 0)
  61. MovementLoopAddLocation(NPC, 395.74, -52.86, -234.12, 4, 0)
  62. MovementLoopAddLocation(NPC, 374.76, -52.88, -261.05, 4, 0)
  63. MovementLoopAddLocation(NPC, 352.11, -52.89, -291.46, 4, 0)
  64. MovementLoopAddLocation(NPC, 361.43, -51.39, -345.68, 4, 0)
  65. MovementLoopAddLocation(NPC, 389.64, -51.11, -361.08, 4, 0)
  66. MovementLoopAddLocation(NPC, 408.9, -51.25, -371.33, 4, 0)
  67. MovementLoopAddLocation(NPC, 423.25, -53.36, -380.85, 4, 0)
  68. MovementLoopAddLocation(NPC, 444.57, -60.57, -404.01, 4, 0)
  69. MovementLoopAddLocation(NPC, 484.03, -66.27, -408.75, 4, 0)
  70. end