• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Collors chat

oliverarrow

Member
Joined
Jul 31, 2015
Messages
82
Reaction score
6
I changed channel id 8 to english chat(old help chat), and have create a new chat id 9 my new help channel

How to remove collors in channel 8 and in new HELP channel id 9, change collors to

If you are player = normal color msg
tutor or senior tutor = orange color msg
gm,cm,god = red msg

I use 0.4,rev3777
 
Its not exactly 1 place to change the colors for the channels but you can use these enums as a comparison to find the channels
Code:
enum Channels_t
{
    CHANNEL_GUILD = 0x00,
    CHANNEL_PARTY = 0x01,
    CHANNEL_RVR = 0x03,
    CHANNEL_HELP = 0x09,
    CHANNEL_DEFAULT = 0xFFFE, //internal usage only, there is no such channel
    CHANNEL_PRIVATE = 0xFFFF
};

and if the player has certain flags
Code:
enum PlayerFlags
{
    PlayerFlag_CannotUseCombat = 0,            //2^0 = 1
    PlayerFlag_CannotAttackPlayer,            //2^1 = 2
    PlayerFlag_CannotAttackMonster,            //2^2 = 4
    PlayerFlag_CannotBeAttacked,            //2^3 = 8
    PlayerFlag_CanConvinceAll,            //2^4 = 16
    PlayerFlag_CanSummonAll,            //2^5 = 32
    PlayerFlag_CanIllusionAll,            //2^6 = 64
    PlayerFlag_CanSenseInvisibility,        //2^7 = 128
    PlayerFlag_IgnoredByMonsters,            //2^8 = 256
    PlayerFlag_NotGainInFight,            //2^9 = 512
    PlayerFlag_HasInfiniteMana,            //2^10 = 1024
    PlayerFlag_HasInfiniteSoul,            //2^11 = 2048
    PlayerFlag_HasNoExhaustion,            //2^12 = 4096
    PlayerFlag_CannotUseSpells,            //2^13 = 8192
    PlayerFlag_CannotPickupItem,            //2^14 = 16384
    PlayerFlag_CanAlwaysLogin,            //2^15 = 32768
    PlayerFlag_CanBroadcast,            //2^16 = 65536
    PlayerFlag_CanEditHouses,            //2^17 = 131072
    PlayerFlag_CannotBeBanned,            //2^18 = 262144
    PlayerFlag_CannotBePushed,            //2^19 = 524288
    PlayerFlag_HasInfiniteCapacity,            //2^20 = 1048576
    PlayerFlag_CanPushAllCreatures,            //2^21 = 2097152
    PlayerFlag_CanTalkRedPrivate,            //2^22 = 4194304
    PlayerFlag_CanTalkRedChannel,            //2^23 = 8388608
    PlayerFlag_TalkOrangeHelpChannel,        //2^24 = 16777216
    PlayerFlag_NotGainExperience,            //2^25 = 33554432
    PlayerFlag_NotGainMana,                //2^26 = 67108864
    PlayerFlag_NotGainHealth,            //2^27 = 134217728
    PlayerFlag_NotGainSkill,            //2^28 = 268435456
    PlayerFlag_SetMaxSpeed,                //2^29 = 536870912
    PlayerFlag_SpecialVIP,                //2^30 = 1073741824
    PlayerFlag_NotGenerateLoot,            //2^31 = 2147483648
    PlayerFlag_CanTalkRedChannelAnonymous,        //2^32 = 4294967296
    PlayerFlag_IgnoreProtectionZone,        //2^33 = 8589934592
    PlayerFlag_IgnoreSpellCheck,            //2^34 = 17179869184
    PlayerFlag_IgnoreEquipCheck,            //2^35 = 34359738368
    PlayerFlag_CannotBeMuted,            //2^36 = 68719476736
    PlayerFlag_IsAlwaysPremium,            //2^37 = 137438953472
    PlayerFlag_CanAnswerRuleViolations,        //2^38 = 274877906944
    PlayerFlag_39,    //ignore            //2^39 = 549755813888 //not used by us
    PlayerFlag_ShowGroupNameInsteadOfVocation,    //2^40 = 1099511627776
    PlayerFlag_HasInfiniteStamina,            //2^41 = 2199023255552
    PlayerFlag_CannotMoveItems,            //2^42 = 4398046511104
    PlayerFlag_CannotMoveCreatures,            //2^43 = 8796093022208
    PlayerFlag_CanReportBugs,            //2^44 = 17592186044416
    PlayerFlag_45,    //ignore            //2^45 = 35184372088832 //not used by us
    PlayerFlag_CannotBeSeen,            //2^46 = 70368744177664
    PlayerFlag_HideHealth,                //2^47 = 140737488355328

