DrawingRay.lua 674 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : ItemScripts/DrawingRay.lua
  3. Script Purpose : Drawing Ray
  4. Script Author : Scatman
  5. Script Date : 2009.10.18
  6. Script Notes :
  7. --]]
  8. local CAVES_CONSUL_BREE_QUEST_3 = 225
  9. function used(Item, Player)
  10. if HasQuest(Player, CAVES_CONSUL_BREE_QUEST_3) and not QuestStepIsComplete(Player, CAVES_CONSUL_BREE_QUEST_3, 4) then
  11. spawn = GetTarget(Player)
  12. if spawn ~= nil then
  13. -- river behemoth remains
  14. if GetSpawnID(spawn) == 1970147 then
  15. AddPrimaryEntityCommand(Player, spawn, "Remove River Stone")
  16. else
  17. SendMessage(Player, "The Drawing Ray has no effect. Emma said it must be used on the remains of a river behemoth.")
  18. end
  19. end
  20. end
  21. end