Thread: [PI] Pk Point Message [PI]

Results 1 to 3 of 3
  1. #1 [PI] Pk Point Message [PI] 
    Banned
    Join Date
    Aug 2009
    Posts
    490
    Thanks given
    22
    Thanks received
    3
    Rep Power
    0
    This is my current applyDead()

    Code:
    public void applyDead() {	
    		c.respawnTimer = 15;
    		c.isDead = false;
    		if(c.duelStatus != 6) {
    			c.killerId = findKiller();
    			Client o = (Client) Server.playerHandler.players[c.killerId];
    			if(o != null) {
    				c.playerKilled = c.playerId;
    				if(o.duelStatus == 5) {
    					o.duelStatus++;
    				}
    				if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled) {
    					o.pkPoints = (o.pkPoints + 6);
    					c.DC++;
    					o.KC++;
    					o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
    				} else {
    					o.sendMessage("You do not recieve pk points because you have killed " +c.playerName+ " twice in a row.");
    				}
    			}
    		}
    		c.faceUpdate(0);
    		c.npcIndex = 0;
    		closeAllWindows();
    		c.playerIndex = 0;
    		c.stopMovement();
    			
    		if(c.duelStatus <= 4) {
    			c.sendMessage("Oh dear you are dead!");
    		} else if(c.duelStatus != 6) {
    			c.sendMessage("You have lost the duel!");
    		}
    		resetDamageDone();
    		c.specAmount = 10;
    		c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    		c.lastVeng = 0;
    		c.vengOn = false;
    		closeAllWindows();
    		resetFollowers();
    		c.attackTimer = 10;
    	}
    I want to keep it all, I just want it say for example, "You receive 6 pk points for killing ( player name here )" after a kill.
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    under o.pkPoints = (o.pkPoints + 6); add (fix my bad english yourself)

    Code:
    o.sendMessage("You have received 6 pking points for killing "+c.playerName+"");
    Reply With Quote  
     

  3. #3  
    Registered Member Eberwolf's Avatar
    Join Date
    Nov 2008
    Age
    30
    Posts
    210
    Thanks given
    10
    Thanks received
    17
    Rep Power
    34
    Also instead of:
    Code:
    o.pkPoints = (o.pkPoints + 6);
    Do:
    Code:
    o.pkPoints += 6;


    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] Pk Points Problem [PI]
    By Niv3k in forum Help
    Replies: 19
    Last Post: 04-05-2011, 04:42 PM
  2. [PI] Pk Points Shop [PI]
    By Hellobuddyhowareyou in forum Help
    Replies: 1
    Last Post: 03-26-2011, 03:39 PM
  3. [PI] Pk Point help!!! [PI]
    By sgt ownage in forum Help
    Replies: 6
    Last Post: 03-19-2011, 09:21 AM
  4. [PI] Pk points List [PI]
    By hellp45 in forum Requests
    Replies: 0
    Last Post: 11-11-2010, 09:37 AM
  5. [PI] Pk points List [PI]
    By hellp45 in forum Help
    Replies: 1
    Last Post: 11-11-2010, 12:05 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
  •