• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Blessing lvl 1 bug

carre

Advanced OT User
Joined
Apr 23, 2013
Messages
885
Solutions
1
Reaction score
161
Location
Sweden
Hi otland!
When I buy blessing and die.
The character become lvl 1 sometimes.
My server is tfs 0.3.7


My blessing.lua
Code:
local BLESSINGS = {"Wisdom of Solitude", "Spark of the Phoenix", "Fire of the Suns", "Spiritual Shielding", "Embrace of Tibia", "Twist of Fate"}
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local result = ""
    for i = 5, (table.maxn(BLESSINGS) - 5) do
        result = (getPlayerBlessing(cid, i) and result .. (result:len() > 0 and ", " or "") .. BLESSINGS[i] or result)
    end

    if(getPlayerPVPBlessing(cid)) then
        result = result .. ", " .. BLESSINGS[table.maxn(BLESSINGS)]
    end

    return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, result:len() > 0 and "Currently you have the following blessings: " .. result .. "." or "You do not have any blessing.")
end

How can I fix this?
 
Last edited:
Back
Top