• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved A PVP channel?

Status
Not open for further replies.

Samaster

Raptorserver.ddns.net
Joined
Jun 9, 2013
Messages
291
Reaction score
23
Location
UK
Hi, I would like a PVP channel that all players can open and see when players kill other players; but not be able to talk in it.

I only have a XML file of the list of channels at the moment and have no idea what else to do:

Code:
<?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="Counsellor" 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-12"/>
    </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="65535" name="Private Chat Channel"/>
</channels>

An example of what I would like to appear in this channel would be:

01:23 Player 1 [LEVEL] has slain Player 2 [LEVEL]. Justified
01:23 Player 3 [LEVEL] has slain Player 1 [LEVEL]. Unjustified
etc


Could someone help me please?

Thanks
 
Did you added the function doChannelBroadcast in 050-function.lua like cbrm posted?
050-function.lua
Code:
function doChannelBroadcast(message, class)
    for _, cid in ipairs(getPlayersOnline()) do
        doPlayerSendChannelMessage(cid, '', message, class, 10)
    end
end
 
Did you added the function doChannelBroadcast in 050-function.lua like cbrm posted?
With this line:
Code:
doPlayerSendChannelMessage(cid, '', message, class, 10)

What do I put in between ' ' ?

Also, whenever I add them to login.lua, players don't die when they hit 0 health?

EDITED:

I've got it to work now, thank you all for your help :) (SOLVED)
 
Last edited:
Status
Not open for further replies.
Back
Top