questhighpebbletome.lua 656 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/Butcherblock/questhighpebbletome.lua
  3. Script Author : jakejp
  4. Script Date : 2018.06.02 09:06:56
  5. Script Purpose :
  6. :
  7. --]]
  8. local NauticalDisaster = 252
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, NauticalDisaster, 1)
  11. end
  12. function casted_on(Target, Caster, SpellName)
  13. if SpellName == "Take the tome" then
  14. if GetQuestStep(Caster, NauticalDisaster) == 1 then
  15. SetStepComplete(Caster, NauticalDisaster, 1)
  16. end
  17. end
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end