9
3

ZelinaTVon.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/ZelinaTVon.lua
  3. Script Purpose : Zelina T`Von
  4. Script Author : torsten
  5. Script Date : 2022.07.18
  6. Script Notes :
  7. --]]
  8. local ASpecialPerfume = 5672
  9. local ForThatSpecialSomeone = 5673
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, ASpecialPerfume)
  12. ProvidesQuest(NPC, ForThatSpecialSomeone)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if not HasQuest(Spawn, ASpecialPerfume) and not HasCompletedQuest(Spawn, ASpecialPerfume) then
  19. OfferQuest(NPC, Spawn, ASpecialPerfume)
  20. end
  21. if HasCompletedQuest(Spawn, ASpecialPerfume) then
  22. if not HasQuest(Spawn, ForThatSpecialSomeone) and not HasCompletedQuest(Spawn, ForThatSpecialSomeone) then
  23. OfferQuest(NPC, Spawn, ForThatSpecialSomeone)
  24. end
  25. end
  26. if GetQuestStep(Spawn, ASpecialPerfume) == 2 then
  27. SetStepComplete(Spawn, ASpecialPerfume, 2)
  28. end
  29. if GetQuestStep(Spawn, ForThatSpecialSomeone) == 2 then
  30. SetStepComplete(Spawn, ForThatSpecialSomeone, 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/optional5/standard_dark_elf_female/fprt_hood05/quests/zelinatvon/pm_dztv_callout1_64.mp3", "That no-good, two-timing, imp ... I'll teach him to stare at that trollop! ...What? What do you want, you babbling fool?", "", 1206032882, 2859314838, Spawn, 0)
  38. end
  39. end