Players can't shout

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
gabiito
Posts: 6
Joined: Mon Dec 13, 2010 4:25 am
Location: Montevideo, Uruguay

Players can't shout

Post 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?
Sorry for my english, I try to do my better (? ahaha ^^
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Players can't shout

Post 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
Image
User avatar
gabiito
Posts: 6
Joined: Mon Dec 13, 2010 4:25 am
Location: Montevideo, Uruguay

Re: Players can't shout

Post by gabiito »

yaay, hehe, thxs ^^
Sorry for my english, I try to do my better (? ahaha ^^
User avatar
regenx
Posts: 319
Joined: Sat Jul 17, 2010 6:55 am

Re: Players can't shout

Post by regenx »

But how i can make restricted globals like TRADE and SHOUT channels for low characters until 40 lvl?
Thx..
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Players can't shout

Post 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;}
Image
User avatar
regenx
Posts: 319
Joined: Sat Jul 17, 2010 6:55 am

Re: Players can't shout

Post 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!
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Players can't shout

Post by SolidSnake »

Yes like this :wink:

P.S. Remember to replace "shout" with "trade" chat in the message
Image
User avatar
regenx
Posts: 319
Joined: Sat Jul 17, 2010 6:55 am

Re: Players can't shout

Post by regenx »

LOL, thx again ... because i paste with 'shout' in both cases. :))
Post Reply