ZaikiksMailbox.lua 888 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/ZaikiksMailbox.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.03.14 06:03:46
  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) == 1 then
  18. SetStepComplete(Spawn, QUEST, 1)
  19. end
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "Leave the mailbox.")
  22. StartDialogConversation(conversation, 1, NPC, Spawn, "Zaikik's taxes are placed neatly in a small pouch within the mailbox. You scoop them up and add them to your collection.")
  23. end
  24. end
  25. end