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

Help Channel: exhausted for normal players but not for tutors or higher group

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
Like topic name, I need to make help channel with delay (30 sec) easy to set, but tutor or higher groups shouldnt have exhausted and also talk in orange (flag).

I rep`+++ thanks!
 
data/xml/channels.xml
find
Code:
<channel id="9" name="Help" logged="yes"/>
and replace with
Code:
<channel id="9" name="Help" logged="yes" muted="30" conditionId="4" conditionMessage="You may only place one message in 30 second."/>
and tut or higher rank should still talk in orange without exhaust
 
you will need to add flag of " Do no gain exhaustion" in group.xml for tut
but if you did this tut won't get exhaust when they cast spells
 
Im sure that it can be done with storage, but don't know how :S

ask someone to modify that to your server then make a lua script :p

On write to channel function

Look at the example script at the bottom of that thread;

Code:
function onWriteToChannel(cid, channelId, text)
    if(text:lower() == 'fuck') then
        doPlayerSendChannelMessage(cid, "", "Swearings are not allowed here!", TALKTYPE_CHANNEL_RN, channelId)
        return false -- this will make his text dont appear!
    end
    return true
end

Just change
Code:
if(text:lower() == 'fuck') then
to
Code:
 if getCreatureStorage(cid, 9001) < 0 then
 
Back
Top