Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

L2J Custom PvP Related Hero Status + Announce including

Initiate Mage
Joined
Jan 5, 2010
Messages
1
Reaction score
0
Hello , latest not share done so i will share a poop now .. its nothing to be serius with .. just some small crappy codes that will make your server great :D

Lets start ,

*L2PcInstance

find
Code:
public void increasePvpKills()

you will see under it thoose

Code:
{
        // Add karma to attacker and increase its PK counter
        setPvpKills(getPvpKills() + 1);
        CustomHeroSystem();

         // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
        sendPacket(new UserInfo(this));
        sendPacket(new ExBrExtraUserInfo(this));
    }

Now , after this you have to add

Code:
public void CustomHeroSystem()
    {
    	L2PcInstance activeChar = L2PcInstance.getClient().getActiveChar();
    	
        if (activeChar.getPvpKills() >= 5000)
        {
        	activeChar.sendMessage("You are now a server hero for beign so great fighter!");
      Announcements.getInstance().announceToAll(activeChar.getName() + "Is now a server's hero!");
        	activeChar.setHero(true); 
        }



If it gives you errors in announcements , you simple press right click on the error and select import announcements , and TADAMM


ps , code is tested on L2JServer Gracia Final part ;) thanks!
 
Last edited:
Back
Top