mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Retail's smf:GetMessageInfo(index): text, r, g, b, then every argument AddMessage took after the colour. Index 1 is the oldest message, and an index outside 1..GetNumMessages() returns nothing. The text and colour come from the engine's record in the frame's message ring, so UpdateColorByID's changes read back. The record keeps only an integer id after the colour, so AddMessage is registered again over the engine's: Storm's hash links a new method node at the head of its bucket and the lookup takes the first match. It runs the engine's AddMessage, then keeps the extra arguments for the record just written, in a registry table reused per record.