Advent
Custom RPG Maker
- Joined
- Oct 3, 2009
- Messages
- 306
- Reaction score
- 7
I am looking for working script to mute player on specified channel. I tried using http://otland.net/f132/talkaction-mute-help-channel-111533/ but it didn't worked. I wanted to add mute on login on specified channel if player doesnt' have certain storagevalue. Can anyone help me with that ? I will be grateful.
- - - Updated - - -
When player get mute on channel it goes to database so changing this value through db ingeration may work? I will find out some things and try to do something.
- - - Updated - - -
Can't find it, gonna look in source for place where those mutes are going to >>
- - - Updated - - -
- - - Updated - - -
local condition = createConditionObject(CONDITION_MUTED)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000000)
setConditionParam(condition, CONDITION_PARAM_SUBID, 8)
doAddCondition(cid, condition)
Why this is not working then ?
<channel id="10" name="Training Spot" muted="1000000" conditionId="8" conditionMessage="You cannot send messages here anymore !"/>
- - - Updated - - -
I managed it to work. Please close.
- - - Updated - - -
When player get mute on channel it goes to database so changing this value through db ingeration may work? I will find out some things and try to do something.
- - - Updated - - -
Can't find it, gonna look in source for place where those mutes are going to >>
- - - Updated - - -
Code:
if(readXMLInteger(p, "conditionId", intValue))
{
conditionId = intValue;
if(conditionId < 2)
std::cout << "[Warning - Chat::parseChannelNode] Using reserved muted condition sub id (" << conditionId << ")" << std::endl;
}
if((condition = Condition::createCondition(CONDITIONID_DEFAULT, CONDITION_MUTED, tmp, 0, false, conditionId)))
{
if(readXMLString(p, "conditionMessage", strValue))
conditionMessage = strValue;
}
else
conditionId = -1;
- - - Updated - - -
local condition = createConditionObject(CONDITION_MUTED)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000000)
setConditionParam(condition, CONDITION_PARAM_SUBID, 8)
doAddCondition(cid, condition)
Why this is not working then ?
<channel id="10" name="Training Spot" muted="1000000" conditionId="8" conditionMessage="You cannot send messages here anymore !"/>
- - - Updated - - -
I managed it to work. Please close.
Last edited: