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...