DyerthShiraz.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard/DyerthShiraz.lua
  3. Script Purpose : Dyerth Shiraz
  4. Script Author : torsten
  5. Script Date : 2022.07.23
  6. Script Notes :
  7. --]]
  8. local TastyTearsoftheThralls = 5695
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, TastyTearsoftheThralls)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if HasLanguage(Spawn, 12) then --Sebilsian
  17. if not HasQuest(Spawn, TastyTearsoftheThralls) and not HasCompletedQuest(Spawn, TastyTearsoftheThralls) then
  18. OfferQuest(NPC, Spawn, TastyTearsoftheThralls)
  19. end
  20. if GetQuestStep(Spawn, TastyTearsoftheThralls) == 2 then
  21. SetStepComplete(Spawn, TastyTearsoftheThralls, 2)
  22. end
  23. end
  24. RandomGreeting(NPC, Spawn)
  25. end
  26. function RandomGreeting(NPC, Spawn)
  27. local choice = MakeRandomInt(1,8)
  28. if choice == 1 then
  29. PlayFlavor(NPC, "voiceover/english/dyreth_shiraz/fprt_hood06/std_iks_m_dyerth_shiraz_multhail3_577c322.mp3", "What? No orc tears? I cannot drink this poor excuse for a brew! My taste buds depend on those tears! Hurry up!\r\n\r\n ", "", 4039158886, 765346728, Spawn, 12)
  30. elseif choice == 2 then
  31. PlayFlavor(NPC, "voiceover/english/optional2/iksar_eco_evil_1/ft/iksar/iksar_eco_evil_1_hail_gf_1d6c587a.mp3", "Consequences are insignificant compared to how much power one can grasp.", "swear", 725277130, 442283069, Spawn, 12)
  32. elseif choice == 3 then
  33. PlayFlavor(NPC, "voiceover/english/optional2/iksar_eco_evil_1/ft/iksar/iksar_eco_evil_1_hail_gf_aee44902.mp3", "The slash of a whip is a good way to get one's attention.", "scold", 1454622396, 2157938475, Spawn, 12)
  34. elseif choice == 4 then
  35. PlayFlavor(NPC, "voiceover/english/optional2/iksar_eco_evil_1/ft/iksar/iksar_eco_evil_1_hail_gf_31190c6b.mp3", "Many things can happen. Pray that I'm not one of them.", "tapfoot", 719531656, 2014590208, Spawn, 12)
  36. elseif choice == 5 then
  37. PlayFlavor(NPC, "voiceover/english/optional2/iksar_eco_evil_1/ft/iksar/iksar_eco_evil_1_hail_gf_f01f193d.mp3", "Forgiveness is the first sign of weakness.", "wince", 1541815345, 3425736193, Spawn, 12)
  38. elseif choice == 6 then
  39. PlayFlavor(NPC, "voiceover/english/dyreth_shiraz/fprt_hood06/std_iks_m_dyerth_shiraz_multhail1_1b9b852b.mp3", "Bah! This ale tastes like asp venom! Those fool barbarians drink anything! Leave me alone ... this nasty drink brings out my ugly side.", "", 2838268665, 2362531552, Spawn, 12)
  40. elseif choice == 7 then
  41. PlayFlavor(NPC, "voiceover/english/optional2/iksar_eco_evil_1/ft/iksar/iksar_eco_evil_1_hail_gf_9f30f326.mp3", "I have found fear is always a good motivator.", "nod", 968054609, 542822567, Spawn, 12)
  42. elseif choice == 8 then
  43. PlayFlavor(NPC, "voiceover/english/optional2/iksar_eco_evil_1/ft/iksar/iksar_eco_evil_1_hail_gf_f69ccf4.mp3", "Now that Cazic is gone, we are all that's left to fear.", "glare", 201991256, 2703372070, Spawn, 12)
  44. end
  45. end