Grim. Posted October 6, 2009 Share Posted October 6, 2009 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 Quote Link to comment Share on other sites More sharing options...
RєVєnGeR^ Posted October 6, 2009 Share Posted October 6, 2009 Good Job mace , i didn't even though you will do this .. I Am impressive , great! Quote Link to comment Share on other sites More sharing options...
fuers Posted October 6, 2009 Share Posted October 6, 2009 really cool. i will try do set it in my server when i will know to do it (started today with servers) Quote Link to comment Share on other sites More sharing options...
ĐarkSlayer Posted October 6, 2009 Share Posted October 6, 2009 Hm nice job babe but it will better if u add a config option :P Quote Link to comment Share on other sites More sharing options...
WizZy™ Posted October 6, 2009 Share Posted October 6, 2009 better make it with chat shout :P Quote Link to comment Share on other sites More sharing options...
Intrepid Posted October 6, 2009 Share Posted October 6, 2009 Man seriously :D im Intrepid :D Quote Link to comment Share on other sites More sharing options...
Horus Posted October 6, 2009 Share Posted October 6, 2009 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" ;) Quote Link to comment Share on other sites More sharing options...
Grim. Posted October 6, 2009 Author Share Posted October 6, 2009 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 Quote Link to comment Share on other sites More sharing options...
Horus Posted October 6, 2009 Share Posted October 6, 2009 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. Quote Link to comment Share on other sites More sharing options...
Grim. Posted October 6, 2009 Author Share Posted October 6, 2009 ok thanx horus.i fixed it Quote Link to comment Share on other sites More sharing options...
Neo1993k Posted October 6, 2009 Share Posted October 6, 2009 Good job, thanks for share Quote Link to comment Share on other sites More sharing options...
johnnovi Posted October 6, 2009 Share Posted October 6, 2009 Thanks i config my option :P Quote Link to comment Share on other sites More sharing options...
HardstyleMxc Posted October 7, 2009 Share Posted October 7, 2009 Great job ;) Quote Link to comment Share on other sites More sharing options...
TuborgGreen Posted October 7, 2009 Share Posted October 7, 2009 very nice Quote Link to comment Share on other sites More sharing options...
jinsu Posted October 13, 2009 Share Posted October 13, 2009 Nice idea i have to agree. is if possible to add a config option for each player ? smth like a voicecommand ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.