9
3

asmalllifeleech.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/Stormhold/asmalllifeleech.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.04.10 02:04:59
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. end
  18. function spawn(NPC)
  19. local Level = GetLevel(NPC)
  20. if Level == 14 then
  21. SpawnSet(NPC, "hp", 2427)
  22. SpawnSet(NPC, "power", 1298)
  23. SpawnSet(NPC, "difficulty", 9)
  24. elseif Level == 15 then
  25. SpawnSet(NPC, "hp", 2800)
  26. SpawnSet(NPC, "power", 1400)
  27. end
  28. -- MOVEMENT
  29. if GetSpawnLocationID(NPC) == 415629 then
  30. MovementLoopAddLocation(NPC, -21.87, 7.50, -10.16, 2, MakeRandomInt(16, 24))
  31. MovementLoopAddLocation(NPC, -21.13, 7.50, -11.63, 2, MakeRandomInt(16, 24))
  32. MovementLoopAddLocation(NPC, -21.48, 7.50, -19.06, 2, MakeRandomInt(16, 24))
  33. MovementLoopAddLocation(NPC, -22.79, 7.50, -13.23, 2, MakeRandomInt(16, 24))
  34. MovementLoopAddLocation(NPC, -24.82, 7.50, -22.63, 2, MakeRandomInt(16, 24))
  35. MovementLoopAddLocation(NPC, -21.15, 7.50, -10.12, 2, MakeRandomInt(16, 24))
  36. MovementLoopAddLocation(NPC, -23.87, 7.50, -14.88, 2, MakeRandomInt(16, 24))
  37. MovementLoopAddLocation(NPC, -24.70, 7.50, -18.82, 2, MakeRandomInt(16, 24))
  38. end
  39. end