Hi !
I found this code, but it's probably for old TFS. Many others take money.
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 5131 then ---< change
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
doRemoveItem(item.uid, 1)
end
return true
end
I would like to ask for help because I am looking for a scroll script for the premium shop which, when I buy and use it, gives me 5 blessings but does not take any money. If I already have blessings, it sends information that I have blessings. It disappears after use
I have 10.98 TFS 1.4.2
I found this code, but it's probably for old TFS. Many others take money.
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 5131 then ---< change
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
doRemoveItem(item.uid, 1)
end
return true
end
I would like to ask for help because I am looking for a scroll script for the premium shop which, when I buy and use it, gives me 5 blessings but does not take any money. If I already have blessings, it sends information that I have blessings. It disappears after use

I have 10.98 TFS 1.4.2