bookcasewindstalker.lua 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. --[[
  2. Script Name : SpawnScripts/Antonica/bookcasewindstalker.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.04.15 08:04:39
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheLegendOfMotte = 5803 -- THE LEGEND OF MOTTE QUEST
  9. local TheHuntForTheWindstalkerRumbler = 5804 -- THE HUNT FOR THE WINDSTALKER RUMBLER QUEST
  10. function spawn(NPC)
  11. end
  12. function casted_on(NPC, Spawn, SpellName)
  13. if SpellName == 'inspect' then
  14. local con = CreateConversation()
  15. AddConversationOption(con, "\"The Case of the Windstalker Rumbler\"", "con1_1")
  16. AddConversationOption(con, "\"The Legend of Motte\"", "con2_1")
  17. AddConversationOption(con, "Stop browsing")
  18. StartDialogConversation(con, 1, NPC, Spawn, "The bookcase is made of weathered oak. There are a lot of old books upon its shelves. Most of these books haven't been moved in decades.")
  19. end
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end
  24. ------- THE HUNT FOR THE WINDSTALKER SCRIPT PART
  25. function con1_1(NPC, Spawn)
  26. local con = CreateConversation()
  27. AddConversationOption(con, "Next page", "con1_2")
  28. AddConversationOption(con, "Close the book")
  29. StartDialogConversation(con, 1, NPC, Spawn, "\"The Case of the Windstalker Rumbler\" by Varlone Redrick. The countryside of Antonica has long been known for its tranquil majesty. The rolling hills and stunning coastal seascapes, but once every season have inspired many of poets or so this tranquility is interrupted by the quaking of the ground and the appearance of a ravenous beast known for ages as the Windstalker Rumbler.")
  30. end
  31. function con1_2(NPC, Spawn)
  32. local con = CreateConversation()
  33. AddConversationOption(con, "Next page", "offer")
  34. AddConversationOption(con, "Previous page", "con1_1")
  35. AddConversationOption(con, "Close the book")
  36. StartDialogConversation(con, 1, NPC, Spawn, "The Windstalker Rumbler has been appearing in the Qeynos Hills territory since the end of the Age of War. It is rumored to have been a curse placed upon the land by the god of the subterranean realms, Brell Serilis. The beast has been known to swallow livestock whole, and on some unfortunate occasions... Antonicans. One recent account places Marlea Sayer as a victim of the beast. The tale places her in the tunnel of the Dragon Maw Ridge, attempting to reach the north Antonica in timely fashion rather than navigate around the ridge. It is in this darkness that the Windstalker Rumbler would swallow her whole. It would take an army to stop such a beast.")
  37. end
  38. function offer(NPC, Spawn)
  39. if CanReceiveQuest(Spawn, TheHuntForTheWindstalkerRumbler) then
  40. OfferQuest(NPC, Spawn, TheHuntForTheWindstalkerRumbler)
  41. end
  42. end
  43. ----- THE LEGEND OF MOTTE SCRIPT PART
  44. function con2_1(NPC, Spawn)
  45. local con = CreateConversation()
  46. AddConversationOption(con, "Next page", "con2_2")
  47. AddConversationOption(con, "Close the book")
  48. StartDialogConversation(con, 1, NPC, Spawn, "\"The Legend of Motte\" by Vhalen of the plains. Friend of Motte listen well all you creatures of glory. Listen well to the tale of Motte. Motte was a warrior brave and true. Motte was a warrior bound to bring those traveling beside plenty of gloom. His luck was unsure. His directions misguided. He begins journeys safe. He turns them unsafe.")
  49. end
  50. function con2_2(NPC, Spawn)
  51. local con = CreateConversation()
  52. AddConversationOption(con, "Next page", "con2_3")
  53. AddConversationOption(con, "Previous page", "con2_1")
  54. AddConversationOption(con, "Close the book")
  55. StartDialogConversation(con, 1, NPC, Spawn, "Motte had faced perils in the mines of Highkeep. He faced them with his allies who tried their best. Tried to keep Motte from reliving action of Unrest. Many a time in places of crossed swords. Many a time did Motte call forth the hordes. His skill with his sword was matched with misfortune, but one season came when in the hills of Qeynos his days would be done.")
  56. end
  57. function con2_3(NPC, Spawn)
  58. local con = CreateConversation()
  59. AddConversationOption(con, "Next page", "con2_4")
  60. AddConversationOption(con, "Previous page", "con2_2")
  61. AddConversationOption(con, "Close the book")
  62. StartDialogConversation(con, 1, NPC, Spawn, "There upon the roads did mighty Motte run. All the while when his friends were in taverns filled with much fun. Traveling alone, crossing the stream. Motte came upon a road in ravine. Onward he marched fearless and brave. Onward he marched to meet the many evil knave. Trapped fore and aft and nowhere to flee. Motte fought valiantly against highwaymen and only death could he see.")
  63. end
  64. function con2_4(NPC, Spawn)
  65. if CanReceiveQuest(Spawn, TheLegendOfMotte) then
  66. OfferQuest(NPC, Spawn, TheLegendOfMotte)
  67. end
  68. local con = CreateConversation()
  69. if GetQuestStep(Spawn, TheLegendOfMotte) == 2 or GetQuestStep(Spawn, TheLegendOfMotte) == 3 or HasCompletedQuest(Spawn, TheLegendOfMotte) then
  70. AddConversationOption(con, "Next page", "con2_5")
  71. end
  72. AddConversationOption(con, "Previous page", "con2_3")
  73. AddConversationOption(con, "Close the book")
  74. StartDialogConversation(con, 1, NPC, Spawn, "Motte has passed on, but his spirit is without rest. Only the trotters of now can be put to the test. Seek out his slayers in this tale of old. Send them to grave in, graves of tenfold. His spirit will be free and the saviors will see. Will see that this book has much to offer, an offer that is key.")
  75. end
  76. function con2_5(NPC, Spawn)
  77. if GetQuestStep(Spawn, TheLegendOfMotte) == 2 then
  78. SetStepComplete(Spawn, TheLegendOfMotte, 2)
  79. end
  80. local con = CreateConversation()
  81. AddConversationOption(con, "Previous page", "con2_4")
  82. AddConversationOption(con, "Close the book")
  83. StartDialogConversation(con, 1, NPC, Spawn, "This page was not here before! There are no words on the pages... only a key. The Key reads, \"Tombstone\"")
  84. end