9
3

aBloodsaberadept.lua 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/VerminsSnye/aBloodsaberadept.lua
  3. Script Purpose : Brawler Bently Dialog
  4. Script Author : premierio015
  5. Script Date : 03.05.2020
  6. Script Notes :
  7. --]]
  8. function spawn(NPC, Spawn)
  9. local Level = GetLevel(NPC)
  10. local level1 =13
  11. local level2 = 14
  12. local difficulty1 = 9
  13. local hp1 = 2360
  14. local power1 = 1085
  15. local difficulty2 = 9
  16. local hp2 = 2730
  17. local power2 = 1205
  18. if Level == level1 then
  19. SpawnSet(NPC, "difficulty", difficulty1)
  20. SpawnSet(NPC, "hp", hp1)
  21. SpawnSet(NPC, "power", power1)
  22. elseif Level == level2
  23. then
  24. SpawnSet(NPC, "difficulty", difficulty2)
  25. SpawnSet(NPC, "hp", hp2)
  26. SpawnSet(NPC, "power", power2)
  27. end
  28. end
  29. function respawn(NPC, Spawn)
  30. spawn(NPC, Spawn)
  31. end
  32. function hailed(NPC, Spawn)
  33. end
  34. function aggro(NPC, Spawn)
  35. local chance = math.random(1, 100)
  36. if chance <= 10 then
  37. if GetRace(NPC) == 9 and GetGender(NPC) == 2 then
  38. local choice = math.random(1, 2)
  39. if choice == 1 then
  40. PlayFlavor(NPC, "voiceover/english/optional3/human_bloodsabers/ft/human/human_bloodsabers_1_aggro_gf_34e0cc80.mp3", "Who are you?", "", 1390873745, 3670437167, Spawn)
  41. else
  42. PlayFlavor(NPC, "voiceover/english/optional3/human_bloodsabers/ft/human/human_bloodsabers_1_aggro_gf_b58ea818.mp3", "If they report back to the city, we're finished!", "", 2515206723, 1526385385, Spawn)
  43. end
  44. elseif GetRace(NPC) == 9 and GetGender(NPC) == 1 then
  45. local choice = math.random(1, 3)
  46. if choice == 1 then
  47. PlayFlavor(NPC, "voiceover/english/optional5/human_bloodsabers/ft/human/human_bloodsabers_2_aggro_gm_75242b00.mp3", "Don't waste any time. Kill them!", "", 1825576990, 2935601811, Spawn)
  48. elseif choice == 2 then
  49. PlayFlavor(NPC, "voiceover/english/optional5/human_bloodsabers/ft/human/human_bloodsabers_2_aggro_gm_34e0cc80.mp3", "Who are you?", "", 3726566794, 1486103830, Spawn)
  50. else
  51. PlayFlavor(NPC, "voiceover/english/optional5/human_bloodsabers/ft/human/human_bloodsabers_1_death_gm_e0b836af.mp3", "Stand your ground! You're just as dead if you leave.", "", 1931847018, 4291802023, Spawn)
  52. end
  53. elseif GetRace(NPC) == 1 and GetGender(NPC) == 2 then
  54. local choice = math.random(1, 6)
  55. if choice == 1 then
  56. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_2/ft/darkelf/darkelf_base_2_1_aggro_gf_ded507db.mp3", "More intruders to deal with? Stop them!", "", 338410258, 2808797910, Spawn)
  57. elseif choice == 2 then
  58. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_2/ft/darkelf/darkelf_base_2_1_aggro_gf_fb890c79.mp3", "I have no time for meddlers. Destroy them!", "", 1947039155, 2094447273, Spawn)
  59. elseif choice == 3 then
  60. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_2/ft/darkelf/darkelf_base_2_1_aggro_gf_8e7390a8.mp3", "Welcome to torment and destruction!", "", 3770648926, 2897017212, Spawn)
  61. elseif choice == 4 then
  62. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_1_aggro_gf_beacbb30.mp3", "I hope you put your affairs in order.", "", 4241642069, 3957487704, Spawn)
  63. elseif choice == 5 then
  64. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_2_aggro_gf_fe18133.mp3", "Look what strolled into the spider's web!", "", 2639788240, 46489616, Spawn)
  65. else
  66. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_2_aggro_gf_10fd87eb.mp3", "There is no escape for you now!", "", 3743520097, 2328340147, Spawn)
  67. end
  68. elseif GetRace(NPC) == 1 and GetGender(NPC) == 1 then
  69. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_3_aggro_gm_beacbb30.mp3", "I hope you put your affairs in order.", "", 3784715901, 3120155333, Spawn)
  70. end
  71. end
  72. end