9
3

aGruttoothlaborerPonder.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. 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 = 45
  16. local difficulty2 = 6
  17. local hp2 = 110
  18. local power2 = 55
  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. SpawnSet(NPC, "visual_state", 12030)
  30. end
  31. function aggro(NPC,Spawn)
  32. SpawnSet(NPC, "visual_state", 0)
  33. end
  34. function hailed(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. end
  37. function respawn(NPC)
  38. spawn(NPC)
  39. end