9
3

AundorSingingsword.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst/AundorSingingsword.lua
  3. Script Purpose : Aundor Singingsword
  4. Script Author : Dorbin
  5. Script Date : 5.2.2022
  6. Script Notes :
  7. --]]
  8. local BookDelivery = 5514
  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. PlayFlavor(NPC, "voiceover/english/aundor_singingsword/qey_adv01_oakmyst/aundorsingingsword000.mp3", "", "", 715745780, 1617277503, Spawn)
  18. if GetQuestStep(Spawn,BookDelivery)==2 then
  19. AddConversationOption(conversation, "Rune Starshimmer wanted me to deliver this book to you.","Delivery1")
  20. end
  21. AddConversationOption(conversation, "I'll keep that in mind, thanks.")
  22. StartConversation(conversation, NPC, Spawn, "The forest's blessing to you. It is a good day to practice sword play, is it not? ")
  23. end
  24. function Delivery1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. PlayFlavor(NPC, "voiceover/english/aundor_singingsword/qey_adv01_oakmyst/aundorsingingsword001.mp3", "", "ponder", 209447750, 500268709, Spawn)
  28. AddConversationOption(conversation, "A copy of Pelle's Adventures.", "Deliver2")
  29. StartConversation(conversation, NPC, Spawn, "And what book would this be, young one?")
  30. end
  31. function Deliver2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. PlayFlavor(NPC, "voiceover/english/aundor_singingsword/qey_adv01_oakmyst/aundorsingingsword002.mp3", "", "happy", 2949325286, 1344537433, Spawn)
  35. AddConversationOption(conversation, "I should really be getting back to Pelle...", "UpdateDeliveryFinal")
  36. StartConversation(conversation, NPC, Spawn, "Adventures?! Hehe, misdeeds is more like it! This should be quite amusing. Pelle's embellishment of history is nothing short of bombastic. Those among us who were there know what really happened. For example, when we came across that small encampment of orcs...")
  37. end
  38. function UpdateDeliveryFinal(NPC, Spawn)
  39. PlayFlavor(NPC, "", "", "chuckle", 0, 0, Spawn)
  40. SetStepComplete(Spawn,BookDelivery,2)
  41. end