Log in

View Full Version : Message() method


froglok23
09-21-2007, 09:20 PM
Hi all,

Just going over the code and doing some refactoring and turning some magic numbers into consts / enums and such and Iv come across the Message() method (pretty hard to miss :P)

example:

Message(13,"Your target is too far away, get closer!");
Message(4, "You mend your wounds and heal some damage");
Message(0, "GMHome is for GMs only");

If someone has a quick reference for these numbers : 4,13, 0 it would be a great help.

i.e
What does 13 mean?
What does 4 mean?
What does 0 mean?
What does 'x' mean?

If no one has a quick reference that’s cool, ill just load up some debug code and check in-game.

Also, Appearances, 3 and 5 (iv got 0,1,2 down pat)

Cheers & Thanks in Advance,

- froglok23

Lalolyen
09-22-2007, 01:04 PM
Double post sorry =(

Lalolyen
09-22-2007, 01:06 PM
At first it looked like reference numbers, but as I looked again and changed one and recompiled on my test box, its the color...

Message(13,"Your target is too far away, get closer!");

changing to

Message(15,"Your target is too far away, get closer!");

where changing from 13 to 15, changes the output from red to yellow.

Like when you do #emote zone 15 TEXTHERE makes yellow: TEXTHERE. I'm assuming that the X = 15 in that case.

KLS
09-22-2007, 03:02 PM
The number denotes client message type. The earlier numbers are just colors hardcoded into the client while some later types correspond to actual custom message filters in the client.

For example as you might have guessed 13 is the clients standard error message color.