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

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...