9
3

riverbehemothremains.lua 764 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Caves/riverbehemothremains.lua
  3. Script Purpose : river behemoth remains
  4. Script Author : Scatman
  5. Script Date : 2009.10.18
  6. Script Notes :
  7. --]]
  8. local CAVES_CONSUL_BREE_QUEST_3 = 225
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, CAVES_CONSUL_BREE_QUEST_3, 4)
  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, CAVES_CONSUL_BREE_QUEST_3) and not QuestStepIsComplete(Spawn, CAVES_CONSUL_BREE_QUEST_3, 4) and SpellName == "Remove River Stone" then
  19. -- river stone (quest step gets complete once the player recieves the item (obtainitem)
  20. if not HasItem(Spawn, 10068) then
  21. SummonItem(Spawn, 10068, 1)
  22. end
  23. end
  24. end