Jump to content

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


Recommended Posts

Posted

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

Posted

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

Posted

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" ;)

Posted

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
Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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 Disabled AdBlock