GhostofVhalen.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/Antonica/GhostofVhalen.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.04.01 06:04:22
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. dmgMod = GetStr(NPC)/10
  11. Named(NPC)
  12. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(65 + dmgMod))
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(105 + dmgMod))
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. PlayFlavor(NPC, "", "I stand vigilant to ring the bells in warning for the city of Qeynos.", "", 1689589577, 4560189, Spawn)
  19. end
  20. function aggro(NPC, Spawn)
  21. local random = MakeRandomInt(1, 3)
  22. if random == 1 then
  23. PlayFlavor(NPC, "voiceover/english/ghost_base_1/ft/ghost/ghost_base_1_1_aggro_gm_3e2a680d.mp3", "You cannot run from death, mortal!", "", 3726501132, 2641272181, Spawn)
  24. elseif random == 2 then
  25. PlayFlavor(NPC, "voiceover/english/ghost_base_1/ft/ghost/ghost_base_1_1_aggro_gm_11cb6bf8.mp3", "Mortal agony is nothing compared to the torment that awaits you!", "", 2544751499, 3488336081, Spawn)
  26. else
  27. PlayFlavor(NPC, "voiceover/english/ghost_base_1/ft/ghost/ghost_base_1_1_aggro_gm_8a0dd99d.mp3", "I will show you the true pain of death!", "", 2563182730, 2699265972, Spawn)
  28. end
  29. end
  30. function death(NPC, Spawn)
  31. PlayFlavor(NPC, "voiceover/english/ghost_base_1/ft/ghost/ghost_base_1_1_death_gm_18bd9c56.mp3", "You will see us again in your nightmares!", "", 3496984483, 236189449
  32. , Spawn)
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end