function onSay(cid, words, param)
if (not exhaustion.check(cid, 87924)) then
if param == "" then
return doPlayerSendCancel(cid, "Add a name.")
end
if getPlayerVocation(cid) ~= 10 then
return doPlayerSendCancel(cid, "this spell only for epic elder druid.")
end
local tid = getPlayerByNameWildcard(param)
if not tid then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
elseif tid == cid then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can not use this on yourself.")
end
doSendDistanceShoot(getThingPosition(cid), getThingPosition(tid), CONST_ANI_ENERGYBALL)
doCreatureSetStorage(tid, 70308, 1)
doPlayerSendTextMessage(tid, MESSAGE_STATUS_CONSOLE_BLUE, ""..getCreatureName(cid).." send you text.")
doCreatureSay(cid, words, TALKTYPE_ORANGE_1)
exhaustion.set(cid, 87924, 3600)
return true
else
doPlayerSendCancel(cid, "You will be able to use this spell again in "..exhaustion.get(cid, 17023).." seconds.")
return false
end
end