9
3

aGruttoothmystic1.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothmystic1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.06 12:09:45
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGoblin1.lua")
  9. function spawn(NPC)
  10. local Level = GetLevel(NPC)
  11. local level1 = 3
  12. local level2 = 4
  13. local difficulty1 = 6
  14. local hp1 = 75
  15. local power1 = 55
  16. local difficulty2 = 6
  17. local hp2 = 110
  18. local power2 = 65
  19. if Level == level1 then
  20. SpawnSet(NPC, "difficulty", difficulty1)
  21. SpawnSet(NPC, "hp", hp1)
  22. SpawnSet(NPC, "power", power1)
  23. elseif Level == level2
  24. then
  25. SpawnSet(NPC, "difficulty", difficulty2)
  26. SpawnSet(NPC, "hp", hp2)
  27. SpawnSet(NPC, "power", power2)
  28. end
  29. waypoints(NPC)
  30. end
  31. function hailed(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end
  37. function waypoints(NPC)
  38. MovementLoopAddLocation(NPC, 101.49, 1.61, 97.87, 4, math.random(5,10))
  39. MovementLoopAddLocation(NPC, 117.94, 1.56, 82.54, 4, math.random(5,10))
  40. MovementLoopAddLocation(NPC, 117.94, 1.56, 82.54, 4, 0)
  41. MovementLoopAddLocation(NPC, 114.95, 1.56, 89.91, 4, math.random(5,10))
  42. MovementLoopAddLocation(NPC, 114.95, 1.56, 89.91, 4, 0)
  43. MovementLoopAddLocation(NPC, 126.73, 1.52, 84.83, 4, math.random(5,10))
  44. MovementLoopAddLocation(NPC, 126.73, 1.52, 84.83, 4, 0)
  45. MovementLoopAddLocation(NPC, 122.26, 1.53, 101.79, 4, math.random(5,10))
  46. MovementLoopAddLocation(NPC, 122.26, 1.53, 101.79, 4, 0)
  47. MovementLoopAddLocation(NPC, 122.44, 1.53, 89.65, 4, math.random(5,10))
  48. MovementLoopAddLocation(NPC, 122.44, 1.53, 89.65, 4, 0)
  49. MovementLoopAddLocation(NPC, 103.1, 1.6, 103.53, 4, math.random(5,10))
  50. MovementLoopAddLocation(NPC, 103.1, 1.6, 103.53, 4, 0)
  51. end