Skip to content

Instantly share code, notes, and snippets.

@Zbizu
Last active June 27, 2023 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Zbizu/476f86b647eb907495deacdfa8594906 to your computer and use it in GitHub Desktop.
Save Zbizu/476f86b647eb907495deacdfa8594906 to your computer and use it in GitHub Desktop.
protocol 12 icons test
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)
@Zbizu
Copy link
Author

Zbizu commented Oct 17, 2021

other icons:

m:addByte(1) -- icon style (1-3)
m:addByte(1) -- different set of icons, monster only
m:addU16(1000)  -- number near icon, number not displayed if 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment