Hi, i have a problem with my bless system. When i die with all of them i lost my all equipment, but without them i lost only back pack, i dont know what to do. I use TFS 0.4.1 Here is my bless script
and talkactions.xml
I have enable bless in config.lua
Thank you
local bless = {1, 2, 3, 4, 5}
local cost = 50000 -- Cost in gp.
function onSay(cid, words, param)
for i = 1, table.maxn(bless) do
if(getPlayerBlessing(cid, bless)) then
doPlayerSendCancel(cid, "You already have all blessings.")
return TRUE
end
end
if(doPlayerRemoveMoney(cid, cost) == TRUE) then
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless)
end
doPlayerSendTextMessage(cid,24, "You have bought all blessings.")
doSendMagicEffect(getPlayerPosition(cid), 28)
else
doPlayerSendCancel(cid, "You don't have enough money.")
end
return TRUE
end
and talkactions.xml
<talkaction words="!bless" script="bless.lua"/>
I have enable bless in config.lua
Thank you