• 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 Working script to mute player 0.3.6pl1

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

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:
Back
Top