Thread: Pkp isnt given.

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Pkp isnt given. 
    Registered Member resolationx's Avatar
    Join Date
    Dec 2011
    Age
    28
    Posts
    593
    Thanks given
    8
    Thanks received
    9
    Rep Power
    14
    When someone kills someone in game, it said you were rewarded with 5 pkp. But it doesnt get given to you, and cant be spent in the shop.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Mar 2011
    Posts
    527
    Thanks given
    89
    Thanks received
    49
    Rep Power
    97
    Search this in PlayerAssistant.
    Code:
    	public void applyDead() {
    You can add your piece in where you find it's necessary, if you don't know what your pkp variable is then here's mine
    Code:
    o.pkPoints += 1;
    and of coarse you can change the 'o.' with 'c.' if needed, hope this helps, and if it didn't, sorry I'm very tired.
    sweet
    Reply With Quote  
     

  3. #3  
    Registered Member resolationx's Avatar
    Join Date
    Dec 2011
    Age
    28
    Posts
    593
    Thanks given
    8
    Thanks received
    9
    Rep Power
    14
    Should i add
    o.pkPoints += 1;

    under the first thing?
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Mar 2011
    Posts
    527
    Thanks given
    89
    Thanks received
    49
    Rep Power
    97
    You can add it under 'c.isDead = true;'. If that doesn't work, let me know.

    Edit: You can also add an else if people get pkp outside of the wild for dying, again sorry if this is wrong, just very very tired.

    Code:
    		} else {
    			if (!c.inWild()) {
    				c.killerId = findKiller();
    				Client o = (Client) PlayerHandler.players[c.killerId];
    				if (o != null && c.killerId != c.playerId) {
    					if (c.connectedFrom.equals(o.connectedFrom)) {
    						o.sendMessage("You are killing someone from the same IP address as you.");
    						return;
    					} else {
    						if(!PlayerKilling.hostOnList(o, c.connectedFrom)) {
    							PlayerKilling.addHostToList(o, c.connectedFrom);
    							o.pPoints+=1;
    							o.sendMessage("You have received a point, you now have "+o.pkPoints+" pk points.");
    						} else {
    							o.sendMessage("You have recently defeated "+c.playerName+", you don't receive any pk points.");
    						}
    					}
    				}
    			}
    		}
    sweet
    Reply With Quote  
     

  5. #5  
    Registered Member resolationx's Avatar
    Join Date
    Dec 2011
    Age
    28
    Posts
    593
    Thanks given
    8
    Thanks received
    9
    Rep Power
    14
    Im not doing it now. Sicne this computer isnt hosting. But i will get back to you on it.
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Mar 2011
    Posts
    527
    Thanks given
    89
    Thanks received
    49
    Rep Power
    97
    Quote Originally Posted by resolationx View Post
    Im not doing it now. Sicne this computer isnt hosting. But i will get back to you on it.
    Ok, hope it works out for you.
    sweet
    Reply With Quote  
     

  7. #7  
    Registered Member resolationx's Avatar
    Join Date
    Dec 2011
    Age
    28
    Posts
    593
    Thanks given
    8
    Thanks received
    9
    Rep Power
    14
    Edit: i found out that the person who dies gets the pkp.
    Reply With Quote  
     

  8. #8  
    #Winning

    Join Date
    Apr 2011
    Age
    28
    Posts
    2,245
    Thanks given
    367
    Thanks received
    388
    Rep Power
    1187
    You put it right where the message that says you have received them is.


    Vouches
    Spoiler for Vouches:

    Quote Originally Posted by Exile rsps View Post
    Vouch thanks for that pic
    Quote Originally Posted by bwuk _im_pb View Post
    i vouch for charlie hes legit
    Quote Originally Posted by Pastaway
    Vouch for 'Charlie. Added a tut to my server I couldn't add and payed him after =]
    Quote Originally Posted by mongolias
    Vouch for 'Charlie. Sold me a banner, the trade went quick and efficiently.
    Quote Originally Posted by Lane
    Vouch for charlie, he is #1
    Quote Originally Posted by Raw Envy View Post
    Vouch for Charlie.
    Quote Originally Posted by -Null Code-
    Vouch Legit bought rs membership
    Quote Originally Posted by tucybro
    Traded with Charlie, went smoothly I went first and he paid promptly without and issues, great trader!



    Reply With Quote  
     

  9. #9  
    Registered Member resolationx's Avatar
    Join Date
    Dec 2011
    Age
    28
    Posts
    593
    Thanks given
    8
    Thanks received
    9
    Rep Power
    14
    What do i put?Im so confused.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Mar 2011
    Posts
    126
    Thanks given
    4
    Thanks received
    3
    Rep Power
    4
    Code:
    				if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) {
    					o.pkPoints = (o.pkPoints + 3);
    					o.sendMessage("You recieved 3 Killing Points.");
    @ playerassistant applydead
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Replies: 19
    Last Post: 08-13-2011, 09:50 PM
  2. Replies: 4
    Last Post: 03-15-2011, 10:08 PM
  3. my ep isnt getting up..
    By blacksh00t in forum Help
    Replies: 12
    Last Post: 10-18-2009, 11:45 PM
  4. no-ip isnt working any more
    By Pitx in forum Help
    Replies: 7
    Last Post: 07-24-2009, 03:14 AM
  5. Why Isnt This Working?
    By Mr NYC in forum Help
    Replies: 7
    Last Post: 06-15-2009, 07:43 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •