brett16 Posted August 15, 2009 Posted August 15, 2009 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.
0 down Posted August 15, 2009 Posted August 15, 2009 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; +} ==========================================
0 brett16 Posted August 17, 2009 Author Posted August 17, 2009 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
0 sweetparanoid Posted August 18, 2009 Posted August 18, 2009 bump Dont Double Post And Spawm With " bump " That You Asked As You See Noone Can Help You :P
0 ~Sensei~ Posted August 18, 2009 Posted August 18, 2009 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
Question
brett16
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.
5 answers to this question
Recommended Posts