aparchednomad.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aparchednomad.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.17 07:05:51
  5. Script Purpose :
  6. :
  7. --]]
  8. local FarFromHome = 5223
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. if GetQuestStep(Spawn, FarFromHome) == 1 then
  14. local conversation = CreateConversation()
  15. AddConversationOption(conversation, "Very well, thank you. I might have something that could brighten your day out here under the hot sun.", "Option1")
  16. StartConversation(conversation, NPC, Spawn, "Sure is a hot one today. How do you fare, traveler?")
  17. else
  18. PlayFlavor(NPC, "", "Hello again! The water was wonderful, hit the spot.", "hail", 0, 0, Spawn)
  19. end
  20. end
  21. function Option1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. local conversation = CreateConversation()
  24. AddConversationOption(conversation, "Madam Vi sent me out from the Crossroads to find you. Here, have some water. You look thirsty.", "Option2")
  25. StartConversation(conversation, NPC, Spawn, "Oh really? What might that be?")
  26. end
  27. function Option2(NPC, Spawn)
  28. SetStepComplete(Spawn, FarFromHome, 1)
  29. FaceTarget(NPC, Spawn)
  30. local conversation = CreateConversation()
  31. AddConversationOption(conversation, "My pleasure.")
  32. StartConversation(conversation, NPC, Spawn, "Oh excellent! Just what the doctor ordered, so to speak. The others will appreciate this also. The Crossroads, you say? I think we can get word to her there. Thank you again for you kindness.")
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end