Jump to content

[Share] Java Anti-Phx Announce


Setekh

Recommended Posts

As u read in my other posts phx can be used on announcements only in l2j free packs

 

Edit by fakoykas:

Go to file Say2.java located here

C:\Server\gameserver\src\main\java\net\sf\l2j\gameserver\clientpackets

and then do what kidzor says

 

This code can be added after:

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

Easy easy to spot xD not too hard ul see it or search for the text in eclipse useing ctrl+f

 

 

 

This is the real code for anti-phx announce

 

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

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

it cold be simple to ad a diff file..but i dont have the time xD but maybe il add it later..

 

And message to a moderator..please delete the posts that my fellow romanians posted...thx

Link to comment
Share on other sites

This 2 guides are better explain than the other 2 (may be beacuse kidzor is the real maker of the guides xD

 

Btw good job man , keep up whit guides Anti Something =P we need them

Link to comment
Share on other sites

kidzor bro gg but one question: can you make it for l2j too?? ty

 

"phx can be used on announcements only in l2j free packs"

 

If you use L2J why you worry about it ?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



×
×
  • Create New...