Jump to content
  • 0

[Request] Pvp kills to Pk kills


brett16

Question

Im looking for something that will take all the pvp kill count and switch it to PK count when the player dies.

For example.

Player kills 4 people so its Pvp 4/ 0 PK. But when he dies it switches to Pvp 0 / 4 PK

If someone could help me out that would be great.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

something like this?

 

put this in L2PcInstance.java

==========================================

+private int unique_pvp_count = 0;

 

at >>     public void increasePvpKills()

+unique_pvp_count++;

 

at>>      public boolean doDie(L2Character killer)

+if (unique_pvp_count > 0)

+{

+ setPvpKills(getPvpKills() - unique_pvp_count);

+ setPkKills(getPkKills() + unique_pvp_count);

+ unique_pvp_count = 0;

+}

==========================================

 

or u need something like this:

==========================================

+private int unique_pvp_count = 0;

 

at >>     public void increasePvpKills()

+unique_pvp_count++;

 

at>>      public boolean doDie(L2Character killer)

+if (unique_pvp_count > 5)

+{

+ setPvpKills(getPvpKills() - unique_pvp_count);

+ setPkKills(getPkKills() + unique_pvp_count);

+ unique_pvp_count = 0;

+}

==========================================

 

Link to comment
Share on other sites

  • 0

Thank you

 

Edit: After testing this when you kill someone it goes straight to Pk count. I would like for your pvps to stay on the pvp side kinda like a killing spree. But when you die it adds it to the pk side.

 

Example: PvP 10 / 100 PK You die it ends up being PvP 0 / 110 PK

Link to comment
Share on other sites

  • 0

theres only one thing that can help you rlly and im sorry to say it, but its learning java ^^

 

also.. you already have all the code youd need for it so... use brain and play with it... from this point on it slike logo blocks =P

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...