Thread: how to stop pkp farm and how to make a shop that pays pkp for pkp items

Results 1 to 7 of 7
  1. #1 how to stop pkp farm and how to make a shop that pays pkp for pkp items 
    Registered Member
    Join Date
    Jan 2012
    Posts
    49
    Thanks given
    0
    Thanks received
    8
    Rep Power
    7
    i need help to make that if same ip kill they dont receive any pkp
    and i get alot of ppl want me to trade their pkp items for their pkp back i want
    to make a shop that would buy them back for half price

    and also chaotic crossbow dont work on players it works only on nps how do i fix that
    plz help
    my email is :[email protected]
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2012
    Posts
    49
    Thanks given
    0
    Thanks received
    8
    Rep Power
    7
    bump i can pay rsgp for this service
    Reply With Quote  
     

  3. #3  
    Legends Never Die


    Join Date
    Nov 2009
    Posts
    4,289
    Thanks given
    91
    Thanks received
    1,216
    Rep Power
    5000
    Easy, make it so only 1 IP per user, and if you kill the same person twice you don't get PKP.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2012
    Posts
    49
    Thanks given
    0
    Thanks received
    8
    Rep Power
    7
    first i need u to tell me how to do that
    but i dont care if they attack the same person wat i dont want that 1 person open 2 acconts and keep killing him self
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2009
    Posts
    1,312
    Thanks given
    148
    Thanks received
    161
    Rep Power
    33
    just so you can get the thought how you could do this.
    Code:
    	public static void addToRecentKills(String addedIP, Client killer) {
    		int emptySpot = -1;
    		long approvedTime = System.currentTimeMillis() - 600000;
    		for (int i = 0; i < killer.recentKills.length; i++) {
    			if (killer.recentKills[i] == null) {
    				emptySpot = i;
    				continue;
    			}
    			String[] IPData = killer.recentKills[i].split(",");
    			long killedTime = Long.parseLong(IPData[1]);
    			if (killedTime < approvedTime) {
    				killer.recentKills[i] = null;
    				if (emptySpot == -1)
    					emptySpot = i;
    			}
    		}
    		killer.recentKills[emptySpot == -1 ? 0 : emptySpot] = addedIP+","+System.currentTimeMillis();
    	}
    Then add a check, for people within the list with a difference of 10 minutes + save on logout.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2012
    Posts
    49
    Thanks given
    0
    Thanks received
    8
    Rep Power
    7
    add my email [email protected]
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jan 2012
    Posts
    49
    Thanks given
    0
    Thanks received
    8
    Rep Power
    7
    bump
    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. [PI] Can't buy items from pkp shop
    By MrBeka in forum Help
    Replies: 2
    Last Post: 02-11-2012, 09:57 AM
  2. Pkp Shop [Help]
    By SayfertRsps in forum Help
    Replies: 4
    Last Post: 11-24-2011, 11:51 PM
  3. [pi] An ti pkp farm system
    By Dharmesh in forum Help
    Replies: 4
    Last Post: 09-24-2011, 11:56 PM
  4. Replies: 19
    Last Post: 08-13-2011, 09:50 PM
  5. Replies: 4
    Last Post: 03-15-2011, 10:08 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
  •