aneruditepestle.lua 578 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/Stonestair/aneruditepestle.lua
  3. Script Purpose :
  4. Script Author : Jabantiz
  5. Script Date : 6/22/2018
  6. Script Notes :
  7. --]]
  8. -- Quest ID's
  9. local ERUDITE_ALCHEMY = 355
  10. function spawn(NPC)
  11. SetRequiredQuest(NPC, ERUDITE_ALCHEMY, 2)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. end
  18. function casted_on(NPC, Spawn, Message)
  19. if HasQuest(Spawn, ERUDITE_ALCHEMY) and GetQuestStep(Spawn, ERUDITE_ALCHEMY) == 2 and Message == "grind herbs" then
  20. SetStepComplete(Spawn, ERUDITE_ALCHEMY, 2)
  21. end
  22. end