ParchmentScrapLaena.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. local TheTunarianPlot = 491
  2. function examined(Item, Player)
  3. if not HasQuest(Player, TheTunarianPlot) and not HasCompletedQuest(Player, TheTunarianPlot) then
  4. OfferQuest(nil, Player, TheTunarianPlot)
  5. end
  6. local con = CreateConversation()
  7. if HasQuest(Player, TheTunarianPlot) then
  8. AddConversationOption(con, "Examine the parchment.", "Examine")
  9. if HasQuest(Player,TheTunarianPlot) and GetQuestStep(Player, TheTunarianPlot) == 2 then
  10. AddConversationOption(con, "Put together the parchment pieces.", "PutTogether")
  11. elseif GetQuestStep(Player, TheTunarianPlot) == 4 then
  12. AddConversationOption(con, "Re-examine the parchment scraps.", "PieceTogether")
  13. end
  14. AddConversationOption(con, "Put the parchment away.", "CloseItemConversation")
  15. StartDialogConversation(con, 2, Item, Player, "The edges of the parchment are torn and jagged as though ripped from a much larger document.")
  16. end
  17. end
  18. function PutTogether(Item, Player)
  19. SetStepComplete(Player, TheTunarianPlot, 2)
  20. local con = CreateConversation()
  21. AddConversationOption(con, "Roll the parchment up.", "RollUp")
  22. StartDialogConversation(con, 2, Item, Player, "The parchment looks familiar and you realize it's part of the same note Charles Arker had asked you to track down. You remember the words on the other piece which, together with this one, spell the message: ''The horse sentries will ... that we can eliminate the wilderbears ...'' Odd. Why would the Tunarians want to eliminate the wilderbears themselves? Perhaps its time to take down a few more Tunarians and find out what they know!")
  23. end
  24. function PieceTogether(Item, Player)
  25. SetStepComplete(Player, TheTunarianPlot, 4)
  26. local con = CreateConversation()
  27. AddConversationOption(con, "Roll the parchment up.", "RollUp")
  28. StartDialogConversation(con, 2, Item, Player, "The note says: ''The horse sentries will prove difficult to avoid. I hope that we can eliminate the wilderbears ... Charles...'' It looks like Charles Arker has some explaining to do. You aren't sure whether he's betraying the trust of the Overlord, or if this note indicates something much simpler.")
  29. end
  30. function Examine (Item, Player)
  31. local con = CreateConversation()
  32. AddConversationOption(con, "Roll the parchment up.", "RollUp")
  33. StartDialogConversation(con, 2, Item, Player, "The parchment looks familiar and you realize it's part of the same note Charles Arker had asked you to track down. You remember the words on the other piece which, together with this one, spell the message: ''The horse sentries will ... that we can eliminate the wilderbears ...'' Odd. Why would the Tunarians want to eliminate the wilderbears themselves? Perhaps its time to take down a few more Tunarians and find out what they know!")
  34. end
  35. function RollUp (Item, Player)
  36. local con = CreateConversation()
  37. AddConversationOption(con, "Put the parchment away.", "CloseItemConversation")
  38. StartDialogConversation(con, 2, Item, Player, "You carefully roll the parchment and stow it away.")
  39. end