Skip to content

[Help] Clan Reputation

Featured Replies

Hello , i want to give clan reputation when player in clan pvp and they get clan reputation :).

L2J High Five Beta !

Its a config at gameserver/config/altsettings

 

# Reputation Score gained per Kill in Clanwar.

# Retail: 1

ReputationScorePerKill = 1

 

1 = how many clan reputations a clan gains for each kill with a clan war

Its a config at gameserver/config/altsettings

 

# Reputation Score gained per Kill in Clanwar.

# Retail: 1

ReputationScorePerKill = 1

 

1 = how many clan reputations a clan gains for each kill with a clan war

he doesn't want only for clan_war i think
  • Author

Sorry but l2j newest High Five Beta doesn't has altsettings anymore !

 

Yes i want every pvp get clan rep

well i think it's easy..

 

in l2pcinstance:

setPvpKills(getPvpKills() + 1); find this, and paste this under...:

if(getClan() != null)

        {

        getClan().setReputationScore(getClan().getReputationScore() + 500, true);

        }

 

ofc you can make it more advanced by adding and some messages etc..also..where 500 add how many clan rep you want to add every pvp kill

  • Author

Can't use that code , it shows errors

The method setReputationScore(int, boolean) from the type L2Clan is not visible

Can't use that code , it shows errors

The method setReputationScore(int, boolean) from the type L2Clan is not visible

so go there , and change the method to public.
  • Author

Ok it's work now thanks for your help :)

Use proper methods.

 

addReputationScore(numberToGive, true/false depending if you want to save)

takeReputationScore(numberToTake, true/false depending if you want to save)

  • Author

Thank you :)

question answered, topic closed

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.