Ninkobi
Owner /Founder of Syphera
I am trying to make a script to allow you to buy all the blessings at once but for 60k. If you have no cash it gives you a error (doPlayerSendCancel) saying 'You need 6 crystal coin to get blessed!' but if you have already got 1 of the blessings it says 'You have already got one or more blessings!'.
My script:
Thanks in advance :thumbup:
My script:
Code:
function onSay(cid, words, param)
if doPlayerRemoveItem(cid,2160,6) == 1 then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(topos,39)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have been blessed by the gods!')
else
doPlayerSendCancel(cid, "You need 6 crystal coin to get blessed!")
end
else
doPlayerSendCancel(cid,'You have already got one or more blessings!')
end
return 1
end
Thanks in advance :thumbup: