Thread: Pk Point System - Opponent gets token?

Results 1 to 4 of 4
  1. #1 Pk Point System - Opponent gets token? 
    Registered Member
    Join Date
    Dec 2011
    Posts
    23
    Thanks given
    1
    Thanks received
    0
    Rep Power
    0
    Well, when I kill somebody, they get the fist of guthix token!

    Here's my code:

    Code:
    public void increaseKillCount(Player killed) {
    		killed.deathCount++;
    		PkRank.checkRank(killed);
    		if (killed.getSession().getIP().equals(getSession().getIP()))
    			return;
    		killCount++;
    		PkPoints++;
    		getInventory().addItem(12852, 1);
    		getPackets().sendGameMessage(
    				"<col=ff0000>You have killed " + killed.getDisplayName()
    						+ ", you have now " + killCount + " kills.");
    		getPackets().sendGameMessage("You now have " + PkPoints + ".");
    		PkRank.checkRank(this);
    It seems okay to me.

    Is there anything wrong with this? If you're willing to TV me, please leave your skypes, thank you a lot.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    what's your question?
    getInventory().addItem(12852, 1); ?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2011
    Posts
    23
    Thanks given
    1
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Datbeastmayne View Post
    what's your question?
    getInventory().addItem(12852, 1); ?
    I'm asking, why does the opponent get the token whereas the killer doesn't?
    Reply With Quote  
     

  4. #4  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    Find where the increaseKillCount method is being called so you know where the sendDeath for pking is located, i think its wilderness.java or something then add the code there instead?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Better Pk Point System
    By Vintage in forum Tutorials
    Replies: 7
    Last Post: 09-11-2009, 06:42 PM
  2. Help with pk point system
    By Pitx in forum Help
    Replies: 0
    Last Post: 08-20-2009, 08:34 PM
  3. Pk point system.
    By munch in forum Help
    Replies: 10
    Last Post: 08-15-2009, 04:41 PM
  4. [508] Pk point System
    By Ninja assassin in forum Requests
    Replies: 0
    Last Post: 04-18-2009, 03:08 PM
  5. PK point system
    By Patrity in forum Help
    Replies: 1
    Last Post: 04-14-2009, 03:58 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •