9
3

NavariusOrvalis.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/NorthFreeport/NavariusOrvalis.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.07.01 01:07:58
  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 HasQuest(Spawn,5865) and GetQuestStepProgress(Spawn,5865,3) ==0 then --FREEPORT OPPORTUNITY
  16. SetStepComplete(Spawn,5865,3)
  17. end
  18. Dialog1(NPC, Spawn)
  19. end
  20. function Dialog1(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. Dialog.New(NPC, Spawn)
  23. Dialog.AddDialog("Search for the relics of the past Age of Turmoil. Their discovery will gain you great power and prestige!")
  24. if HasQuest(Spawn,5906) and GetQuestStep(Spawn,5906) == 3 then
  25. Dialog.AddOption("Have you been selling any type of foreign plant?", "Plant")
  26. end
  27. Dialog.AddOption("Thanks for the information, I just might do that.")
  28. Dialog.Start()
  29. end
  30. function Plant(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. PlayFlavor(NPC, "","", "stare", 0, 0, Spawn)
  34. Dialog.AddDialog("Look around. What do you see? Plants?... No. I have no plants for you - only knowledge.")
  35. Dialog.AddOption("Fine! Sorry.")
  36. Dialog.Start()
  37. end