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?
Players can't shout
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- gabiito
- Posts: 6
- Joined: Mon Dec 13, 2010 4:25 am
- Location: Montevideo, Uruguay
Players can't shout
Sorry for my english, I try to do my better (? ahaha ^^
- SolidSnake
- Posts: 865
- Joined: Wed Jan 20, 2010 6:54 pm
- Location: Italy
Re: Players can't shout
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

- gabiito
- Posts: 6
- Joined: Mon Dec 13, 2010 4:25 am
- Location: Montevideo, Uruguay
- regenx
- Posts: 319
- Joined: Sat Jul 17, 2010 6:55 am
Re: Players can't shout
But how i can make restricted globals like TRADE and SHOUT channels for low characters until 40 lvl?
Thx..
Thx..
- SolidSnake
- Posts: 865
- Joined: Wed Jan 20, 2010 6:54 pm
- Location: Italy
Re: Players can't shout
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;}

- regenx
- Posts: 319
- Joined: Sat Jul 17, 2010 6:55 am
Re: Players can't shout
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); } }

Anyway thx, you are a great member for this Community!
- SolidSnake
- Posts: 865
- Joined: Wed Jan 20, 2010 6:54 pm
- Location: Italy
Re: Players can't shout
Yes like this 
P.S. Remember to replace "shout" with "trade" chat in the message

P.S. Remember to replace "shout" with "trade" chat in the message

- regenx
- Posts: 319
- Joined: Sat Jul 17, 2010 6:55 am
Re: Players can't shout
LOL, thx again ... because i paste with 'shout' in both cases.
)
