function onCastSpell(cid, param)
local creature = getCreatureTarget(cid)
local pos = getCreaturePosition(cid)
local item = getCreaturePosition(cid)
if hasProperty(item.uid, 0) == TRUE or hasProperty(item.uid, 3) == TRUE then
return TRUE
end
if isCreature(creature) == TRUE then
doSendDistanceShoot(pos,getThingPos(creature),38)
doSendMagicEffect(getThingPos(creature),3)
doMoveCreature(creature,getDirectionBetween(pos,getThingPos(creature)))
else
doPlayerSendCancel(cid,"You need select the target.")
end
return TRUE
end