MalizTRaan.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/MalizTRaan.lua
  3. Script Purpose : Maliz T`Raan
  4. Script Author : torsten
  5. Script Date : 2022.07.19
  6. Script Notes :
  7. --]]
  8. local TakingitOutontheRaiders = 5678
  9. local ADramaticPerformance = 5679
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, TakingitOutontheRaiders)
  12. ProvidesQuest(NPC, ADramaticPerformance)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if not HasQuest(Spawn, TakingitOutontheRaiders) and not HasCompletedQuest(Spawn, TakingitOutontheRaiders) then
  19. OfferQuest(NPC, Spawn, TakingitOutontheRaiders)
  20. end
  21. if HasCompletedQuest(Spawn, TakingitOutontheRaiders) then
  22. if not HasQuest(Spawn, ADramaticPerformance) and not HasCompletedQuest(Spawn, ADramaticPerformance) then
  23. OfferQuest(NPC, Spawn, ADramaticPerformance)
  24. end
  25. end
  26. if GetQuestStep(Spawn, TakingitOutontheRaiders) == 2 then
  27. SetStepComplete(Spawn, TakingitOutontheRaiders, 2)
  28. end
  29. if GetQuestStep(Spawn, ADramaticPerformance) == 2 then
  30. SetStepComplete(Spawn, ADramaticPerformance, 2)
  31. end
  32. RandomGreeting(NPC, Spawn)
  33. end
  34. function RandomGreeting(NPC, Spawn)
  35. local choice = MakeRandomInt(1,1)
  36. if choice == 1 then
  37. PlayFlavor(NPC, "voiceover/english/optional1/maliz_t_raan/fprt_hood05/100_std_de_male_maliz_traan_callout_927f5c89.mp3", "Living in these slums is sickening! What do you want from me?", "", 1122076255, 1993662428, Spawn, 0)
  38. end
  39. end