HELLO!
I want add to this script getPlayerBlessing np. if you want use this book and you have all blessings you cant use it.
Thanks a lot!
I want add to this script getPlayerBlessing np. if you want use this book and you have all blessings you cant use it.
Code:
function onUse(cid, item, frompos, item2, topos)
if doPlayerRemoveItem(cid,2160,6) == 1 then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doCreatureSay(cid, "The Magic book has blessed you.", TALKTYPE_ORANGE_1)
doSendMagicEffect(topos,12)
else
doPlayerSendCancel(cid, "You need 6 crystal coin to use The Magic Bless Book.")
end
return 1
end
Thanks a lot!