EntuisMailbox.lua 846 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/EntuisMailbox.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.03.15 09:03:04
  5. Script Purpose :
  6. :
  7. --]]
  8. local QUEST = 406 -- Filling the Coffers
  9. function spawn(NPC)
  10. end
  11. function casted_on(NPC, Spawn, SpellName)
  12. if SpellName == 'Check mailbox' then
  13. if HasQuest(Spawn, QUEST) then
  14. if GetQuestStep(Spawn, QUEST) == 7 then
  15. SetStepComplete(Spawn, QUEST, 7)
  16. end
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "Leave the mailbox.")
  19. StartDialogConversation(conversation, 1, NPC, Spawn, "Entui's taxes rest within a pouch in the mailbox. You collect them with ease.")
  20. end
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end