9
3

losttombtoneofdynne.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/Antonica/losttombtoneofdynne.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.04.15 09:04:45
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheLegendOfMotte = 5803 -- THE LEGEND OF MOTTE QUEST
  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, TheLegendOfMotte) == 3 then
  15. AddConversationOption(con, "Use the tombstone key.", "con1")
  16. end
  17. AddConversationOption(con, "Stop inspecting.")
  18. StartDialogConversation(con, 1, NPC, Spawn, "It is an old tombstone. It reads, \"Here lies Sir Edwin Motte. Warrior, legend, friend of Maestro, friend of Irontoe. May he find fortune beyond.\" There also seems to be a sort of keyhole on the tombstone.")
  19. end
  20. end
  21. function con1(NPC, Spawn)
  22. local con = CreateConversation()
  23. SetStepComplete(Spawn, TheLegendOfMotte, 3)
  24. AddConversationOption(con, "Close the compartment.")
  25. StartDialogConversation(con, 1, NPC, Spawn, "A small compartment opens and you find lost treasure.")
  26. end
  27. function respawn(NPC)
  28. spawn(NPC)
  29. end