    PlayerFlag_LastFlag
};

while possibly assigning these values to the channels
Code:
enum SpeakClasses
{
    SPEAK_CLASS_NONE    = 0x00,
    SPEAK_CLASS_FIRST     = 0x01,
    SPEAK_SAY        = SPEAK_CLASS_FIRST,
    SPEAK_WHISPER        = 0x02,
    SPEAK_YELL        = 0x03,
    SPEAK_PRIVATE_PN    = 0x04,
    SPEAK_PRIVATE_NP    = 0x05,
    SPEAK_PRIVATE        = 0x06,
    SPEAK_CHANNEL_Y        = 0x07,
    SPEAK_CHANNEL_W        = 0x08,
    SPEAK_RVR_CHANNEL    = 0x09,
    SPEAK_RVR_ANSWER    = 0x0A,
    SPEAK_RVR_CONTINUE    = 0x0B,
    SPEAK_BROADCAST        = 0x0C,
    SPEAK_CHANNEL_RN    = 0x0D, //red - #c text
    SPEAK_PRIVATE_RED    = 0x0E,    //@name@text
    SPEAK_CHANNEL_O        = 0x0F,
    //SPEAK_UNKNOWN_1        = 0x10,
    SPEAK_CHANNEL_RA    = 0x11,    //red anonymous - #d text
    //SPEAK_UNKNOWN_2        = 0x12,
    SPEAK_MONSTER_SAY    = 0x13,
    SPEAK_MONSTER_YELL    = 0x14,
    SPEAK_CLASS_LAST     = SPEAK_MONSTER_YELL
};

Sorry I couldn't be more helpful.
 
Its not exactly 1 place to change the colors for the channels but you can use these enums as a comparison to find the channels
Code:
enum Channels_t
{
    CHANNEL_GUILD = 0x00,
    CHANNEL_PARTY = 0x01,
    CHANNEL_RVR = 0x03,
    CHANNEL_HELP = 0x09,
    CHANNEL_DEFAULT = 0xFFFE, //internal usage only, there is no such channel
    CHANNEL_PRIVATE = 0xFFFF
};

