rikantusmagicchest.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/Antonica/rikantusmagicchest.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.05.06 02:05:11
  5. Script Purpose :
  6. :
  7. --]]
  8. local WhispersOfFortune = 5809
  9. function spawn(NPC)
  10. end
  11. function casted_on(NPC, Spawn, SpellName)
  12. if SpellName == 'inspect' then
  13. local con = CreateConversation()
  14. if GetQuestStep(Spawn, WhispersOfFortune) == 4 then
  15. AddConversationOption(con, "Open the chest.", "con1")
  16. end
  17. AddConversationOption(con, "Leave the chest alone.")
  18. StartDialogConversation(con, 1, NPC, Spawn, "This chest looks to be of a dark elf design. It has fantastic symbols of the arcane etched all over the surface. There is no lock to bind it, but something keeps it bound tight.")
  19. end
  20. end
  21. function con1(NPC, Spawn)
  22. SetStepComplete(Spawn, WhispersOfFortune, 4)
  23. local con = CreateConversation()
  24. AddConversationOption(con, "Leave the chest alone.")
  25. StartDialogConversation(con, 1, NPC, Spawn, "As you go to open the chest it slowly opens its maw before you can touch it. Inside the darkness you reach and grab the only items you can find.")
  26. end
  27. function respawn(NPC)
  28. spawn(NPC)
  29. end