Just take any 'on use' script from actions and do not remove the item after use.need script for blessing forevr aol that aol when u use get all blessing
Alright, and now post a script that you've attempted to make yourself, or a script that you've found that doesn't work as you would like.im use Tfs 0.4-dev 8.60
local bless = {1, 2, 3, 4, 5}
function onDeath(cid, lastHitKiller, mostDamageKiller)
if(getPlayerSlotItem(cid, 2).itemid == 10719) and getPlayerSkullType(cid) >= 0 then
doCreatureSetDropLoot(cid, false)
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless)
end
end
return true
end
local bless = {1, 2, 3, 4, 5}
function onUse(cid, item, frompos, item2, topos)
doRemoveItem(item.uid, 1)
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless)
end
return true
end
<action itemid="1111111111111111111111" event="script" value="aolbless.lua"/>
Alright, so you want the player to receive blessings when the item is equipped?man i have action script to get blessing i need when use aol i get blessing "use = put aol in his slot not action use" sorry my english not good
local bless = {1, 2, 3, 4, 5}
function onDeath(cid, lastHitKiller, mostDamageKiller)
if(getPlayerSlotItem(cid, 2).itemid == 10719) and getPlayerSkullType(cid) >= 0 then
doCreatureSetDropLoot(cid, false)
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless[i])
end
end
return true
end
and getPlayerSkullType(cid) >= 0