Last active
June 27, 2023 12:29
-
-
Save Zbizu/476f86b647eb907495deacdfa8594906 to your computer and use it in GitHub Desktop.
protocol 12 icons test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m = NetworkMessage() | |
m:addByte(0x8B) -- header | |
m:addU32(player:getId()) -- creature id | |
m:addByte(14) -- event 14 (player icons) | |
m:addByte(2) -- number of icons to send | |
-- icon 1 | |
m:addByte(1) -- icon style (1-21) | |
m:addByte(0) -- has to be 0 or the icon wont be displayed | |
m:addU16(1000) -- number next to it | |
-- icon 2 | |
m:addByte(2) | |
m:addByte(0) | |
m:addU16(1000) | |
m:sendToPlayer(player) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
other icons: