Welcome to the RaGEZONE - MMORPG development forums.

[Share] Java Anti-Phx Announce

This is a discussion on [Share] Java Anti-Phx Announce within the L2J Releases forums, part of the Lineage 2 - L2J category; As u read in my other posts phx can be used on announcements only in l2j free packs To fix ...

Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    Member
    Rank
    Member
    Join Date
    Feb 2008
    Posts
    37
    Liked
    0

    [Share] Java Anti-Phx Announce

    Click
    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
    Code:
          // 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;
          }
    And nobish way, add it after after:
    Code:
        @Override
        protected void runImpl()
        {
            L2PcInstance activeChar = getClient().getActiveChar();
    Peace :wink_6:
    Recruiting Core and Datapack Developers
    See here: L2J-Archid Recruiting developers

  2. #2
    Account Upgraded! :P
    Rank
    Member +
    Join Date
    Apr 2007
    Location
    Athens (GR)
    Posts
    596
    Liked
    3

    Re: [Share] Java Anti-Phx Announce

    maybe u have for l2emu?thanks

  3. #3
    Ultimate Member
    Rank
    Member
    Join Date
    Apr 2005
    Posts
    165
    Liked
    0

    Re: [Share] Java Anti-Phx Announce

    How add this code? Were add? File? How editor

  4. #4
    Bangin' my head
    Rank
    Member +
    Join Date
    Apr 2006
    Location
    Latvia
    Posts
    1,062
    Liked
    11

    Re: [Share] Java Anti-Phx Announce

    you have to modify the server core...
    and yes: there is a lack of information
    maybe you could tell a bit more info about installation...

  5. #5
    Account Upgraded! :P
    Rank
    Member +
    Join Date
    Apr 2007
    Location
    Athens (GR)
    Posts
    596
    Liked
    3

    Re: [Share] Java Anti-Phx Announce

    it will work on l2emu?

  6. #6
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Jan 2007
    Posts
    1,595
    Liked
    29

    Re: [Share] Java Anti-Phx Announce

    Those who can't add it without doing a simple search should shut down their server(s) right now...

  7. #7
    Bangin' my head
    Rank
    Member +
    Join Date
    Apr 2006
    Location
    Latvia
    Posts
    1,062
    Liked
    11

    Re: [Share] Java Anti-Phx Announce

    i totally agree with WulfgarXX!
    users who can`t add a simple java code to server core shouldn`t be holding a server...
    and those who can`t even set up a server should forget it right away...
    yes, there would be less servers, but, right now, most of them are noob servers who can`t do a thing, and can`t write a single script...

  8. #8
    Neper Freedom to Serve
    Rank
    Member +
    Join Date
    Dec 2006
    Location
    Greece,Athens
    Posts
    665
    Liked
    0

    Re: [Share] Java Anti-Phx Announce

    Totally agree with with droppo,WulfgarXX and RIn4a. but i think is little out of topic.
    However a little more info about it for starters it will be better but everyone have his method.
    GO FERRARI!!
    (Ferrari forever,Kimi always)

    World Drivers Champions: 1952, 1953 (Alberto Ascari) 1956 (Juan Manuel Fangio) 1958 (Mike Hawthorn) 1961 (Phil Hill) 1964 (John Surtees) 1975, 1977 (Niki Lauda) 1979 (Jody Scheckter) 2000, 2001, 2002, 2003, 2004 (Michael Schumacher) 2007 (Kimi-Matias Räikkönen)

  9. #9
    Registered
    Rank
    Member
    Join Date
    Jul 2007
    Posts
    8
    Liked
    0

    Re: [Share] Java Anti-Phx Announce

    Quote Originally Posted by KidZoR View Post
    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
    Code:
          // 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;
          }
    And nobish way, add it after after:
    Code:
        @Override
        protected void runImpl()
        {
            L2PcInstance activeChar = getClient().getActiveChar();
    Peace :wink_6:
    which the archive .class that I have that to compile?

  10. #10
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Jul 2004
    Location
    Elmore
    Posts
    3,305
    Liked
    12

    Re: [Share] Java Anti-Phx Announce

    There is no .class modding on an open source project... so cut it off with trying to decompile something that is already for free...

    Droppo.-

  11. #11
    Member
    Rank
    Member
    Join Date
    Jul 2007
    Location
    Lithuania
    Posts
    51
    Liked
    0

    Re: [Share] Java Anti-Phx Announce

    Quote Originally Posted by Droppo View Post
    totally agree with you guys... those lame noob servers are the ones who makes L2J look bad with all those hosted-on-my-desktop-pc lame servers... What's next come up and say "you born knowing everything?" no I didn't... but I readed alot and did damn soo many tests on my own and even modded the source code without actually having a server before hosting a server... so that's not a valid excuse.

    Droppo.-
    Tomorrow that great creaters say: During crash of our datatables, we're must do wipe of server. We're sorry and hope it'll never repeats again...
    BTW, nice antiphx enchant, it goes great to my server.

  12. #12
    Account Upgraded! :P
    Rank
    Member +
    Join Date
    Apr 2007
    Location
    Athens (GR)
    Posts
    596
    Liked
    3

    Re: [Share] Java Anti-Phx Announce

    in wich .java archive i have to compile this?:P

    thanks

  13. #13
    Registered
    Rank
    Member
    Join Date
    Jul 2007
    Posts
    8
    Liked
    0

    Re: [Share] Java Anti-Phx Announce

    Which archive I must edit then? I use the L2JFREE.

  14. #14
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Jan 2007
    Posts
    1,595
    Liked
    29

    Re: [Share] Java Anti-Phx Announce

    Check the Say2.java file located in \gameserver\network\clientpackets\

  15. #15
    Registered
    Rank
    Member
    Join Date
    Jul 2007
    Posts
    8
    Liked
    0

    Re: [Share] Java Anti-Phx Announce

    I have that to place the code in line 85 of the archive say2java.class and later compiling it?

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •