LucanicKnightInitiate.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/LucanicKnightInitiate.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.30 07:05:45
  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(55 + dmgMod))
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(95 + dmgMod))
  13. AddTimer(NPC, 3200, "call", "", Spawn)
  14. SetAggroRadius(NPC, 20)
  15. end
  16. function call(NPC, Spawn)
  17. PlayFlavor(NPC, "voiceover/english/lucanic_knight_initiate/commonlands/quest/019_quest_lucanic_knight_initiate_shoutout_4eabbb23.mp3", "This time there will be no escape! Your kind is extinct and you will join them soon!", "", 135976742, 4023420058, Spawn)
  18. end
  19. function attacked(NPC, Spawn)
  20. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_a30c4f9d.mp3", "To Arms!", "", 1238020980, 748146443, Spawn)
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end