9
3

acrumpledscroll.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : ItemScripts/acrumpledscroll.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.28 04:10:25
  5. Script Purpose :
  6. :
  7. --]]
  8. local ACrumpledNoteMages = 5374 -- A Crumpled Scroll mages version.
  9. local ACrumpledNoteWarriors = 5375 -- A Crumpled Scroll warriors version.
  10. local ACrumpledNotePriests = 5435 -- A Crumpled Scroll priest version.
  11. function examined(Item, Player)
  12. conversation = CreateConversation()
  13. if not HasQuest(Player, ACrumpledNoteMages) and not HasCompletedQuest(Player, ACrumpledNoteMages) then
  14. AddConversationOption(conversation, "The mages in the Concordium must see this.", "Mages")
  15. end
  16. if not HasQuest(Player, ACrumpledNoteWarriors) and not HasCompletedQuest(Player, ACrumpledNoteWarriors) then
  17. AddConversationOption(conversation, "I will show this note to the Steel Warriors.", "Warriors")
  18. end
  19. if not HasQuest(Player, ACrumpledNotePriests) and not HasCompletedQuest(Player, ACrumpledNotePriests) then
  20. AddConversationOption(conversation, "The Temple of Life priests might know what to do.", "Priests")
  21. end
  22. AddConversationOption(conversation, "I don't need to do anything with this.", "CloseItemConversation")
  23. StartDialogConversation(conversation, 2, Item, Player, "The tattered and dirty scroll almost comes apart as you flatten it to get a better look. Only fragments are legible, but you begin to read, \"... plan ... comple... Soon it will be time for... don't suspect ... will liv ... once mor...\"")
  24. end
  25. function Mages(Item, Player)
  26. CloseItemConversation(Item,Player)
  27. OfferQuest(nil, Player, ACrumpledNoteMages)
  28. end
  29. function Warriors(Item, Player)
  30. CloseItemConversation(Item,Player)
  31. OfferQuest(nil, Player, ACrumpledNoteWarriors)
  32. end
  33. function Priests(Item, Player)
  34. CloseItemConversation(Item,Player)
  35. OfferQuest(nil, Player, ACrumpledNotePriests)
  36. end