Skip to content

[Share]When you take a pvp kill your tittle changed to the Victims name.iPwned..

Featured Replies

So this is my first coding

so when you take a pvp kill you tittle changed to the victims name.. ex.:iPwned-->Victims name

 

So here we go

### Eclipse Workspace Patch 1.0
#P L2_GameServer
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 3605)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -5642,10 +5642,15 @@
     * Increase the pvp kills count and send the info to the player
     *
     */
-    public void increasePvpKills()
+	public void increasePvpKills()
    {
+    	L2PcInstance cha = getClient().getActiveChar();
+    	L2PcInstance target = (L2PcInstance) cha.getTarget();
+    	
        // Add karma to attacker and increase its PK counter
        setPvpKills(getPvpKills() + 1);
+        
+         cha.setTitle("iPwned_ " + target.getName() + ".");

        // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
        sendPacket(new UserInfo(this));

 

Thanx for helping at Intrepid

Good Job mace , i didn't even though you will do this ..

 

 

I Am impressive , great!

really cool. i will try do set it in my server when i will know to do it (started today with servers)

Man seriously :D

 

im Intrepid :D

Actually, change it to this:

cha.setTitle("iPwned " + target.getName() + ".");

Make a gap from "iPwned" if not, here's what the title will be "iPwnedHorus" and you want "iPwned Horus" ;)

  • Author

Actually, change it to this:

cha.setTitle("iPwned " + target.getName() + ".");

Make a gap from "iPwned" if not, here's what the title will be "iPwnedHorus" and you want "iPwned Horus" ;)

thanx horus..i will fix them when i will have time

Just change the line loool.

You might wanna check the player's name size too since title has a limit and you're already putting iPwnt.

  • Author

ok thanx horus.i fixed it

Nice idea i have to agree.

is if possible to add a config option for each player ?

smth like a voicecommand ?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.