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

Lua blessing frame

silveralol

Advanced OT User
Joined
Mar 16, 2010
Messages
1,480
Solutions
9
Reaction score
211
hello folks.
With the blessing 7 the players have a golden frame in the equipment and also an icon near of the show/hide equipment button and this icon show the message that the player is blessed with the adventurer blessing until the player get level 21...
that is right, I already have a function to do this maded by @Ninja
Code:
function Player.sendAdventurerBlessing(self)
    local msg = NetworkMessage()
    msg:addByte(0x9C)
    msg:addU16(self:hasBlessing(7) and 0x01 or 0x00) -- 0x01 for the golden frame

    msg:sendToPlayer(self)
    msg:delete()
end
but I want to set the golden frame to players that have blessing 5, normal blessing's
but the message of the icon is different "you are blessed, this protect all your item loses...." something like that,
so, what byte do I need change to make it work ?
Code:
function Player.sendBlessing(self)
    local msg = NetworkMessage()
    msg:addByte(0x9C) -- ?????????????????
    msg:addU16(self:hasBlessing(5) and 0x01 or 0x00) -- 0x01 for the golden frame

    msg:sendToPlayer(self)
    msg:delete()
end
 
why would you change the byte if that's what the blessing frame is?
im assuming all you're wanting to do is change the text?
hard to tell what your problem is
 
why would you change the byte if that's what the blessing frame is?
im assuming all you're wanting to do is change the text?
hard to tell what your problem is
no, is not just change the text, I'm almost sure that the byte "carry" the text .. so, the other text is another byte, I don't remember correctly, but I saw somewhere the another text, when I remember I can came here with a screenshot for everyone see the differences between the texts
thanks for reply
 
No Blessing -> 0x00
Adventurer blessing -> 0x01
Spiritual Shielding Blessing -> 0x02
Embrace of Tibia Blessing -> 0x04
Fire of Suns Blessing -> 0x08
Wisdom of Solitude Blessing -> 0x10
Twist of Fate Blessing -> 0x20
Spark of Phoenix Blessing -> 0x40
these are the only things you can change with msg:addU16
you don't change the byte
 
Back
Top