9
3

MaharaisMailbox.lua 821 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/MaharaisMailbox.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 respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function casted_on(NPC, Spawn, SpellName)
  15. if SpellName == 'Check mailbox' then
  16. if HasQuest(Spawn, QUEST) then
  17. if GetQuestStep(Spawn, QUEST) == 5 then
  18. SetStepComplete(Spawn, QUEST, 5)
  19. end
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "Leave the mailbox.")
  22. StartDialogConversation(conversation, 1, NPC, Spawn, "You easily collect Maharai's taxes from her mailbox.")
  23. end
  24. end
  25. end