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.


  • Posts

    • Welcome to SmurfsZone   Buy League of Legends accounts across all servers and jump straight into Ranked Games with amazing quality and support.   Why Choose SmurfsZone? 24/7 Instant Delivery: Get your full access LoL smurf account immediately. 100% Hand-Leveled: High-quality accounts leveled by hand. Versatile MMR Options: High MMR, Standard MMR, Fresh MMR (ARAMs), and Ranked accounts available. Valorant Accounts: Expand your gaming experience. Our Commitment to You: Unopened Loot: Customize your champion pool. Lifetime Warranty: Valid if you change the email, username, and password upon purchase. Password Changeable: Ensure your account's security. Full Recovery Information: Complete access to account recovery details. Unverified and Changeable Email: Easy to personalize and secure your account. Completely Unranked: Fresh start with no ranked history in any season. Responsive Customer Support: Our dedicated team is available to assist you 24/7.   Experience the best place to buy League of Legends accounts with exceptional quality and dedicated support. We're here for YOU!
    • Thanks! I'll take a second look and let you know if my implementation of the clearCircle() helps with the stuttering once I find time for some extensive testing.
    • Thank you for your reply. I have removed it from the L2Server.exe file, but the L2Server still crashes. It doesn't crash if I don't start l2npc, otherwise it will crash within a few days at the latest.
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore1 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11
    • L2 ArenaWar: Low Rate PvP Server with Free Buffs & Autofarm [PVP]⚔️ [Free]🆓 Classic Interlude with  3x XP rates! Free starter pack(no grade) to kickstart your adventure! Autofarm for convenient grinding! Free buffs to keep you fighting fit! (2 job buffs) No experience loss on death! (Except with Karma) Clear Karma system to keep things fair! ⚖️ Active community of 800-1k players! Join our Discord to learn more! >> Discord <<     Server website: https://l2arenawar.com/en/    
  • Topics

×
×
  • Create New...