SparringPartners.lua 687 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/aformidablesparringpartner.lua
  3. Script Purpose : a formidable sparring partner
  4. Script Author : John Adams
  5. Script Date : 2008.09.20
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  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 CombatReset(NPC)
  17. local hp = GetMaxHP(NPC) * 0.10
  18. SetHP(NPC, hp)
  19. end
  20. function healthchanged(NPC, Spawn)
  21. local lowhp = GetHP(NPC)
  22. if lowhp <= 15 then
  23. Runback(NPC)
  24. SetInCombat(NPC, false)
  25. ClearHate(NPC)
  26. ClearEncounter(NPC)
  27. end
  28. end