aJournal.lua 1.4 KB

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/qey_epic11_l10_arbor/aJournal.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.22 03:11:53
  5. Script Purpose :
  6. :
  7. --]]
  8. function casted_on(NPC, Spawn, SpellName)
  9. if SpellName == 'Read' then
  10. local con = CreateConversation()
  11. AddConversationOption(con, "Read the open entry", "Entry")
  12. AddConversationOption(con, "Leave the journal alone.","Exit")
  13. StartDialogConversation(con, 1, NPC, Spawn, "This appears to be a journal, possibly from this home's owner. They apprently haven't been back in while by the signs of the dust on the open page.")
  14. end
  15. end
  16. function Entry(NPC, Spawn)
  17. local con = CreateConversation()
  18. AddConversationOption(con, "Leave the journal.","Exit")
  19. StartDialogConversation(con, 1, NPC, Spawn, "...Josslyn thinks she's so smart! I've told her I had enchantments in place in case one of my summonings gets away. Yes yes, I know I shouldn't practice at home- but all the study chambers have been booked for ages! I've only ever had issues with it one time, ONE TIME, but it went up the chimney and I haven't seen or heard of it since! Even so, the enchantments should do the trick. I MUST prove to Magister Niskel I'm capable of handling these or I'll never hear the end of it... [The entry continues incessantly] ")
  20. end
  21. function Exit(NPC, Spawn)
  22. CloseConversation(NPC,Spawn)
  23. end