9
3

AnniaKaeso.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : SpawnScripts/SouthFreeport/AnniaKaeso.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.02 08:10:32
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. if GetFactionAmount(Spawn,12) >0 then
  16. Dialog1(NPC, Spawn)
  17. else
  18. PlayFlavor(NPC,"","","threaten",0,0,Spawn)
  19. end
  20. end
  21. function Dialog1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. Dialog.New(NPC, Spawn)
  24. Dialog.AddDialog("Hello. Hello. Welcome. You look out of place here in Freeport. Almost as if you were something blown in by the wind or swept ashore by the tide. No wait. It was that dream!")
  25. Dialog.AddVoiceover("voiceover/english/annia_kaeso/fprt_south/mer_anniakaeso.mp3", 3665529784, 3634349576)
  26. PlayFlavor(NPC,"","","smile",0,0,Spawn)
  27. if HasQuest(Spawn,5906) and GetQuestStep(Spawn,5906) == 3 then
  28. Dialog.AddOption("Have you been selling any type of foreign plant?", "Plant")
  29. end
  30. Dialog.AddOption("Thank you for your time. I must be going now.")
  31. Dialog.Start()
  32. end
  33. function Plant(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("I have these purple flowers that an adventurer brought to me from across the ocean, or so she claimed. I've sold a couple of them to some shady looking character. He seemed rather excited when he saw that I had them... I don't know if that helps.")
  37. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  38. Dialog.AddVoiceover("voiceover/english/armorsmith_annia_kaeso/fprt_south/mer_anniakaeso002.mp3", 678467425, 386573512)
  39. Dialog.AddOption("Do you remember who purchased them?", "Plant2")
  40. Dialog.Start()
  41. end
  42. function Plant2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("No, I don't. He had a very tired look in his eyes, and was a bit jumpy, but that's about it. He was wearing a cloak, so I don't even know what his race was. You can have one of these flowers if it helps.")
  46. PlayFlavor(NPC,"","","no",0,0,Spawn)
  47. Dialog.AddVoiceover("voiceover/english/armorsmith_annia_kaeso/fprt_south/mer_anniakaeso003.mp3", 955262143, 3659545208)
  48. Dialog.AddOption("I'll take one. Thank you.", "Plant2")
  49. Dialog.AddOption("You fool! This may be spreading disease throughout the city! Give it to me!", "Plant4")
  50. Dialog.Start()
  51. end
  52. function Plant3(NPC,Spawn)
  53. FaceTarget(NPC, Spawn)
  54. PlayFlavor(NPC,"","","thanks",0,0,Spawn)
  55. SetStepComplete(Spawn,5906,3)
  56. end
  57. function Plant4(NPC,Spawn)
  58. FaceTarget(NPC, Spawn)
  59. PlayFlavor(NPC,"","","cringe",0,0,Spawn)
  60. SetStepComplete(Spawn,5906,3)
  61. end