Thread: Need help with mage arena pk points

Results 1 to 8 of 8
  1. #1 Need help with mage arena pk points 
    Registered Member

    Join Date
    Jul 2011
    Posts
    329
    Thanks given
    45
    Thanks received
    49
    Rep Power
    152
    I have found this glitch and I tried to fix it myself but it doesn't work. I don't know if it has to do with the apply dead method or something else.

    The problem is that when you talk to kolodion he teleports you into the mage arena. Inside if you die by a guthix, zammy or any wizard you get a pkpoint. This is not happening on any other npc's just the ones inside mage arena. I also made it so if you die more than once it will not give you the pk points to stop pk point farming but this also had no effect inside the arena. If you can help i will thank and rep+.

    Thanks in advance,

    Spoiler for my source:
    My source is Hybridz pvp v2
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jul 2011
    Posts
    329
    Thanks given
    45
    Thanks received
    49
    Rep Power
    152
    anyone? comon someone help plz
    Reply With Quote  
     

  3. #3  
    Vitality

    Raw Envy's Avatar
    Join Date
    Dec 2010
    Posts
    3,034
    Thanks given
    869
    Thanks received
    1,186
    Rep Power
    3054
    Just remove it from the game.. It's not like anyone uses that mini-game but if you want to fix it then just post your applydead method here and I can take a look at it.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Jul 2011
    Posts
    329
    Thanks given
    45
    Thanks received
    49
    Rep Power
    152
    Quote Originally Posted by Raw Envy View Post
    Just remove it from the game.. It's not like anyone uses that mini-game but if you want to fix it then just post your applydead method here and I can take a look at it.
    my applydead

    Code:
    public void applyDead() {    
            c.respawnTimer = 10;
            c.isDead = false;
            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.npcIndex > 0) && c.inPits == false){
                    }
                    if (c.killerId != c.playerId)
                        o.sendMessage("You have defeated "+Misc.optimizeText(c.playerName)+"!");
                        if(c.inWild() && !c.inDuelArena() || !c.inMageArena()){
    					o.pkPoints++;
    					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.");
    		}
    
                    c.playerKilled = c.playerId;
                    if(o.duelStatus == 5) {
                        o.duelStatus++;
                    }
                }
            }
            c.poisonDamage = 0;
            c.faceUpdate(0);
            c.npcIndex = 0;
            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;
            resetFollowers();
            c.attackTimer = 10;
    	removeAllWindows();
    	c.tradeResetNeeded = true;
      	}
    	
    	public void resetDamageDone() {
    		for (int i = 0; i < PlayerHandler.players.length; i++) {
    			if (PlayerHandler.players[i] != null) {
    				PlayerHandler.players[i].damageTaken[c.playerId] = 0;			
    			}		
    		}	
    	}
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jul 2011
    Age
    31
    Posts
    1,735
    Thanks given
    101
    Thanks received
    81
    Rep Power
    0
    Replace your method with this. If you get any errors let me know. This will stop you from receving pk when when dieing by monsters, duel arena and pking.

    Code:
    public void applyDead() {	
    		c.respawnTimer = 15;
    		c.isDead = false;
    		
    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.npcIndex > 0) && c.inPits == false){
    				}
    				if (c.killerId != c.playerId)
    					o.sendMessage("You have defeated "+Misc.optimizeText(c.playerName)+"!");
    
    				c.playerKilled = c.playerId;
    				if(o.duelStatus == 5) {
    					o.duelStatus++;
    				}
    			}
    		}
    		c.faceUpdate(0);
    			EventManager.getSingleton().addEvent(new Event() {
    				public void execute(EventContainer b) {
    		c.npcIndex = 0;
    		c.playerIndex = 0;
    				b.stop();
    				}
    				}, 2500);
    		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;
    		resetFollowers();
    		c.attackTimer = 10;
    		removeAllWindows();
    		c.tradeResetNeeded = true;
    	}
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Jul 2011
    Posts
    329
    Thanks given
    45
    Thanks received
    49
    Rep Power
    152
    [QUOTE=banter;2859064]Replace your method with this. If you get any errors let me know. This will stop you from receving pk when when dieing by monsters, duel arena and pking.

    umm i want it to give pk points by pking and i fixed it so it doesn't give pk points by dying by monsters but in the arena it still gives points when when wizard kills you for some reason.

    thank you for helping
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jul 2011
    Age
    31
    Posts
    1,735
    Thanks given
    101
    Thanks received
    81
    Rep Power
    0
    Then go to ur player.java and declare the int pkpoints do it in your playersave and add the method and then remove the minigame.
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Jul 2011
    Posts
    329
    Thanks given
    45
    Thanks received
    49
    Rep Power
    152
    Quote Originally Posted by banter View Post
    Then go to ur player.java and declare the int pkpoints do it in your playersave and add the method and then remove the minigame.
    thats what i just di thanks for your help bro repped ++
    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 In Duel Arena (Rep++ for Fix)
    By I'm A Jerk in forum Help
    Replies: 4
    Last Post: 04-07-2011, 12:50 PM
  2. [PI] Pk Points in Duel Arena
    By I'm A Jerk in forum Help
    Replies: 1
    Last Post: 02-06-2011, 07:49 PM
  3. [PI] Points (Pk/Pc/Mage Arena)
    By Riiip in forum Help
    Replies: 6
    Last Post: 09-04-2010, 06:36 AM
  4. Mage Arena
    By Scu11 in forum Show-off
    Replies: 21
    Last Post: 04-13-2009, 07:35 PM
  5. 95% Mage arena
    By SWAT in forum Show-off
    Replies: 49
    Last Post: 01-06-2009, 04: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
  •