Ok.. here's how it should be :D
public void CustomHeroSystem()
{
if (!isHero() && getPvpKills() == 5000)
{
//announce & message ONLY when they reach 5000 pvp.
sendMessage("You are now a server hero for being so great fighter!");
Announcements.getInstance().announceToAll(getName() + " Is now a server's hero!");
setHero(true);
}
and Now in EnterWorld.java
if (!activeChar.isHero() && activeChar.getPvPKills > 5000)
setHero(true);
So now the announce is only been announced if the char is not hero already and ONLY when he reaches 5000 pvps..
Also he doesn't lose hero at his relogin =)
Regards.
I've told you EXACTLY the same thing with your previous share..
So what this code does as we see it now.. Each time someone with more than 5000 pvps gets a pvp, he's being announced as a hero. Which is wrong. Should be displayed only the first time.
Anyway thanks for trying, but try more & improve it =)
An exeis interlude ftaiei auto.. to interlude trabaei mexri 4 xaraktires sto multisell.. px
1234 to pernei kanonika enw to 12345 dn 8a to parei k 8a to bgalei ws mauro eikonidio.
Dokimase na pareis ena clean system, to pio pi8anon einai na uparxei prostasia sto system enantion t IG walker..
Kapou sto forum eixa dei ena topic me clean systems, psa3to.
An dn kanw la8os to IG einai p dn douleuei se windows 7 mexri stigmis.. opote pare to OOG
an dn se boleuei to OOG h o server p paizeis exei prostasia dokimase L2Net IG to opoio douleuei mia xara se Windows 7.
Btw dn xreiazotan na kaneis post k sto aggliko k sto elliniko section..
Nice posts stef, but what for you posted the fix here..
By tomorrow all the projects will implement it, all the home servers will be up again. Sometimes, some things shouldn't go public.
Interlude mmocore is incomplete, i know. But in order to fix THIS, i'm talking bout this right now you can fix it in 2 lines.
Please fix your title to something better, if i hadn't seen this before i couldn't understand what it is. Imagine the new members.
Thanks.
Depends, server & project.
It's been fixed in many interlude projects but will work on L2jserver, l2jfree, l2emu, l2oneo and more.
In l2jserver & l2jfree it was fixed on gracia part 2. Should work on previous revisions.
What's up with the russians, never heard of English?
I can't say, it's cool to use your own language but when it comes to internet there are visitors from many other countries, you can't make them know russian lol.