9
3

bookshelfrules.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/SummonersTest/bookshelfrules.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.12 02:11:51
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function casted_on(NPC, Spawn, SpellName)
  11. if SpellName == 'Search bookcase' then
  12. local con = CreateConversation()
  13. AddConversationOption(con, "\"The Summoner's Test\"", "Summon")
  14. AddConversationOption(con, "\"The Sorcerer's Trial\"", "Sorc")
  15. AddConversationOption(con, "\"The Enchanter's Challenge\"", "Enchant")
  16. AddConversationOption(con, "Leave them alone.","CloseConversation")
  17. StartDialogConversation(con, 1, NPC, Spawn, "These books appear to be a collection of testing materials for use in arcane advancement trials. A few appear less dust-covered than others.")
  18. end
  19. end
  20. function Summon(NPC, Spawn)
  21. local con = CreateConversation()
  22. AddConversationOption(con, "Return the testing materials.","CloseConversation")
  23. StartDialogConversation(con, 1, NPC, Spawn, " ...A summoning ring composed of unlit candles must prepared so pupils have a chance to demonstrate control while not entirely being in control. Allow the students to complete the circle by lighting the candles, followed by tapping into the \"hole\" generated within the ring. This will allow the Three-Tower's energies to control the elements presented for the potentional summoner. NOTE: This should always be conducted in a small space should go the testing go awry! - Magister Niksel ")
  24. end
  25. function Sorc(NPC, Spawn)
  26. local con = CreateConversation()
  27. AddConversationOption(con, "Return the testing materials.","CloseConversation")
  28. StartDialogConversation(con, 1, NPC, Spawn, " ...A sorcerer must demonstrate mastery of arcane beings by displaying elemental prowess. To begin, they must weave the ether about them upon the focusing crystal within a candle ring. Four selected arcane creatures from the Three Towers's menagerie will be translocated to the testing chamber. They will be returned immediately for quick repairs for the next tester should they be torn asunder. NOTE: Knowledge Guardians may need a Magister's attention to address the probability for paper cuts. Priests had to be called in during a recent pupil's trial! - Magister Niksel ")
  29. end
  30. function Enchant(NPC, Spawn)
  31. local con = CreateConversation()
  32. AddConversationOption(con, "Return the testing materials.","CloseConversation")
  33. StartDialogConversation(con, 1, NPC, Spawn, " A large note is affixed to this book. \"Future Enchanter Charm tests need new protocols after the last incident. The aspiring enchanter was reverse-charmed and forced to run off the top floor of the Three Towers to an undesirable conclusion. Please conduct testing in another way until new methods can be employed! - Magister Niksel\" ")
  34. end
  35. function respawn(NPC)
  36. spawn(NPC)
  37. end