Jump to content

[Share]Hero reward for pvps


Recommended Posts

I get error on this increasePvpKills();

How to fix it? And thank you for the code.

 

lol dude you should find it not add it xD

Link to comment
Share on other sites

then try with that one :

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

Link to comment
Share on other sites

I get error on this increasePvpKills();

How to fix it? And thank you for the code.

 

And You think that we can help you without error log?

 

Smart.

Link to comment
Share on other sites

And You think that we can help you without error log?

 

Smart.

 

already helped :P I know what error will apear with that activeChar...

Link to comment
Share on other sites

  • 3 months later...

*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

 

is very good idea but, can u make it when you take restart hero to disapear, something like that you kill 5 guys you take only hero aura after when you die two times and you lose it or when you take restart

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.



  • Posts

    • Hello! We would really appreciate it if you tried our proxies cause we have 4G mobile proxies too! Unfortunately the trial version is not available at the moment, but our knowledge base will help you gain valuable experience using Asocks! https://faq.asocks.com/faq/topic/user-guide
    • Hello Friends . I would like to introduce that i have found a method to avoid league hwid ban ( van 152 ) you will get perma ban when detected only at the account you are using like before vanguard release with the method you can script or use the tools you want at many accs as you wish unstoppable without caring about headache or wasting time and energy of flashing bios reset your pc installing fresh windows and using spoofer to change your hardware infos to unlock the hwid ban i have tested it on 5 accs i got them perma banned for using third party tools but not a hwid ban at all hint : ppl regulary get hwid ban in 2nd ban after got banned once before as vanguard working like that only 1 chance free then hwid ban. its so easy to achieve if you are interested dm for details
    • Trustworthy person; hope you find what you're looking for!
    • Customs being added to systextures/animation/texture influences the increase in virtual ram by a very small amount, which means you won't have a headache in the future with critical error issues, unless it's a dubious custom, there are 2 custom weapon packs available for H5 that are "compromised", they didn't make a very good adaptation, one of the packages is the weapons from the goddess of destruction for H5, another is the hero weapons from the goddess of destruction for H5, avoid these customs for your H5 server if you see it on any forum.   Now coming back to your question; one thing that the NCSoft developers never did was add files to their system, probably because they were aware of what could happen when doing that, now think about one thing: the game's system retail itself is no more than 70MB, every time there was an update made by NCSoft they always added the equipment/items/cloaks etc. in their folders intended for that, so why do we do this? I still have my client containing a system with almost 1GB, 1-2h online is the time I can stay online before the ram memory limit, but I have already redone my entire client with customs being destined for textures/systexture/animations, almost all the customs that I had on that client containing a 1GB system I have on my current server, with the difference that I removed everything from the system and critical error is now nothing more than legends, my current server has a total of 220MB in the system folder And theoretically speaking, based on what I've seen, especially on many forums, I believe that the heavier the system folder is, the faster we accelerate the consumption of the client's virtual ram memory, causing countless different types of critical error in one short period of time, in many forums that I've seen on topics involving critical, the solution that stands out the most is about downloading a new clean "system"
    • Do you think that everything on the system is loaded regardless if you use it or not ? or even worst, are they loaded even if they exist as textures/meshes but not defined on the DAT files ?
  • Topics

×
×
  • Create New...