mugtopoison2.lua 613 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/mugtopoison.lua
  3. Script Author : Cynnar
  4. Script Date : 2018.06.18 07:06:59
  5. Script Purpose :
  6. :
  7. --]]
  8. local HALFELF_MENTOR_QUEST_2 = 308 -- Dirty Work
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function casted_on(NPC, Spawn, SpellName)
  17. if HasQuest(Spawn, HALFELF_MENTOR_QUEST_2) and GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_2) == 3 then
  18. if SpellName == 'Poison Mug' then
  19. SetStepComplete(Spawn, HALFELF_MENTOR_QUEST_2, 3)
  20. end
  21. end
  22. end