9
3

aGruttoothlaborerPonder.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothlaborerPonder.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.06 08:09:39
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGoblin1.lua")
  9. require "SpawnScripts/Generic/CombatModule"
  10. function spawn(NPC, Spawn)
  11. combatModule(NPC, Spawn)
  12. local Level = GetLevel(NPC)
  13. local level1 = 3
  14. local level2 = 4
  15. local difficulty1 = 6
  16. local hp1 = 75
  17. local power1 = 45
  18. local difficulty2 = 6
  19. local hp2 = 110
  20. local power2 = 55
  21. if Level == level1 then
  22. SpawnSet(NPC, "difficulty", difficulty1)
  23. SpawnSet(NPC, "hp", hp1)
  24. SpawnSet(NPC, "power", power1)
  25. elseif Level == level2
  26. then
  27. SpawnSet(NPC, "difficulty", difficulty2)
  28. SpawnSet(NPC, "hp", hp2)
  29. SpawnSet(NPC, "power", power2)
  30. end
  31. SpawnSet(NPC, "visual_state", 12030)
  32. SetInfoStructUInt(NPC, "hp_regen_override", 1)
  33. SetInfoStructSInt(NPC, "hp_regen", 0)
  34. end
  35. function aggro(NPC,Spawn)
  36. SpawnSet(NPC, "visual_state", 0)
  37. end
  38. function hailed(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. end
  41. function respawn(NPC)
  42. spawn(NPC)
  43. end