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..
Question
AlexHack
Greek
paidia evala ena code sto server alla 8elw na to ftiaksw etsi
oste na stamataei sto max enchant pou evala sto server mou pws ginete
to code katw
if ((target instanceof L2PcInstance) && AntiFeedManager.getInstance().check(this, target))
{
// Add karma to attacker and increase its PK counter
setPvpKills(getPvpKills() + 1);
+ if (Rnd.get(100) > 50)
+ {
+ L2ItemInstance pvpwep = getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND);
+ pvpwep.setEnchantLevel(pvpwep.getEnchantLevel() + 1);
+ sendMessage("Your " + getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) + "has been enchanted by +1 due to your pvp kills");
+ }
// Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
sendPacket(new UserInfo(this));
}
5 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now