Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Welcome Guest!

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Sign in to follow this  
Guest Alex

[Share] Java Anti-Phx Announce

Recommended Posts

Guest Alex

As u read in my other posts phx can be used on announcements only in l2j free packs
To fix it fallow this sh1t xD

Add this one after line 80

// If no or wrong channel is used - return
if (_type
== SystemChatChannelId.Chat_None || _type ==
SystemChatChannelId.Chat_Announce || _type ==
|| _type == SystemChatChannelId.Chat_System || _type == SystemChatChannelId.Chat_Custom
|| (_type == SystemChatChannelId.Chat_GM_Pet && !activeChar.isGM()))
_log.warn("[Anti-Phx] Illegal chat channel was used.");

if (activeChar == null)
_log.warn("[say2.java] Active Character is null.");

And nobish way, add it after after:

protected void runImpl()
L2PcInstance activeChar = getClient().getActiveChar();

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this