Jump to content

[Share]Hero reward for pvps


Recommended Posts

*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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

i think its like everytime you get 5000 pvps ...

 

 

anyway thanks for this and soz (u know about what)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...