9
3

MarianaDarkleaf.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/MarianaDarkleaf.lua
  3. Script Purpose : Mariana Darkleaf
  4. Script Author : torsten
  5. Script Date : 2022.07.17
  6. Script Notes :
  7. --]]
  8. local ToSpiteaDarkleaf = 5665
  9. local RunningForACandidate = 5666
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, ToSpiteaDarkleaf)
  12. ProvidesQuest(NPC, RunningForACandidate)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if HasLanguage(Spawn, 7) then
  19. if not HasQuest(Spawn, ToSpiteaDarkleaf) and not HasCompletedQuest(Spawn, ToSpiteaDarkleaf) then
  20. OfferQuest(NPC, Spawn, ToSpiteaDarkleaf)
  21. end
  22. if HasCompletedQuest(Spawn, ToSpiteaDarkleaf) then
  23. if not HasQuest(Spawn, RunningForACandidate) and not HasCompletedQuest(Spawn, RunningForACandidate) then
  24. OfferQuest(NPC, Spawn, RunningForACandidate)
  25. end
  26. end
  27. end
  28. if GetQuestStep(Spawn, ToSpiteaDarkleaf) == 2 then
  29. SetStepComplete(Spawn, ToSpiteaDarkleaf, 2)
  30. end
  31. if GetQuestStep(Spawn, RunningForACandidate) == 2 then
  32. SetStepComplete(Spawn, RunningForACandidate, 2)
  33. end
  34. RandomGreeting(NPC, Spawn)
  35. end
  36. function RandomGreeting(NPC, Spawn)
  37. local choice = MakeRandomInt(1,4)
  38. if choice == 1 then
  39. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_2/ft/halfelf/halfelf_base_2_1_garbled_gf_c175ec10.mp3", "people call me a half elf im really a three quarter elf", "", 1655768806, 1430035197, Spawn, 7)
  40. elseif choice == 2 then
  41. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_2/ft/halfelf/halfelf_base_2_1_garbled_gf_84555678.mp3", "half is better than nothing", "", 1222734846, 1658567854, Spawn, 7)
  42. elseif choice == 3 then
  43. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_2/ft/halfelf/halfelf_base_2_1_garbled_gf_feb1d2e4.mp3", "i am a half helf and im rude", "", 1628841617, 2548194304, Spawn, 7)
  44. elseif choice == 4 then
  45. PlayFlavor(NPC, "voiceover/english/mariana_darkleaf/fprt_hood04/100_std_mariana_darkleaf_elf_f_callout1_3a667a53.mp3", "Elowyn is a treat for the eyes ... and even better, he's as handsome as he is stupid ...\t\r\n\r\n", "", 578977669, 3350940430, Spawn, 7)
  46. end
  47. end