agnollishbook.lua 586 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/Caves/agnollishbook.lua
  3. Script Purpose : a gnollish book
  4. Script Author : Scatman
  5. Script Date : 2009.10.08
  6. Script Notes :
  7. --]]
  8. local QUEST_1_CONSULBREE = 223
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, QUEST_1_CONSULBREE, 1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. end
  17. function casted_on(NPC, Spawn, SpellName)
  18. if HasQuest(Spawn, QUEST_1_CONSULBREE) and GetQuestStep(Spawn, QUEST_1_CONSULBREE) == 1 and SpellName == "Take book" then
  19. SetStepComplete(Spawn, QUEST_1_CONSULBREE, 1)
  20. end
  21. end