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

chat error

Na Amigo

The crazy girl
Joined
Jun 5, 2017
Messages
254
Solutions
3
Reaction score
17
Location
Egypt
i've error at chat but idk what the wrong? i am using tfs 0.3.7_svn 8.6
here is a screenshot and the error code and the script
TI2Nh6.png

Code:
[12:14:34.019] [Warning - Chat::parseChannelNode] Using reserved muted condition sub id (2)
:- Channels.xml
XML:
<?xml version="1.0" encoding="UTF-8"?>
<channels>
    <!-- README:
        0 - dynamic, reserved for guilds
        1 - always acts as Party channel, only "name" tag available
        3 - always acts as Rule Violations channel
        9 - acts as Help channel- clientsided message
        65535 - DO NOT CHANGE THE ID- only "name", "enabled", "active" and "logged" tags available
     -->
    <channel id="1" name="Party"/>
    <channel id="2" name="Staff" access="3"/>
    <channel id="3" name="Rule Violations" logged="yes"/>
    <channel id="4" name="Counselor" access="1"/>
    <channel id="5" name="Game-Chat" level="2"/>
    <channel id="6" name="Trade" level="8" muted="120" conditionId="2" conditionMessage="You may only place one offer in two minutes.">
        <vocation id="1-8"/>
    </channel>
    <channel id="7" name="Trade-Rookgaard" level="2" muted="120" conditionId="3" conditionMessage="You may only place one offer in two minutes.">
        <vocation id="0"/>
    </channel>
    <channel id="8" name="RL-Chat" level="2"/>
    <channel id="9" name="Help" logged="yes"/>
    <!-- <channel id="10" name="My Custom Channel"/> -->
    <channel id="65535" name="Private Chat Channel"/>
</channels>
and :- muted.lua
LUA:
function onSay(cid, words, param, channel)
    if(param == '') then
        doPlayerSendTextMessage(cid, 21, "explaining the talkaction")
        return true
    end
    local t = string.explode(param, ",")
    player = getPlayerByName(t[1])
    local condition = createConditionObject(CONDITION_MUTED)
 
    if(not t[2] or t[2] == '') then
        doPlayerSendTextMessage(cid, 21, "explaining the talkaction")
    end
 
    if t[2] then
        time = tonumber(t[2]*1000) -- 10*1000 is 10 seconds.
        if(isPlayer(player) == TRUE and getPlayerGroupId(cid) > getPlayerGroupId(player) and getPlayerFlagValue(player, PLAYERFLAG_CANNOTBEMUTED) == false) then
            setConditionParam(condition, CONDITION_PARAM_TICKS, time)
            setConditionParam(condition, CONDITION_PARAM_SUBID, 2)
            doAddCondition(player, condition)
            doPlayerSendTextMessage(player, MESSAGE_STATUS_WARNING, "You have been muted by " .. getPlayerName(cid) .. " for " .. t[2] .. " seconds.")
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(player) .. " has been muted for " .. t[2] .. " seconds.")
        else
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[1] .. " is not currently online or cannot be muted.")
        end
    end
 
    return true
end
 
Last edited by a moderator:
I was having the same problem, but its fixed now.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<channels>
    <!-- README:
        0 - dynamic, reserved for guilds
        3 - DO NOT USE THE ID
        8 - acts as Help channel- clientsided message
        9 - always acts as Party channel, only "name" tag available
        65535 - DO NOT CHANGE THE ID- only "name", "enabled", "active" and "logged" tags available
     -->
    <channel id="1" name="Gamemaster Chat" access="3"/>
    <channel id="2" name="Tutor" access="1"/>
    <channel id="3" name="Rule Violations" logged="yes"/>
    <channel id="4" name="Game-Chat"/>
    <channel id="5" name="Trade" level="8" muted="120" conditionId="3" conditionMessage="You may only place one offer in two minutes.">
        <vocation id="1-8"/>
    </channel>
    <channel id="6" name="Rook Trade" level="2" muted="120" conditionId="3" conditionMessage="You may only place one offer in two minutes.">
        <vocation id="0"/>
    </channel>
    <channel id="7" name="RL-Chat"/>
    <channel id="8" name="Party"/>
    <channel id="9" name="Help" logged="yes"/>
    <!-- <channel id="10" name="My Custom Channel"/> -->
    <channel id="65535" name="Private Chat Channel"/>
</channels>
 
I was having the same problem, but its fixed now.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<channels>
    <!-- README:
        0 - dynamic, reserved for guilds
        3 - DO NOT USE THE ID
        8 - acts as Help channel- clientsided message
        9 - always acts as Party channel, only "name" tag available
        65535 - DO NOT CHANGE THE ID- only "name", "enabled", "active" and "logged" tags available
     -->
    <channel id="1" name="Gamemaster Chat" access="3"/>
    <channel id="2" name="Tutor" access="1"/>
    <channel id="3" name="Rule Violations" logged="yes"/>
    <channel id="4" name="Game-Chat"/>
    <channel id="5" name="Trade" level="8" muted="120" conditionId="3" conditionMessage="You may only place one offer in two minutes.">
        <vocation id="1-8"/>
    </channel>
    <channel id="6" name="Rook Trade" level="2" muted="120" conditionId="3" conditionMessage="You may only place one offer in two minutes.">
        <vocation id="0"/>
    </channel>
    <channel id="7" name="RL-Chat"/>
    <channel id="8" name="Party"/>
    <channel id="9" name="Help" logged="yes"/>
    <!-- <channel id="10" name="My Custom Channel"/> -->
    <channel id="65535" name="Private Chat Channel"/>
</channels>
change rook trade to conditionId 4.
Some vague memory is telling me that something bad happens when someone is muted in rook trade, levels to 8, then get's muted in regular trade, within the span of 2 minutes. I don't remember what, though.
 
Exact conditions for this to occur:
This person is using a backported engine that made this change to their mailbox.cpp, which bumped minimum condition IDs up to 3, and this change to chat.cpp which started enforcing it, but they are still using an older dataset which has the original values in the chatchannels.xml.

Bumping conditionids in chatchannels.xml to be 3 or more is indeed all it takes to fix.
 

Similar threads

Back
Top