Jump to content
  • 0

Question

Posted

I want to add this code: http://www.maxcheaters.com/topic/49498-sharehero-reward-for-pvps/?hl=%2Bhero+%2Breward+%2Bpvps

Its about giving hero at x pvp's.
 

+public void increasePvpKills(L2PcInstance activeChar)

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

I wonder if there is a way of keeping 

- public void increasePvpKills()

beacause when i change the public void to

public void increasePvpKills(L2PcInstance activeChar) 

  i get erros in some other codes.

Recommended Posts

  • 0
Posted (edited)

What boorio mean is to add a check on Enterworld.java that check if player\s pvps are above X and setHero(true) everytime. 

Edited by AccessDenied
  • 0
Posted

What boorio mean is to add a check on Enterworld.java that check if player\s pvps are above X and setHero(true) everytime. 

i don't know who boorio is :P but yeah that's what i meant...

  • 0
Posted (edited)

i don't know who boorio is :P but yeah that's what i meant...

lel sorry :P boorinio <3 i meant

 

He is the best guy in the forum and best best coder evar :3 

Edited by AccessDenied
  • 0
Posted

i don't know who boorio is :P but yeah that's what i meant...

Thanks Boorinio, it actaually worked and was easy to adapt :D

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..