TorligtheAlchemist.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/NorthFreeport/TorligtheAlchemist.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.19 01:06:20
  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. Dialog1(NPC, Spawn)
  16. end
  17. function Dialog1(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. Dialog.New(NPC, Spawn)
  20. Dialog.AddDialog("Shhhh! Don't distract me ... I need a steady hand to ensure I combine this potion correctly. One mistake and the blast will reduce this building to rubble. Deal with my apprentices if you want to buy something.")
  21. Dialog.AddVoiceover("voiceover/english/torlig_the_alchemist/fprt_north/torlig_the_alchemist.mp3", 4161370754, 1751042550)
  22. if HasQuest(Spawn,5906) and GetQuestStep(Spawn,5906) == 3 then
  23. Dialog.AddOption("Have you been selling any type of foreign plant?", "Plant")
  24. end
  25. Dialog.AddOption("Fine then, I will leave you to your perfumes and snake oils.")
  26. Dialog.Start()
  27. end
  28. function Plant(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. PlayFlavor(NPC, "","", "boggle", 0, 0, Spawn)
  32. 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.")
  33. Dialog.AddVoiceover("voiceover/english/torlig_the_alchemist/fprt_north/quests/proctorfergus/torlig_fergus_x1_initial.mp3", 3361820512, 517804863)
  34. Dialog.AddOption("Alright. Sorry to bother you.")
  35. Dialog.Start()
  36. end