Thread: [pi] Pk piont problem

Results 1 to 2 of 2
  1. #1 [pi] Pk piont problem 
    Registered Member 1defk0's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    225
    Thanks given
    5
    Thanks received
    3
    Rep Power
    0
    hey, i made when u kill a player u get 4 pc pionts (when u die lose 1) but when u get killed by a npc u get 4 pc piont also. how i can fix this?

    i also have another problem when ppl go to duel area they just kill eachother to get fast pionts how i make it so thety wont get piont in duel area?

    this are my codes

    Code:
    		if(c.duelStatus != 6) {
    			//c.killerId = c.getCombat().getKillerId(c.playerId);
    			c.killerId = findKiller();
    			Client o = (Client) Server.playerHandler.players[c.killerId];
    			if(o != null) {
    				if (c.killerId != c.playerId)
    				c.playerKilled = c.playerId;
    				o.pcPoints += 4;
    				o.sendMessage("you have killed "+ c.playerName +".");
    				if(o.duelStatus == 5) {
    					o.duelStatus++;
    				}
    			}
    		}
    Code:
    	c.faceUpdate(0);
    		c.npcIndex = 0;
    		c.playerIndex = 0;
    		c.stopMovement();
    		if(c.duelStatus <= 4) {
                            c.pcPoints -= 3;
    			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;
    		resetFollowers();
    		c.attackTimer = 10;
    	}
    please help i will give u rep
    Reply With Quote  
     

  2. #2  
    Registered Member 1defk0's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    225
    Thanks given
    5
    Thanks received
    3
    Rep Power
    0
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •