Thread: [PI] Players get PC Points when they kill Players [PI]

Results 1 to 6 of 6
  1. #1 [PI] Players get PC Points when they kill Players [PI] 
    Banned
    Join Date
    Jul 2011
    Posts
    692
    Thanks given
    169
    Thanks received
    43
    Rep Power
    0
    Hello gents,

    I had this great idea since i now know that my players get 1 PC point when they kill a player, I thought, instead of adding the whole pkp system, i could just get rid of pest control and add pkp items to the Pest Control Shop.

    So, What i want to know is: Where do i change how many PC Points a player gets when they kill another player?

    Thanks,
    Reply With Quote  
     

  2. #2  
    OoO Donor <3
    Rockstar Jax's Avatar
    Join Date
    Mar 2011
    Age
    27
    Posts
    608
    Thanks given
    77
    Thanks received
    78
    Rep Power
    21
    Code:
    if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) {
    					o.pkPoints = (o.pcPoints + 4);
    					o.sendMessage("You recieved 4 pkPoints");
    					o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
    dont leech this one directly you might get errors. just cxhange the highlighted red.

    Code:
    				if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) {
    					o.pkPoints = (o.pkPoints + 4);
    					o.sendMessage("You recieved 4 pkPoints");
    					o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
    If you cant search find it its under apply dead
    Reply With Quote  
     

  3. #3  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    Quote Originally Posted by JokerScape View Post
    Hello gents,

    I had this great idea since i now know that my players get 1 PC point when they kill a player, I thought, instead of adding the whole pkp system, i could just get rid of pest control and add pkp items to the Pest Control Shop.

    So, What i want to know is: Where do i change how many PC Points a player gets when they kill another player?

    Thanks,
    pc points is basically a variable.. Just add
    Code:
    public int pkPoints;
    in player.java and in the applydead method in playerassistant.java add c.pkPoints++; where your pcpoints is.
    Reply With Quote  
     

  4. #4  
    Server Developer
    Argyros's Avatar
    Join Date
    Apr 2011
    Posts
    498
    Thanks given
    25
    Thanks received
    31
    Rep Power
    23
    Well how about this when beating PC does it give you PC points? and does it add to your Pc points?
    Because i think your name for PK points might be named PC points instead.
    Reply With Quote  
     

  5. #5  
    Vitality

    Raw Envy's Avatar
    Join Date
    Dec 2010
    Posts
    3,034
    Thanks given
    869
    Thanks received
    1,186
    Rep Power
    3054
    Playerassistant.java
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,760
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    Look under the applydead method, or search. I believe some fix for this has been released
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    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]::Players showing list of players
    By Zenocko in forum Snippets
    Replies: 29
    Last Post: 07-16-2015, 12:20 PM
  2. Replies: 10
    Last Post: 09-11-2010, 04:17 AM
  3. Replies: 19
    Last Post: 09-26-2009, 08:14 PM
  4. Replies: 11
    Last Post: 02-28-2009, 07:03 PM
  5. Replies: 15
    Last Post: 01-19-2008, 02:18 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
  •