9
3

SparringPartners.lua 699 B

1234567891011121314151617181920212223242526272829303132333435
  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 healthchanged(NPC, Spawn)
  17. local hp_percent = GetPCTOfHP(NPC, pctHealMin)
  18. if hp_percent <= 0.50
  19. if spoke == true then
  20. Runback(NPC)
  21. SetInCombat(NPC, false)
  22. ClearHate(NPC)
  23. ClearEncounter(NPC)
  24. SetHP(NPC, GetPCTofHP(NPC, pctHealMin))
  25. end
  26. end
  27. end