MotleyMerchantManifest.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : ItemScripts/MotleyMerchantManifest.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.04 06:10:28
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheMotleyMerchantManifest = 5368 -- The Motley Merchant Manifest quest
  9. function examined(Item, Player)
  10. conversation = CreateConversation()
  11. AddConversationOption(conversation, "Open the book", "page1")
  12. AddConversationOption(conversation, "Put away the book.", "CloseItemConversation")
  13. StartDialogConversation(conversation, 2, Item, Player, "On the cover of the book is a symbol of an eye within a circle formed of open palmed hands. The book is written in an odd language, one you can't read, but that you have seen carved into tavern tables.")
  14. end
  15. function page1(Item, Player)
  16. conversation = CreateConversation()
  17. AddConversationOption(conversation, "Next page", "page2")
  18. AddConversationOption(conversation, "Close the book", "CloseItemConversation")
  19. StartDialogConversation(conversation, 2, Item, Player, "There is the symbol of a quill overlapping an ink jar, with various indiscernible letters, perhaps in different languages. A line is next to it where someone could provide a signature. Next to the signature line are the initials G.P.")
  20. end
  21. function page2(Item, Player)
  22. conversation = CreateConversation()
  23. AddConversationOption(conversation, "Next page", "page3")
  24. AddConversationOption(conversation, "Previous page", "page1")
  25. AddConversationOption(conversation, "Close the book", "CloseItemConversation")
  26. StartDialogConversation(conversation, 2, Item, Player, "There is the symbol of a trinket being passed from one hand to another. A line is next to it where someone could provide a signature. Next to the signature line are the initials P.B.")
  27. end
  28. function page3(Item, Player)
  29. conversation = CreateConversation()
  30. AddConversationOption(conversation, "Next page", "page4")
  31. AddConversationOption(conversation, "Previous page", "page2")
  32. AddConversationOption(conversation, "Close the book", "CloseItemConversation")
  33. StartDialogConversation(conversation, 2, Item, Player, "There is the symbol of a fish swimming out of a mug of ale. A line is next to it where someone could provide a signature. Next to the signature line are the initials K.I.")
  34. end
  35. function page4(Item, Player)
  36. conversation = CreateConversation()
  37. AddConversationOption(conversation, "Next page", "page5")
  38. AddConversationOption(conversation, "Previous page", "page3")
  39. AddConversationOption(conversation, "Close the book", "CloseItemConversation")
  40. StartDialogConversation(conversation, 2, Item, Player, "There is the symbol of a mermaid holding a stein. A line is next to it where someone could provide a signature. Next to the signature line are the initials B.M.")
  41. end
  42. function page5(Item, Player)
  43. if HasQuest(Player, TheMotleyMerchantManifest) and not QuestStepIsComplete(Player, TheMotleyMerchantManifest, 2) then
  44. SetStepComplete(Player, TheMotleyMerchantManifest, 2)
  45. end
  46. conversation = CreateConversation()
  47. AddConversationOption(conversation, "Previous page", "page4")
  48. AddConversationOption(conversation, "Close the book", "CloseItemConversation")
  49. StartDialogConversation(conversation, 2, Item, Player, "There is the symbol of dwarven warhammer inside a compass pointing eastward. A line is next to it where someone could provide a signature. Next to the signature line are the initials P.I.")
  50. end