9
3

KadeksMailbox.lua 919 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/KadeksMailbox.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.03.14 06:03:02
  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) == 2 then
  15. SetStepComplete(Spawn, QUEST, 2)
  16. end
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "Leave the mailbox.")
  19. StartDialogConversation(conversation, 1, NPC, Spawn, "Kadek's taxes are strewn messily about at the bottom of the mailbox. Collecting them isn't too hard, however, and he paid all that he was supposed to.")
  20. end
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end