GhostofVhalen.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. function spawn(NPC)
  9. dmgMod = GetStr(NPC)/10
  10. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  11. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(65 + dmgMod))
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(105 + dmgMod))
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. PlayFlavor(NPC, "", "I stand vigilant to ring the bells in warning for the city of Qeynos.", "", 1689589577, 4560189, Spawn)
  17. end
  18. function aggro(NPC, Spawn)
  19. local random = MakeRandomInt(1, 3)
  20. if random == 1 then
  21. 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)
  22. elseif random == 2 then
  23. 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)
  24. else
  25. 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)
  26. end
  27. end
  28. function death(NPC, Spawn)
  29. 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
  30. , Spawn)
  31. end
  32. function respawn(NPC)
  33. spawn(NPC)
  34. end