9
3

ParchmentScrapOutpost.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : ItemScripts/ParchmentScrapOutpost.lua
  3. Script Purpose : Handles the quest item "Parchment Scrap (right-click this item to Examine it)" (10317)
  4. Script Author : premierio015
  5. Script Date : 18.05.2020
  6. Script Notes :
  7. --]]
  8. local InTheNameOfPrestige = 489
  9. function examined(Item, Player)
  10. local con = CreateConversation()
  11. if HasQuest(Player, InTheNameOfPrestige) then
  12. if GetQuestStep(Player, InTheNameOfPrestige) == 2 then
  13. AddConversationOption(con, "Examine the parchment.", "Examine")
  14. elseif GetQuestStep(Player, InTheNameOfPrestige) == 4 then
  15. AddConversationOption(con, "Put together the parchment pieces.", "PutTogether")
  16. elseif GetQuestStep(Player, InTheNameOfPrestige) == 7 then
  17. AddConversationOption(con, "Re-examine the parchment scraps.", "PieceTogether")
  18. end
  19. AddConversationOption(con, "Put the parchment away.", "CloseItemConversation")
  20. StartDialogConversation(con, 2, Item, Player, "The edges of the parchment are torn and jagged as though ripped from a much larger document.")
  21. end
  22. end
  23. function Examine(Item, Player)
  24. SetStepComplete(Player, InTheNameOfPrestige, 2)
  25. local con = CreateConversation()
  26. AddConversationOption(con, "Put the parchment away.", "CloseItemConversation")
  27. StartDialogConversation(con, 2, Item, Player, "You can barely make out some writing on this scrap: ''The horse sentries will ... that we...'' There is very little to go on in this note, but it's obvious the Tunarian horse sentries are involved. You decide you will hunt them down until you retrieve more information.")
  28. end
  29. function PutTogether(Item, Player)
  30. local con = CreateConversation()
  31. AddConversationOption(con, "Roll the parchment up.", "RollUp")
  32. StartDialogConversation(con, 2, Item, Player, "You line up the parchment pieces. The newest piece adds enough new words that you can read: ''The horse sentries will ... that we can ... wilderbears ...'' The Tunarians are using the wilderbears for something? They have various animal trainers. Perhaps slaying the wilderbears will force a change in plans?")
  33. end
  34. function RollUp(Item, Player)
  35. local con = CreateConversation()
  36. AddConversationOption(con, "Put the parchment away.", "CloseItemConversation")
  37. StartDialogConversation(con, 2, Item, Player, "You carefully roll the parchment and stow it away.")
  38. if GetQuestStep(Player, InTheNameOfPrestige) == 4 then
  39. SetStepComplete(Player, InTheNameOfPrestige, 4)
  40. RemoveItem(Player,10316)
  41. if not HasItem(Player, 10312, 0) then
  42. SummonItem(Player, 10312, 0)
  43. end
  44. end
  45. end
  46. function PieceTogether(Item, Player)
  47. local con = CreateConversation()
  48. AddConversationOption(con, "Roll the parchment up.", "RollUp")
  49. StartDialogConversation(con, 2, Item, Player, "There seem to be no new clues to finish off this puzzle: ''The horse sentries will ... that we can ... wilderbears ...'' What are the Tunarians doing? And what plan do they have that would use the wilderbears? Perhaps Charles Arker has some insight into what this all means. You plan to visit him again and see if he has perhaps gotten any more information.")
  50. if GetQuestStep(Player, InTheNameOfPrestige) == 7 then
  51. SetStepComplete(Player, InTheNameOfPrestige, 7)
  52. end
  53. end