Jump to content
  • 0

[Request] Pvp kills to Pk kills


brett16
 Share

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.
 Share



  • Posts

    • Hello everyone,   Does anyone know how to turn off or to properly setup "proxy'? I'm trying to connect on server and i get error in Login server:   ========================================================== Error in Login Server ========================================================== "[15:01:53]  INFO IP: 84.126.108.137 Login: test Assigned to Proxy: 127.0.0.1" ==========================================================   And in proxies.xml say something about .properties file, but i cant find that file.     ========================================================== proxies.xml ========================================================== <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE list SYSTEM "proxies.dtd"> <!-- In order to make this file be in use, EnableProxies in server.properties MUST be set to true --> <!-- This list should contain GameServer IPs. IP of the GameServer will be chosen for Player during Server Selection, based on Mask of his IP --> <!-- For example, if IP of the player is 153.4.138.226, all of the masks below will be checked if IP matches range of mask --> <!-- Mask 0.0.0.0/3 covers IPs from 0.0.0.0 to 31.255.255.255. Mask 32.0.0.0/3 covers IPs from 32.0.0.0 to 63.255.255.255 and so on --> <!-- So if IP of the player matches below mask, value in "ip" will be given to him, to connect with GameServer --> <!-- If player IP will not match any mask, Error in LoginServer logs will be printed --> <list>     <level min="40" max="86" ip="127.0.0.1"/>     <minChatMessages party="3" clan="5" ip="127.0.0.1"/>     <minChatMessages shout="5" ip="127.0.0.1"/>     <minChatMessages all="15" trade="5" ip="127.0.0.1"/>     <minChatMessages pm="3" clan="5" ip="127.0.0.1"/>     <mask mask="0.0.0.0/4" ip="127.0.0.1"/>     <mask mask="16.0.0.0/4" ip="127.0.0.1"/>     <mask mask="32.0.0.0/4" ip="127.0.0.1"/>     <mask mask="48.0.0.0/4" ip="127.0.0.1"/>     <mask mask="64.0.0.0/4" ip="127.0.0.1"/>     <mask mask="80.0.0.0/4" ip="127.0.0.1"/>     <mask mask="96.0.0.0/4" ip="127.0.0.1"/>     <mask mask="112.0.0.0/4" ip="127.0.0.1"/>     <mask mask="128.0.0.0/4" ip="127.0.0.1"/>     <mask mask="144.0.0.0/4" ip="127.0.0.1"/>     <mask mask="160.0.0.0/4" ip="127.0.0.1"/>     <mask mask="176.0.0.0/4" ip="127.0.0.1"/>     <mask mask="192.0.0.0/4" ip="127.0.0.1"/>     <mask mask="208.0.0.0/4" ip="127.0.0.1"/>     <mask mask="224.0.0.0/4" ip="127.0.0.1"/> </list> ========================================================== ==========================================================   If anyone could help it would be great.  
    • @Celestinewasnt this guy banned for selling shared stuff? 😄
    • I know xD ... please clean the topic. It's okay!
    • link off    anyone can share it ?   thks
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disbaled AdBlock