Jump to content

Recommended Posts

Posted

*L2PcIstance.java

 

Hello there , i got inspired for that by L2Core (old faction) where u had an amount of PvPs you could gain hero status .. so here its the code..

 

(currently the amount of pvp's you need to have is seted to 5000 , but can simple change it)

 

Tested on L2J Archid

 

find this

public void increasePvpKills()

 

 

and change it like this

 public void increasePvpKills(L2PcInstance activeChar)

 

And then paste this

if (activeChar.getPvpKills() >= 5000)
        {
       activeChar.sendMessage ("Congratz , you are now a hero ");
        activeChar.setHero(true);
        }
        

 

 

 

down of this

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

 

 

 

Credits goes to Revenger for www.maxcheaters.com

Posted

2 words.

 

good work . i really enjoy seeing my help giving seeds

 

u and Krash do a great job now with java, lets see what Mace will do :)

Posted

well Ventic a.k.a Legollas was faster than me XD btw i test the code i edit the pvp's to 10 ofc XD cause i made dual box in a test server on my pc and it work's cool Good Job Ριβέντζεr keep up sharing cool things :)

Posted

The code is wrong, each time you get pvp the message will appear. Let me correct you.

 

        if (activeChar.getPvpKills() >= 5000 && !activeChar.isHero())
        {
        	activeChar.sendMessage ("Congratz , you are now a hero ");
        	activeChar.setHero(true);
        }

 

that should do it.

Posted

WTF, For three rows?

To make it even worse: three rows that have been shared before by Vago, and similar systems that been shared often before. I really should start doing this stuff too xD

 

Anyway; thanks, I guess

Posted

it goes every time that is more than 5000 >

exactly, the code i gave above should fix it.

Posted

Sorry Revenger !! But i think i have to fix karma you have 18 :D

 

Karma Fixed

 

Nice Share XD

off topic

you should read this one http://www.maxcheaters.com/forum/index.php?topic=61847.0 and if someone may to restore his karma you're not me or you for sure a moderator must do that btw do not abuse your "power" karma restored (soz for the restore but...)until a moderator will check it and if you can make your own code like Revenger's did

Posted

Revenger you still make useless codes cmon you can do better :D

 

PS.: missing enterworld pvp count check, missing alredy hero check , try to post diff file instead of that

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


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock