9
3

TulliaDomna.lua 1007 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/TulliaDomna.lua
  3. Script Purpose : Tullia Domna
  4. Script Author : torsten
  5. Script Date : 2022.07.15
  6. Script Notes :
  7. --]]
  8. local AnErrandfortheQueen = 5650
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, AnErrandfortheQueen)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if not HasQuest(Spawn, AnErrandfortheQueen) and not HasCompletedQuest(Spawn, AnErrandfortheQueen) then
  17. OfferQuest(NPC, Spawn, AnErrandfortheQueen)
  18. end
  19. if GetQuestStep(Spawn, AnErrandfortheQueen) == 2 then
  20. SetStepComplete(Spawn, AnErrandfortheQueen, 2)
  21. end
  22. RandomGreeting(NPC, Spawn)
  23. end
  24. function RandomGreeting(NPC, Spawn)
  25. local choice = MakeRandomInt(1,1)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "voiceover/english/tullia_domna/fprt_hood04/100_std_tullia_domna_hum_f_callout1_77869ddd.mp3", "Come hither ... how can I, Queen Antonia Bayle, serve you?", "", 3532309135, 780107631, Spawn, 0)
  28. end
  29. end