Geddard.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/antonica/Geddard.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.26 07:06:47
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local DeliveriesForFlores = 5333 -- Deliveries For Flores Quest
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. Dialog.New(NPC, Spawn)
  15. Dialog.AddDialog("Welcome to Gnollslayer Keep! I'm Geddard, the only merchant for leagues. If I don't got it, you don't need it! What'll it be for you today?")
  16. Dialog.AddVoiceover("voiceover/english/merchant_geddard/antonica/merchantgeddard000.mp3", 1542141863, 1883255955)
  17. if GetQuestStep(Spawn, DeliveriesForFlores) == 2 then
  18. Dialog.AddOption("I'm here to deliver a crate of supplies from Flores.", "Option1")
  19. end
  20. Dialog.AddOption("Nothing right now thanks.")
  21. Dialog.Start()
  22. end
  23. function Option1(NPC, Spawn)
  24. SetStepComplete(Spawn, DeliveriesForFlores, 2)
  25. FaceTarget(NPC, Spawn)
  26. Dialog.New(NPC, Spawn)
  27. Dialog.AddDialog("Why didn't you say so? Let me see what you've brought...excellent! I'll take that crate you're carrying. And here's the pouch for Flores. ")
  28. Dialog.AddVoiceover("voiceover/english/merchant_geddard/antonica/merchantgeddard001.mp3", 3026041322, 2122466947)
  29. PlayFlavor(NPC, "", "", "wink", 0, 0, Spawn)
  30. Dialog.AddOption("I will, take care! Good luck with your sales.")
  31. Dialog.Start()
  32. end
  33. function respawn(NPC)
  34. spawn(NPC)
  35. end