function onSay(cid, words, param)
local price = 50000
local n = isInArray({5,6,7,8}, getPlayerVocation(cid)) == TRUE and 7 or 10
if getPlayerLossPercent(cid, 0) >= n then
if doPlayerRemoveMoney(cid, price) == TRUE then
for i=0,2 do
doPlayerSetLossPercent(cid, i, getPlayerLossPercent(cid, i) - 5)
end
doPlayerSendTextMessage(cid, 22, "You have been blessed.")
doSendMagicEffect(getThingPos(cid), 12)
else
doPlayerSendTextMessage(cid, 22, "Sorry, you don't have enough gold.")
end
else
doPlayerSendTextMessage(cid, 22, "You have already been blessed.")
end
return FALSE
end