RuneShimmerstar.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/RuneShimmerstar.lua
  3. Script Purpose : Rune Shimmerstar
  4. Script Author : Dorbin
  5. Script Date : 5.2.2022
  6. Script Notes :
  7. --]]
  8. local BookDelivery = 5514
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. PlayFlavor(NPC, "voiceover/english/rune_shimmerstar/qey_south/runeshimmerstar000.mp3", "", "", 3137838652, 2088519153, Spawn)
  23. if GetQuestStep(Spawn,BookDelivery)==1 then
  24. AddConversationOption(conversation, "I'm delivering a book from Pelle Shinkicker.", "Deliver")
  25. end
  26. AddConversationOption(conversation, "I'm just admiring the architecture. ", "dlg_23_1")
  27. StartConversation(conversation, NPC, Spawn, "What brings you to the Three Towers? Study of the arcane arts broadens your understanding of the world we live in. You would do well to remember this.")
  28. end
  29. function Deliver(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. PlayFlavor(NPC, "voiceover/english/rune_shimmerstar/qey_south/runeshimmerstar001.mp3", "", "ponder", 2720305127, 2241418775, Spawn)
  33. AddConversationOption(conversation, "Do I have a choice?", "Deliver2")
  34. StartConversation(conversation, NPC, Spawn, "Oh, well its about time he sent it. I've been waiting forever! Its a chronical of his ill spent youth, though I mean his adventures. And long overdue for a binding spell to preserve the pages! Will you wait just a moment?")
  35. end
  36. function Deliver2(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. PlayFlavor(NPC, "voiceover/english/rune_shimmerstar/qey_south/runeshimmerstar002.mp3", "", "cast_priest_buff_02", 3768797080, 679576921, Spawn)
  40. AddConversationOption(conversation, "Were you part of Pelle's adventures?","UpdateDelivery")
  41. AddConversationOption(conversation, "What? Fine. I'll deliver this copy too.","UpdateDeliveryFinal")
  42. StartConversation(conversation, NPC, Spawn, "Choice implies that the universe's deterministic forces are balanced in harmony with volitional conciousness. But that means nothing to you, of course! I will finish the enchantment on this book and conjure it's magical duplicate. There! Now, before you return the book to Pelle, I need you to take this copy to Aundor Singingsword. You will find him near the waterfall in the Oakmyst Forest.")
  43. end
  44. function UpdateDelivery(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. PlayFlavor(NPC, "voiceover/english/rune_shimmerstar/qey_south/runeshimmerstar003.mp3", "", "", 1815098310, 4154335364, Spawn)
  48. AddConversationOption(conversation, "Thanks. I'll take this book to him.","UpdateDeliveryFinal")
  49. StartConversation(conversation, NPC, Spawn, "Oh so you've heard of us! I'm more than a tower-bound scholar you know. Aundor Singingsword was fierce with a blade, and we were the best of friends. Steer clear of his blade!")
  50. end
  51. function UpdateDeliveryFinal(NPC, Spawn)
  52. SetStepComplete(Spawn,BookDelivery,1)
  53. end