9
3

ParchmentScrap.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : ItemScripts/ParchmentScrap.lua
  3. Script Purpose : Handles the quest item "Parchment Scrap (right-click this item to Examine it)" (10317)
  4. Script Author : Jabantiz
  5. Script Date : 9/8/2016
  6. Script Notes :
  7. --]]
  8. local Tainted = 183
  9. function examined(Item, Player)
  10. local con = CreateConversation()
  11. if HasQuest(Player, Tainted) then
  12. if GetQuestStep(Player, Tainted) == 2 then
  13. AddConversationOption(con, "Examine the parchment.", "Examine")
  14. elseif GetQuestStep(Player, Tainted) == 4 then
  15. AddConversationOption(con, "Put together the parchment pieces.", "PutTogether")
  16. elseif GetQuestStep(Player, Tainted) == 7 then
  17. AddConversationOption(con, "Piece together the parchment.", "PieceTogether")
  18. end
  19. end
  20. AddConversationOption(con, "Put the parchment away.", "CloseItemConversation")
  21. StartDialogConversation(con, 2, Item, Player, "The edges of the parchment are torn and jagged as though ripped from a much larger document.")
  22. end
  23. function Examine(Item, Player)
  24. SetStepComplete(Player, Tainted, 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 toxic crawlers will be useful to cover our ... the totem ..." The reference to a totem is puzzling. Why would someone want a totem covered in spiders? There must be more pieces of this parchment amongst the toxic crawlers.')
  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 toxic crawlers will be useful to cover our tracks. Leave the totem in the eastern rocks...'' Apparently Deianeira's concern about the spiders is well-placed, though not for the reasons she thinks. I must find more of this parchment to learn what this totem means.")
  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, Tainted) == 4 then
  39. SetStepComplete(Player, Tainted, 4)
  40. elseif GetQuestStep(Player, Tainted) == 7 then
  41. SetStepComplete(Player, Tainted, 7)
  42. end
  43. end
  44. function PieceTogether(Item, Player)
  45. local con = CreateConversation()
  46. AddConversationOption(con, "Roll the parchment up.", "RollUp")
  47. StartDialogConversation(con, 2, Item, Player, "The last bit of parchment was caught on the web near the large pile of rocks. You piece it together and read: ''The toxic crawlers will be useful to cover our tracks. Leave the totem in the eastern rocks beneath Direspike.'' Direspike must be a tainted spider with greater power. You realize you may have to flush him from his lair by picking off the nearby spiders until he appears to meet your challenge.")
  48. end