and if the player has certain flags
Code:
enum PlayerFlags
{
    PlayerFlag_CannotUseCombat = 0,            //2^0 = 1
    PlayerFlag_CannotAttackPlayer,            //2^1 = 2
    PlayerFlag_CannotAttackMonster,            //2^2 = 4
    PlayerFlag_CannotBeAttacked,            //2^3 = 8
    PlayerFlag_CanConvinceAll,            //2^4 = 16
    PlayerFlag_CanSummonAll,            //2^5 = 32
    PlayerFlag_CanIllusionAll,            //2^6 = 64
    PlayerFlag_CanSenseInvisibility,        //2^7 = 128
    PlayerFlag_IgnoredByMonsters,            //2^8 = 256
    PlayerFlag_NotGainInFight,            //2^9 = 512
    PlayerFlag_HasInfiniteMana,            //2^10 = 1024
    PlayerFlag_HasInfiniteSoul,            //2^11 = 2048
    PlayerFlag_HasNoExhaustion,            //2^12 = 4096
    PlayerFlag_CannotUseSpells,            //2^13 = 8192
    PlayerFlag_CannotPickupItem,            //2^14 = 16384
    PlayerFlag_CanAlwaysLogin,            //2^15 = 32768
    PlayerFlag_CanBroadcast,            //2^16 = 65536
    PlayerFlag_CanEditHouses,            //2^17 = 131072
    PlayerFlag_CannotBeBanned,            //2^18 = 262144
    PlayerFlag_CannotBePushed,            //2^19 = 524288
    PlayerFlag_HasInfiniteCapacity,            //2^20 = 1048576
    PlayerFlag_CanPushAllCreatures,            //2^21 = 2097152
    PlayerFlag_CanTalkRedPrivate,            //2^22 = 4194304
    PlayerFlag_CanTalkRedChannel,            //2^23 = 8388608
    PlayerFlag_TalkOrangeHelpChannel,        //2^24 = 16777216
    PlayerFlag_NotGainExperience,            //2^25 = 33554432
    PlayerFlag_NotGainMana,                //2^26 = 67108864
    PlayerFlag_NotGainHealth,            //2^27 = 134217728
    PlayerFlag_NotGainSkill,            //2^28 = 268435456
    PlayerFlag_SetMaxSpeed,                //2^29 = 536870912
    PlayerFlag_SpecialVIP,                //2^30 = 1073741824
    PlayerFlag_NotGenerateLoot,            //2^31 = 2147483648
    PlayerFlag_CanTalkRedChannelAnonymous,        //2^32 = 4294967296
    PlayerFlag_IgnoreProtectionZone,        //2^33 = 8589934592
    PlayerFlag_IgnoreSpellCheck,            //2^34 = 17179869184
    PlayerFlag_IgnoreEquipCheck,            //2^35 = 34359738368
    PlayerFlag_CannotBeMuted,            //2^36 = 68719476736
    PlayerFlag_IsAlwaysPremium,            //2^37 = 137438953472
    PlayerFlag_CanAnswerRuleViolations,        //2^38 = 274877906944
    PlayerFlag_39,    //ignore            //2^39 = 549755813888 //not used by us
    PlayerFlag_ShowGroupNameInsteadOfVocation,    //2^40 = 1099511627776
    PlayerFlag_HasInfiniteStamina,            //2^41 = 2199023255552
    PlayerFlag_CannotMoveItems,            //2^42 = 4398046511104
    PlayerFlag_CannotMoveCreatures,            //2^43 = 8796093022208
    PlayerFlag_CanReportBugs,            //2^44 = 17592186044416
    PlayerFlag_45,    //ignore            //2^45 = 35184372088832 //not used by us
    PlayerFlag_CannotBeSeen,            //2^46 = 70368744177664
    PlayerFlag_HideHealth,                //2^47 = 140737488355328

    PlayerFlag_LastFlag
};

while possibly assigning these values to the channels
Code:
enum SpeakClasses
{
    SPEAK_CLASS_NONE    = 0x00,
    SPEAK_CLASS_FIRST     = 0x01,
    SPEAK_SAY        = SPEAK_CLASS_FIRST,
    SPEAK_WHISPER        = 0x02,
    SPEAK_YELL        = 0x03,
    SPEAK_PRIVATE_PN    = 0x04,
    SPEAK_PRIVATE_NP    = 0x05,
    SPEAK_PRIVATE        = 0x06,
    SPEAK_CHANNEL_Y        = 0x07,
    SPEAK_CHANNEL_W        = 0x08,
    SPEAK_RVR_CHANNEL    = 0x09,
    SPEAK_RVR_ANSWER    = 0x0A,
    SPEAK_RVR_CONTINUE    = 0x0B,
    SPEAK_BROADCAST        = 0x0C,
    SPEAK_CHANNEL_RN    = 0x0D, //red - #c text
    SPEAK_PRIVATE_RED    = 0x0E,    //@name@text
    SPEAK_CHANNEL_O        = 0x0F,
    //SPEAK_UNKNOWN_1        = 0x10,
    SPEAK_CHANNEL_RA    = 0x11,    //red anonymous - #d text
    //SPEAK_UNKNOWN_2        = 0x12,
    SPEAK_MONSTER_SAY    = 0x13,
    SPEAK_MONSTER_YELL    = 0x14,
    SPEAK_CLASS_LAST     = SPEAK_MONSTER_YELL
};

Sorry I couldn't be more helpful.


Where?
 
Back
Top