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

Lua Channels.xml (Private Chat Channel Question)

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,858
Reaction score
96
Location
Brazil
This is my channels.xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<channels>
    <channel id="1" name="Party"/>
    <channel id="2" name="Staff" access="1"/>
    <channel id="3" name="Rule Violations" logged="yes"/>
    <channel id="4" name="Counselor" access="1"/>
    <channel id="5" name="Game-Chat" level="1" muted="10" conditionId="3" conditionMessage="You can only speak in this channel once every 10 seconds."/>
    <channel id="6" 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="7" name="Rook Trade" level="2" muted="120" conditionId="4" conditionMessage="You may only place one offer in two minutes.">
        <vocation id="0"/>
    </channel>
    <channel id="8" name="RL-Chat"/>
    <channel id="9" name="Help" muted="120" conditionId="5" conditionMessage="You may only ask for help every two minutes." logged="yes"/>
    <channel id="65535" name="Private Chat Channel"/>
</channels>

Why this code don't work?
Code:
doPlayerOpenChannel(cid, 65535)
 
To be honest I don't know, however it might be that it's trying to open a channel to the current player, without a name?
Is there any error's?
More information might help people help you better.
 
Private channel is something different. This id is for internal usage only. You would have to create new lua function calling g_game.PlayerOpenPrivateChannel.
 
@LucasFerraz.. Private Channel don't work with Free Account, only with premmium accout.
To fix this, open ur chat.cpp and search for:
Code:
if(!player->isPremium() || getPrivateChannel(player))
and replace to:
Code:
if(getPrivateChannel(player))
 
Back
Top