• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lost all equipment with all blesses

Status
Not open for further replies.

Shevi

New Member
Joined
Feb 27, 2013
Messages
8
Reaction score
0
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

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 :)
 
Status
Not open for further replies.
Back
Top