9
3

questvrimbox.lua 678 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : <script-name>
  3. Script Purpose : <purpose>
  4. Script Author : <author-name>
  5. Script Date : <date>
  6. Script Notes : <special-instructions>
  7. --]]
  8. -- Quest ID's
  9. local QUEST_1 = 340 --142 --A Puppy for your potion--
  10. -- Item ID's
  11. local BOX_OF_ALCHEMY_COMPONENTS = 4537
  12. function spawn(NPC)
  13. SetRequiredQuest(NPC, QUEST_1, 2)
  14. end
  15. function hailed(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function casted_on(NPC, Spawn, Message)
  21. if HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2 and Message == "take the box" then
  22. SetStepComplete(Spawn, QUEST_1, 2)
  23. SummonItem(Spawn, BOX_OF_ALCHEMY_COMPONENTS)
  24. end
  25. end