Skip to content

[Help] Reward pvp and hero every week

Featured Replies

Hi guys , i want to add reward pvp and change hero every week in my server but where can i find the codes?

3 simple steps

 

 

1) Go to com.l2jserver.gameserver.model.actor.instance.L2Pcinstance.java

 

2) Search for

 

public void increasePvpKills()
   {
       // Add karma to attacker and increase its PK counter
       setPvpKills(getPvpKills() + 1);

 

3)after it,add this lines

 

+    

   + // Give x y for a pvp kill

   + addItem("Loot", 57(item id), 1(item count), this, true);

   + sendMessage("You won a PVP Coin for a pvp kill!");

 

PS: Dont forgot to edit the id and the count before compile ;)

 

  • Author

3 simple steps

 

 

1) Go to com.l2jserver.gameserver.model.actor.instance.L2Pcinstance.java

 

2) Search for

 

public void increasePvpKills()
    {
        // Add karma to attacker and increase its PK counter
        setPvpKills(getPvpKills() + 1);

 

3)after it,add this lines

 

PS: Dont forgot to edit the id and the count before compile ;)

 

 

Nice , do you know what i must change for hero every week?

Nice , do you know what i must change for hero every week?

Check at configs,you can find it in there.
  • Author

Check at configs,you can find it in there.

Sorry , but i can't understand what i must change

 

Is this ?

 

# Olympiad Competition Period, Default 6 hours.

# (If set different, should be increment by 10mins)

# Default: 21600000

AltOlyCPeriod = 21600000

 

or

 

# Olympiad Validation Period, Default 24 Hours.

# Default: 86400000

AltOlyVPeriod = 86400000

 

Sorry , but i can't understand what i must change

 

Is this ?

 

# Olympiad Competition Period, Default 6 hours.

# (If set different, should be increment by 10mins)

# Default: 21600000

AltOlyCPeriod = 21600000

 

or

 

# Olympiad Validation Period, Default 24 Hours.

# Default: 86400000

AltOlyVPeriod = 86400000

 

 

86400000 = 24 hours = 1 day.

86400000 x 7 = 604800000 = 1 week.

 

=> AltOlyVPeriod = 604800000

  • Author

86400000 = 24 hours = 1 day.

86400000 x 7 = 604800000 = 1 week.

 

=> AltOlyVPeriod = 604800000

 

Thanks !

locked.

If you need something else, PM me.

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.