• 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!

Help me with bless system!

Kaywin

Lord of War WoW/Tibia 2D
Joined
Oct 24, 2008
Messages
541
Reaction score
6
Location
SwedeN
Hello OTLand

When player die with bless on my server the downgrades to level 1 :O please help me with this!
 

how i see lots of peapols getting this error :D what tfs you using? :D and allmost all of them how i watched the thread maked everything what is possible :D so try this talkactions !bless.



Code:
  local bless = {1, 2, 3, 4, 5}
local cost = 50000
function onSay(cid, words, param)
    for i = 1, table.maxn(bless) do
        if(getPlayerBlessing(cid, bless[i])) then
            doPlayerSendCancel(cid, "You have already all blessings.")
            return TRUE
        end
    end
   
    if(doPlayerRemoveMoney(cid, cost) == TRUE) then
        for i = 1, table.maxn(bless) do
            doPlayerAddBlessing(cid, bless[i])
        end
        doCreatureSay(cid, "You are now blessed by the GOD Apsivaflines!" ,19)
        doSendMagicEffect(getPlayerPosition(cid), 49)
    else
        doPlayerSendCancel(cid, "You don\'t have enough money.")
    end
    return TRUE
end
 
There might be several problems. Is it because of the promotion? Did you configured at config.lua correct? Did you made database settings for it? Login.lua? Try the default one without modifying it.
 
IVe got this problem aswelll :/ Can't find the reason for it.. I did as someone suggested... put a clean version of the login.lua but still having the problem.
 
Back
Top