Jump to content

Question

4 answers to this question

Recommended Posts

  • 0
Posted

L2PcInstance @doDie

 

 

                            // if clans got mutual war, then use the reputation calcul
                            if (_clan.isAtWarWith(pk.getClanId()) && pk.getClan().isAtWarWith(_clan.getClanId()))
                            {
                                // when your reputation score is 0 or below, the other clan cannot acquire any reputation points
                                if (getClan().getReputationScore() > 0)
                                    pk.getClan().addReputationScore(1);
                                // when the opposing sides reputation score is 0 or below, your clans reputation score doesn't decrease
                                if (pk.getClan().getReputationScore() > 0)
                                    _clan.takeReputationScore(1);
                            }

 

Just add your line after reputation reward, like

 

 

pk.addItem("reward", 57, 100, pk, true);

 

Do not forget to open the brackets.

 

 

                                if (getClan().getReputationScore() > 0)
                                {
                                    pk.getClan().addReputationScore(1);
                                    pk.addItem("reward", 57, 100, pk, true);
                                }
  • 0
Posted (edited)

How i can add pvp reward for clan enemy kill ? (get 20 gold coin per clan war kill )

 

if is it java code please share it with guiede ...

ty

here is l2j share section read forum rules and other time make topic in request help section.

Edited by nikosdevil20
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..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock