9
3

ATorturedMaid.lua 739 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/ATorturedMaid.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.01 09:06:00
  5. Script Purpose :
  6. :
  7. --]]
  8. local LionManeHelm = 5249
  9. function spawn(NPC)
  10. dmgMod = GetStr(NPC)/10
  11. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(55 + dmgMod))
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(95 + dmgMod))
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function death(NPC, Spawn)
  22. if HasCompletedQuest(Spawn, LionManeHelm) then
  23. RemoveLootItem(NPC, 3826)
  24. end
  25. end