TheJournaloftheSunWolf.lua 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : ItemScripts/TheJournaloftheSunWolf.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.24 01:05:51
  5. Script Purpose :
  6. :
  7. --]]
  8. local SunWolf = 5559
  9. function examined(Item, Player)
  10. conversation = CreateConversation()
  11. AddConversationOption(conversation, "Open the journal.","Page1")
  12. AddConversationOption(conversation, "Put the journal away.","CloseItemConversation")
  13. StartDialogConversation(conversation, 2, Item, Player, "The journal is damp and weather worn. The title and author's name have been blurred beyond recognition. A lock that once bound it shut has rusted and corroded now allowing entry into the secrets within.")
  14. end
  15. function Page1(Item, Player)
  16. conversation = CreateConversation()
  17. AddConversationOption(conversation, "Turn to the next entry.","Page2")
  18. AddConversationOption(conversation, "Put the journal away.","CloseItemConversation")
  19. StartDialogConversation(conversation, 2, Item, Player, "...many tales of this mythical creature. It has been sighted since the Age of Turm…the southern border of the great Jaggedpine Forest...many sought the magical properties bound to the majestic coat of the Sun... slain him while he sit and sip from a spiraling brook, something he could only do in corporeal form. It was at…was taken to the city...where it was sold to a family of aristocrats...")
  20. end
  21. function Page2(Item, Player)
  22. conversation = CreateConversation()
  23. AddConversationOption(conversation, "Turn to the next entry.","Page3")
  24. AddConversationOption(conversation, "Turn back to previous entry.","Page1")
  25. AddConversationOption(conversation, "Put the journal away.","CloseItemConversation")
  26. StartDialogConversation(conversation, 2, Item, Player, "...has been a personal quest to discover the truth...Sun Wolf as most woodsman of old have called it. Tales now place this beast...is difficult to believe such a beast stalks so closely to the hold of valor, but... Will now visit the places within the Peat Bog rumored to be frequented be ...although he may have lost his ... he is bound to the city now …")
  27. end
  28. function Page3(Item, Player)
  29. conversation = CreateConversation()
  30. AddConversationOption(conversation, "Turn to the next entry.","Page4")
  31. AddConversationOption(conversation, "Turn back to previous entry.","Page2")
  32. AddConversationOption(conversation, "Put the journal away.","CloseItemConversation")
  33. StartDialogConversation(conversation, 2, Item, Player, "...has been sighted by the great outlet leading from the city. This drainage point is what keeps this place in its boggy state. Why the Sun Wolf has been seen howling at these bars is a mystery bound to the citizens of Qeynos. Perhaps it is within the walls of the city that a piece of this creature still calls to him. Perhaps the tales of... a golden fur cape... such an item would be quite rare and quite...")
  34. end
  35. function Page4(Item, Player)
  36. conversation = CreateConversation()
  37. AddConversationOption(conversation, "Turn to the next entry.","Page5")
  38. AddConversationOption(conversation, "Turn back to previous entry.","Page3")
  39. AddConversationOption(conversation, "Put the journal away.","CloseItemConversation")
  40. StartDialogConversation(conversation, 2, Item, Player, "...recalling what it means to thirst the Sun Wolf...the pond within the center of the bog offers little along the lines of purified water, but to a creature that truly neither breathes nor thirsts...lurking within the safety of the hollowed ... materializing into a much more whole form to arch forward and sip from…here he was in front of me not more than…from the darkness he tared with piercing eyes...")
  41. end
  42. function Page5(Item, Player)
  43. conversation = CreateConversation()
  44. AddConversationOption(conversation, "Turn to the next entry.","Page6")
  45. AddConversationOption(conversation, "Turn back to previous entry.","Page4")
  46. AddConversationOption(conversation, "Put the journal away.","CloseItemConversation")
  47. StartDialogConversation(conversation, 2, Item, Player, "I followed...the rain pelted the already soaked land with great ferocity…there by the trees they call the firing squad… was sniffing about the hollowed...it was husk on the end that offered the Sun Wolf...would a mythical beast need shelter for?...")
  48. end
  49. function Page6(Item, Player)
  50. conversation = CreateConversation()
  51. if not HasQuest(Player,SunWolf) and not HasCompletedQuest(Player,Sunwolf)then
  52. AddConversationOption(conversation, "Attempt to determine the path of the Sun Wolf.","QuestStart")
  53. end
  54. AddConversationOption(conversation, "Turn back to previous entry.","Page5")
  55. AddConversationOption(conversation, "Put the journal away.","CloseItemConversation")
  56. StartDialogConversation(conversation, 2, Item, Player, "...the final encounter... I tracked the wolf to the lone stump ring. He exited, lurking out of the ring and into a niche between the ancient bark and stone. I followed the ... Finally we met face to face! The great wolf displayed his deadly fangs...I ran...amazingly I escaped, or did the Sun Wolf let me go?...")
  57. end
  58. function QuestStart(Item,Player)
  59. CloseItemConversation(Item,Player)
  60. OfferQuest(nil, Player, SunWolf)
  61. end