silveralol
Advanced OT User
- Joined
- Mar 16, 2010
- Messages
- 1,480
- Solutions
- 9
- Reaction score
- 212
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
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 ?
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 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