9
3

AlypiaDamian.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/EastFreeport/AlypiaDamian.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.02 08:10:29
  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("Well, hello there. Aren't you the most precious thing! Want to see what I'm selling? I've many nice things that'd do wonders for your image, and my prices are very fair.")
  25. Dialog.AddVoiceover("voiceover/english/merchant_alypia_damian/fprt_east/mer_alpyiamanian.mp3", 2228325168, 2657189177)
  26. PlayFlavor(NPC,"","","hello",0,0,Spawn)
  27. Dialog.AddOption("I have pressing business elsewhere. Safe journeys to you.")
  28. if HasQuest(Spawn,5906) and GetQuestStep(Spawn,5906) == 3 then
  29. Dialog.AddOption("Have you been selling any type of foreign plant?", "Plant")
  30. end
  31. Dialog.AddOption("Can I think it over?", "Dialog2")
  32. Dialog.Start()
  33. end
  34. function Dialog2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. Dialog.New(NPC, Spawn)
  37. Dialog.AddDialog("Listen pal. I don't stand here all day for people to think about buying something. Either check out what I have to sell or move out of the way.")
  38. PlayFlavor(NPC,"","","tapfoot",0,0,Spawn)
  39. Dialog.AddVoiceover("voiceover/english/alypia_damian/fprt_east/mer_alpyiamanian000.mp3", 2608491411, 1675987239)
  40. Dialog.AddOption("What is wrong with you?", "Dialog3")
  41. Dialog.Start()
  42. end
  43. function Dialog3(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. Dialog.AddDialog("I've a lot to do, and I don't have time to waste on someone who can't make up their mind. So, please be a dear and go bother someone else.")
  47. PlayFlavor(NPC,"","","stare",0,0,Spawn)
  48. Dialog.AddVoiceover("voiceover/english/alypia_damian/fprt_east/mer_alpyiamanian001.mp3", 2481419509, 1914402501)
  49. Dialog.AddOption("Okay.")
  50. Dialog.Start()
  51. end
  52. function Plant(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. PlayFlavor(NPC, "","", "boggle", 0, 0, Spawn)
  56. Dialog.AddDialog("Foreign plant? Are you stupid? What the heck would I do with a foreign plant? This isn't Qeynos, fool. Now either buy something or quit wasting my time.")
  57. Dialog.AddVoiceover("voiceover/english/alypia_damian/fprt_east/mer_alpyiamanian002.mp3", 1012015884, 2934321566)
  58. Dialog.AddOption("Fine! Sorry.")
  59. Dialog.Start()
  60. end