Page 1 of 1
Players can't shout
Posted: Mon Jan 17, 2011 4:12 am
by gabiito
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
Number:4420
L2JDP Revision
Number:7664
Hi,
GM can use shout; like !hey but, Players can't!!...
Soo did anyone knows why?
Re: Players can't shout
Posted: Mon Jan 17, 2011 12:17 pm
by SolidSnake
Look for this config in General.properties file and check if it's setted on "GM"
Code: Select all
# Global Chat.# Available Options: ON, OFF, GM, GLOBAL# Default: ONGlobalChat = ON
Re: Players can't shout
Posted: Mon Jan 17, 2011 1:54 pm
by gabiito
yaay, hehe, thxs ^^
Re: Players can't shout
Posted: Fri Jan 21, 2011 10:40 pm
by regenx
But how i can make restricted globals like TRADE and SHOUT channels for low characters until 40 lvl?
Thx..
Re: Players can't shout
Posted: Fri Jan 21, 2011 10:50 pm
by SolidSnake
data/scripts/handlers/chathandlers/ChatShout and ChatTrade, so add these lines
Code: Select all
if (activeChar.getLevel() < 40){ activeChar.sendMessage("You cannot use the shout chat with a level less than 40."); return;}
Re: Players can't shout
Posted: Sat Jan 22, 2011 2:17 pm
by regenx
SolidSnake wrote:data/scripts/handlers/chathandlers/ChatShout and ChatTrade, so add these lines
Code: Select all
if (activeChar.getLevel() < 40){ activeChar.sendMessage("You cannot use the shout chat with a level less than 40."); return;}
Something like this?
Code: Select all
else if (Config.DEFAULT_TRADE_CHAT.equalsIgnoreCase("global")) { if (!activeChar.isGM() && !activeChar.getFloodProtectors().getGlobalChat().tryPerformAction("global chat")) { activeChar.sendMessage("Do not spam trade channel."); return; } if (activeChar.getLevel() < 40) { activeChar.sendMessage("You cannot use the shout chat with a level less than 40."); return; } for (L2PcInstance player : pls) { if (!BlockList.isBlocked(player, activeChar)) player.sendPacket(cs); } }
or i need
else if ?

Anyway thx, you are a great member for this Community!
Re: Players can't shout
Posted: Sat Jan 22, 2011 2:32 pm
by SolidSnake
Yes like this
P.S. Remember to replace "shout" with "trade" chat in the message
Re: Players can't shout
Posted: Sat Jan 22, 2011 8:19 pm
by regenx
LOL, thx again ... because i paste with 'shout' in both cases.

)