• 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!

TFS 1.3 Staff members write in red color

Deepling

Just a spammer
Joined
Jun 29, 2015
Messages
1,835
Solutions
1
Reaction score
555
Location
Poland
Hello!
I would like to request script making staff members (group 4 and 5) write in red color.
Tried editing flags, but it make staff members write in orange.
TFS 1.3 Client 10.99

Thx!
 
Solution
change
Code:
        if playerAccountType >= ACCOUNT_TYPE_GAMEMASTER then
            type = TALKTYPE_CHANNEL_O
to

Lua:
        if playerAccountType >= ACCOUNT_TYPE_TUTOR then
            type = TALKTYPE_CHANNEL_R1

in advertising

Lua:
    if player:getAccountType() >= ACCOUNT_TYPE_GAMEMASTER then
        if type == TALKTYPE_CHANNEL_Y then
            return TALKTYPE_CHANNEL_O

to
Lua:
    if player:getAccountType() >= ACCOUNT_TYPE_TUTOR then
        if type == TALKTYPE_CHANNEL_Y then
            return TALKTYPE_CHANNEL_R1

and
Lua:
        if not getPlayerFlagValue(player, PlayerFlag_CanTalkRedChannel) then
            type = TALKTYPE_CHANNEL_Y
        end
to

Lua:
if playerAccountType < ACCOUNT_TYPE_GAMEMASTER and not...
change
Code:
        if playerAccountType >= ACCOUNT_TYPE_GAMEMASTER then
            type = TALKTYPE_CHANNEL_O
to

Lua:
        if playerAccountType >= ACCOUNT_TYPE_TUTOR then
            type = TALKTYPE_CHANNEL_R1

in advertising

Lua:
    if player:getAccountType() >= ACCOUNT_TYPE_GAMEMASTER then
        if type == TALKTYPE_CHANNEL_Y then
            return TALKTYPE_CHANNEL_O

to
Lua:
    if player:getAccountType() >= ACCOUNT_TYPE_TUTOR then
        if type == TALKTYPE_CHANNEL_Y then
            return TALKTYPE_CHANNEL_R1

and
Lua:
        if not getPlayerFlagValue(player, PlayerFlag_CanTalkRedChannel) then
            type = TALKTYPE_CHANNEL_Y
        end
to

Lua:
if playerAccountType < ACCOUNT_TYPE_GAMEMASTER and not getPlayerFlagValue(player, PlayerFlag_CanTalkRedChannel) then
            type = TALKTYPE_CHANNEL_Y
        end

i think this working
 
Solution
Back
Top