adefiledsentry.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/Stormhold/adefiledsentry.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.04.10 02:04:00
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local MobLevel = GetLevel(NPC)
  10. if MobLevel == 16 then
  11. SpawnSet(NPC, "hp", 2176)
  12. SpawnSet(NPC, "power", 789)
  13. SpawnSet(NPC, "difficulty", 6)
  14. elseif MobLevel == 15 then
  15. SpawnSet(NPC, "hp", 3484)
  16. SpawnSet(NPC, "power", 1439)
  17. SpawnSet(NPC, "difficulty", 7)
  18. end
  19. -- MOMVEMENT
  20. if GetSpawnLocationID(NPC) == 133773062 then
  21. MovementLoopAddLocation(NPC, -22.86, 7.50, -18.39, 2, MakeRandomInt(16, 24))
  22. MovementLoopAddLocation(NPC, -21.02, 7.50, -19.67, 2, MakeRandomInt(16, 24))
  23. MovementLoopAddLocation(NPC, -20.68, 7.50, -11.40, 2, MakeRandomInt(16, 24))
  24. MovementLoopAddLocation(NPC, -22.09, 7.50, -11.39, 2, MakeRandomInt(16, 24))
  25. MovementLoopAddLocation(NPC, -23.90, 7.50, -20.92, 2, MakeRandomInt(16, 24))
  26. MovementLoopAddLocation(NPC, -22.06, 7.50, -22.99, 2, MakeRandomInt(16, 24))
  27. MovementLoopAddLocation(NPC, -24.01, 7.50, -22.09, 2, MakeRandomInt(16, 24))
  28. MovementLoopAddLocation(NPC, -21.92, 7.50, -14.94, 2, MakeRandomInt(16, 24))
  29. end
  30. end
  31. function hailed(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end