Ilucidesbatteredjournal.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : ItemScripts/Ilucidesbatteredjournal.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.09 09:07:35
  5. Script Purpose :
  6. :
  7. --]]
  8. local SearchingTheDepthsofFallenGate = 5307
  9. function examined(Item, Player)
  10. if not HasQuest(Player, SearchingTheDepthsofFallenGate) and not HasCompletedQuest(Player, SearchingTheDepthsofFallenGate) then
  11. OfferQuest(nil, Player, SearchingTheDepthsofFallenGate)
  12. end
  13. conversation = CreateConversation()
  14. AddConversationOption(conversation, "[continue reading]", "page2")
  15. AddConversationOption(conversation, "[close the journal]", "CloseItemConversation")
  16. StartDialogConversation(conversation, 2, Item, Player, "Journal entry, day 15 - I can't seem to figure out this door. I've wracked my brain for a solution, but I can't seem to find a way past it. The zombies are starting to get on my nerves though. Ahh well, back to my exploration!")
  17. end
  18. function page2(Item, Player)
  19. conversation = CreateConversation()
  20. AddConversationOption(conversation, "[turn the page]", "page3")
  21. AddConversationOption(conversation, "[close the journal]", "CloseItemConversation")
  22. StartDialogConversation(conversation, 2, Item, Player, "Journal entry, day 17: It is possible that the door is magically sealed. I do feel a bit uneasy getting close to it, but something behind it seems to draw me closer. It's almost as if it's calling out to me. Perhaps the door was magically sealed? I do not know yet, but I will find out!")
  23. end
  24. function page3(Item, Player)
  25. conversation = CreateConversation()
  26. AddConversationOption(conversation, "[turn the page]", "page4")
  27. AddConversationOption(conversation, "[close the journal]", "CloseItemConversation")
  28. StartDialogConversation(conversation, 2, Item, Player, "Journal entry, day 21: Blast these foul undead! They interrupted my sleep THREE times last night. Or at least, I think it's night. So hard to tell down here. Oh, how I long for the cool air of the thicket and a nice jum jum ale! A stool, and a nice book ... hey, wait, a book! I think this might be a good plan...")
  29. end
  30. function page4(Item, Player)
  31. conversation = CreateConversation()
  32. AddConversationOption(conversation, "[put the journal in your quest satchel]", "CloseItemConversation")
  33. StartDialogConversation(conversation, 2, Item, Player, "Journal entry, day 21-and-a-half: That's it! I'll head to Freeport and see if I can find something of use in that Academy of theirs! Oh wait ... what's this thing? It's certainly ugly ... hmm ... this could be bad...")
  34. end