aGruttoothlaborerIdle.lua 900 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothlaborerIdle.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.06 08:09:02
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 3
  11. local level2 = 4
  12. local difficulty1 = 6
  13. local hp1 = 75
  14. local power1 = 45
  15. local difficulty2 = 6
  16. local hp2 = 110
  17. local power2 = 55
  18. if Level == level1 then
  19. SpawnSet(NPC, "difficulty", difficulty1)
  20. SpawnSet(NPC, "hp", hp1)
  21. SpawnSet(NPC, "power", power1)
  22. elseif Level == level2
  23. then
  24. SpawnSet(NPC, "difficulty", difficulty2)
  25. SpawnSet(NPC, "hp", hp2)
  26. SpawnSet(NPC, "power", power2)
  27. end
  28. SpawnSet(NPC, "visual_state", 0)
  29. end
  30. function hailed(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. end
  33. function respawn(NPC)
  34. spawn(NPC)
  35. end