Jump to content
  • 0

[Help] Reward pvp and hero every week


AdrenalinE

Question

7 answers to this question

Recommended Posts

  • 0

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 ;)

 

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

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

 

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...