AndersBlackhammer.lua 996 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/AndersBlackhammer.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.24 10:05:00
  5. Script Purpose :
  6. :
  7. --]]
  8. local CollectingOnWhatIsEarned = 423
  9. require "SpawnScripts/Generic/GenericVoiceOvers"
  10. function spawn(NPC)
  11. dmgMod = GetStr(NPC)/10
  12. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(45 + dmgMod))
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(85 + dmgMod))
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. GenericHail(NPC, Spawn)
  19. if HasQuest(Spawn, CollectingOnWhatIsEarned) then
  20. SetStepComplete(Spawn, CollectingOnWhatIsEarned, 1)
  21. PlayFlavor(NPC, "", "Brandus said to be expecting you. I'm supposed to pay you what you're due! Haha!!", "", 1689589577, 4560189, Spawn)
  22. Attack(NPC, Spawn)
  23. end
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end