9
3

OutlyingQeynosCreatureCatalog.lua 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : ItemScripts/OutlyingQeynosCreatureCatalog.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.09 08:09:58
  5. Script Purpose :
  6. :
  7. --]]
  8. local Catalogue = 519
  9. function examined(Item, Player)
  10. conversation = CreateConversation()
  11. AddConversationOption(conversation, "Turn to the next section.","Page1")
  12. AddConversationOption(conversation, "Put the catalogue away.","CloseItemConversation")
  13. StartDialogConversation(conversation, 2, Item, Player, "Just beyond the city's walls one will find areas which are considered part of Qeynos and yet remain wild. Residents of Qeynos' villages are very familiar with these areas as they usually border on one or more of the residential neighborhoods. Though close to the city, they are by no means a walk in the park.")
  14. end
  15. function Page1(Item, Player)
  16. conversation = CreateConversation()
  17. AddConversationOption(conversation, "Turn to the next section.","Page2")
  18. AddConversationOption(conversation, "Turn back to previous section.","examined")
  19. AddConversationOption(conversation, "Put the catalogue away.","CloseItemConversation")
  20. StartDialogConversation(conversation, 2, Item, Player, "One reason these areas are still wild is that they exist within steep embankments that make opening them to settlement impractical. The Bog in particular is an area where seasons of growth have compacted upon dense, moist soil and the scent of decay in that section would make living there disagreeable to say the least.")
  21. end
  22. function Page2(Item, Player)
  23. conversation = CreateConversation()
  24. AddConversationOption(conversation, "Turn to the next section.","Page3")
  25. AddConversationOption(conversation, "Turn back to previous section.","Page1")
  26. AddConversationOption(conversation, "Put the catalogue away.","CloseItemConversation")
  27. StartDialogConversation(conversation, 2, Item, Player, "As these areas are close to Qeynos, they are quite temperate, though perhaps a little cooler due to the thickness of the vegetation. The caves are quite cool and in the past were a welcome Harvest diversion where folks could slip off for a quick swim after their chores were done.")
  28. end
  29. function Page3(Item, Player)
  30. conversation = CreateConversation()
  31. AddConversationOption(conversation, "Turn to the next section.","Page4")
  32. AddConversationOption(conversation, "Turn back to previous section.","Page2")
  33. AddConversationOption(conversation, "Put the catalogue away.","CloseItemConversation")
  34. StartDialogConversation(conversation, 2, Item, Player, "Without a doubt, the loveliest area is the Oakmyst Woods. This woodland preserve is shaded by emerald green broad-leaf trees such as oak and maple. Beneath the trees, the undergrowth is scattered with trillium, bleeding hearts and red-tipped paintbrushes. On the opposite end of the spectrum is the bog, with its greenish brown earth and fallen logs.")
  35. end
  36. function Page4(Item, Player)
  37. conversation = CreateConversation()
  38. if not HasQuest(Player,Catalogue) and not HasCompletedQuest(Player,Catalogue)then
  39. AddConversationOption(conversation, "Record the depicted creatures in your journal.","QuestStart")
  40. end
  41. AddConversationOption(conversation, "Turn back to previous section.","Page3")
  42. AddConversationOption(conversation, "Put the catalogue away.","CloseItemConversation")
  43. StartDialogConversation(conversation, 2, Item, Player, "Perhaps it is the abundance of greenery that brings an increase in the number of fey beings to these areas near Qeynos. Amongst the usual scattering of insects and birds, one finds several fairies and sprites protecting their space, attacking all who venture too near. Additionally, the Ruins are home to some unfortunate folk who have not yet earned their eternal sleep.")
  44. end
  45. function QuestStart(Item,Player)
  46. CloseItemConversation(Item,Player)
  47. OfferQuest(nil, Player, Catalogue)
  48. end