function onSay(cid, words, param)
local cost = 10000
if not getPlayerBlessing(cid, 6) then
if doPlayerRemoveMoney(cid, cost) then
doPlayerAddBlessing(cid, 6)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
else
doCreatureSay(cid, "You do not have enough money to buy this blessing!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doPlayerSendCancel(cid, "You already have Twist of Fate!")
end
return true
end