MasterRysianGladewalker.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/MasterRysianGladewalker.lua
  3. Script Purpose : Master Rysian Gladewalker
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Added quest dialogue - 2022.05.10 Dorbin
  7. --]]
  8. local report = 5531
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. if GetFactionAmount(Spawn, 11) <0 then
  18. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  19. else
  20. PlayFlavor(NPC, "voiceover/english/optional1/master_rysian_gladewalker/qey_elddar/masterrysiangladewalker.mp3", "", "", 1008244051, 2607567948, Spawn)
  21. if GetQuestStep(Spawn,report)==1 then
  22. AddConversationOption(conversation, "Aye, Pathfinder Oakheart bid me deliver this report to you.", "Report")
  23. end
  24. AddConversationOption(conversation, "No, I'm sorry you must have me confused with someone else.", "dlg_16_1")
  25. StartConversation(conversation, NPC, Spawn, "Well met, friend! Do you have business with our guild?")
  26. end
  27. end
  28. function Report(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn)
  31. local conversation = CreateConversation()
  32. AddConversationOption(conversation, "Gladly. I'll see he gets the message.", "FinishQuest")
  33. StartConversation(conversation, NPC, Spawn, "His daily perimeter report, I presume? Good, I've been waiting on this. Please inform Oakheart that I've received the report and will look forward to the next.")
  34. end
  35. function FinishQuest(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. SetStepComplete(Spawn,report, 1)
  38. end