Thread: hmm which would be better...

Results 1 to 9 of 9
  1. #1 hmm which would be better... 
    Registered Member
    Sieu's Avatar
    Join Date
    Dec 2011
    Age
    30
    Posts
    1,167
    Thanks given
    186
    Thanks received
    131
    Rep Power
    160
    Another source's code for calculateMagicAttack()
    Code:
     
    	public int calculateMagicAttack() {
    		c.getItems().resetBonus();
    		c.getItems().getBonus();
    		c.getItems().writeBonus();
    		int magicalAttack = 0;	
    		int magicalAttackBonus = (c.playerBonus[3] * 2);
    		int magicalAttackLevel = (c.playerLevel[6] /2);	
    		magicalAttack = magicalAttackLevel + magicalAttackBonus;
    		if(fullVoidMage()) {
    			magicalAttack += (magicalAttack * 30 / 100);
    		}
    		return magicalAttack;
    	}
    	
    	public int calculateMagicDefence() {
    		c.getItems().resetBonus();
    		c.getItems().getBonus();
    		c.getItems().writeBonus();
    		int def = 0;
    		int defBonus = c.playerBonus[8];
    		int deflvl = c.playerLevel[6];
    		defBonus = defBonus/2;
    		deflvl = deflvl/2;
    		def = defBonus + deflvl;		
    		if(c.prayerActive[0]) {
    			def += (def * 5 / 100);
    		}	
    		if(c.prayerActive[3]) {
    			def += (def * 10 / 100);
    		}
    		if(c.prayerActive[9]) {
    			def += (def * 15 / 100);
    		}
    		return def;
    	}
    Pi's source code for calculateMagicAttack()
    Code:
    	public int mageAtk()
        {
            int attackLevel = c.playerLevel[6];
    		if (c.fullVoidMage())
                attackLevel += c.getLevelForXP(c.playerXP[6]) * 0.2;
            if (c.prayerActive[4])
    			attackLevel *= 1.05;
    		else if (c.prayerActive[12])
    			attackLevel *= 1.10;
    		else if (c.prayerActive[20])
    			attackLevel *= 1.15;
            return (int) (attackLevel + (c.playerBonus[3] * 2));
        }
    	public int mageDef()
        {
            int defenceLevel = c.playerLevel[1]/2 + c.playerLevel[6]/2;
            if (c.prayerActive[0]) {
                defenceLevel += c.getLevelForXP(c.playerXP[c.playerDefence]) * 0.05;
            } else if (c.prayerActive[3]) {
                defenceLevel += c.getLevelForXP(c.playerXP[c.playerDefence]) * 0.1;
            } else if (c.prayerActive[9]) {
                defenceLevel += c.getLevelForXP(c.playerXP[c.playerDefence]) * 0.15;
            } else if (c.prayerActive[18]) {
                defenceLevel += c.getLevelForXP(c.playerXP[c.playerDefence]) * 0.2;
            } else if (c.prayerActive[19]) {
                defenceLevel += c.getLevelForXP(c.playerXP[c.playerDefence]) * 0.25;
            }
            return (int) (defenceLevel + c.playerBonus[8] + (c.playerBonus[8] / 3));
        }
    Reply With Quote  
     

  2. #2  
    Registered Member Mayday Parade's Avatar
    Join Date
    Apr 2009
    Age
    27
    Posts
    495
    Thanks given
    20
    Thanks received
    17
    Rep Power
    8
    The first one has bonus'

    PI has prayers

    Combine them?

    Spoiler for LoL:
    Quote Originally Posted by Imbued View Post
    Quote Originally Posted by pasta186 View Post
    That tutorial doesnt walk.
    That's because it got no legs..
    Best report I've sent? "Mass spam? Also in wrong sexual"
    LOL
    Reply With Quote  
     

  3. #3  
    Trap God

    Join Date
    Jun 2010
    Age
    28
    Posts
    570
    Thanks given
    27
    Thanks received
    26
    Rep Power
    4
    Best to combine them, so then you have the prayers and the calculated mage attack.
    "What was done to me was monstrous."
    "And they created a monster."
    Reply With Quote  
     

  4. #4  
    Registered Member
    Sieu's Avatar
    Join Date
    Dec 2011
    Age
    30
    Posts
    1,167
    Thanks given
    186
    Thanks received
    131
    Rep Power
    160
    oop can you re-read? i only copied and pasted one part of each, theres 2 part to each
    Reply With Quote  
     

  5. #5  
    Trap God

    Join Date
    Jun 2010
    Age
    28
    Posts
    570
    Thanks given
    27
    Thanks received
    26
    Rep Power
    4
    Still combine imo.
    "What was done to me was monstrous."
    "And they created a monster."
    Reply With Quote  
     

  6. #6  
    Registered Member
    Sieu's Avatar
    Join Date
    Dec 2011
    Age
    30
    Posts
    1,167
    Thanks given
    186
    Thanks received
    131
    Rep Power
    160
    if i were to do this, would i have to rework my prayers? the activeprayers seem off..

    other source's prayers
    Code:
    	/**Prayer**/
    		
    	public void activatePrayer(int i) {
    		if(c.duelRule[7]){
    			for(int p = 0; p < c.PRAYER.length; p++) { // reset prayer glows 
    				c.prayerActive[p] = false;
    				c.getPA().sendFrame36(c.PRAYER_GLOW[p], 0);	
    			}
    			c.sendMessage("Prayer has been disabled in this duel!");
    			return;
    		}
    		if(c.inRfd()) {
    			for(int p = 0; p < c.PRAYER.length; p++) { // reset prayer glows 
    				c.prayerActive[p] = false;
    				c.getPA().sendFrame36(c.PRAYER_GLOW[p], 0);	
    			}
    			return;
    		}
    	
    		if(c.playerLevel[5] > 0 || !Config.PRAYER_POINTS_REQUIRED){
    			if(c.getPA().getLevelForXP(c.playerXP[5]) >= c.PRAYER_LEVEL_REQUIRED[i] || !Config.PRAYER_LEVEL_REQUIRED) {
    				boolean headIcon = false;
    				int[] bad = {
    					0,1,2,-1,-1,5,6,7,-1,-1,-1,-1,-1,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
    				};
    				switch(i) {
    					case 0:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[5], 0);
    						c.prayerActive[5] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[13], 0);
    						c.prayerActive[13] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[24], 0);
    						c.prayerActive[24] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[25], 0);
    						c.prayerActive[25] = false;
    					}
    					break;
    					
    					case 1:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[6], 0);
    						c.prayerActive[6] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[14], 0);
    						c.prayerActive[14] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[24], 0);
    						c.prayerActive[24] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[25], 0);
    						c.prayerActive[25] = false;
    					}
    					break;
    					
    					case 2:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[7], 0);
    						c.prayerActive[7] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[15], 0);
    						c.prayerActive[15] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[24], 0);
    						c.prayerActive[24] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[25], 0);
    						c.prayerActive[25] = false;
    					}
    					break;
    					
    					case 3:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[11], 0);
    						c.prayerActive[11] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[19], 0);
    						c.prayerActive[19] = false;
    					}
    					break;
    					
    					case 4:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[12], 0);
    						c.prayerActive[12] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[20], 0);
    						c.prayerActive[20] = false;
    					}
    					break;
    					
    					case 5:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[0], 0);
    						c.prayerActive[0] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[13], 0);
    						c.prayerActive[13] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[24], 0);
    						c.prayerActive[24] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[25], 0);
    						c.prayerActive[25] = false;
    					}
    					break;
    					case 6:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[1], 0);
    						c.prayerActive[1] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[14], 0);
    						c.prayerActive[14] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[24], 0);
    						c.prayerActive[24] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[25], 0);
    						c.prayerActive[25] = false;
    					}
    					break;
    					case 7:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[2], 0);
    						c.prayerActive[2] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[15], 0);
    						c.prayerActive[15] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[24], 0);
    						c.prayerActive[24] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[25], 0);
    						c.prayerActive[25] = false;
    					}
    					break;
    					case 8:
    					break;
    					
    					case 11:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[3], 0);
    						c.prayerActive[3] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[19], 0);
    						c.prayerActive[19] = false;
    					}
    					break;
    					
    					case 12:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[4], 0);
    						c.prayerActive[4] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[20], 0);
    						c.prayerActive[20] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[24], 0);
    						c.prayerActive[24] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[25], 0);
    						c.prayerActive[25] = false;
    					}
    					break;
    						
    					case 13:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[0], 0);
    						c.prayerActive[0] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[5], 0);
    						c.prayerActive[5] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[24], 0);
    						c.prayerActive[24] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[25], 0);
    						c.prayerActive[25] = false;
    					}
    					break;
    					
    					case 14:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[1], 0);
    						c.prayerActive[1] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[6], 0);
    						c.prayerActive[6] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[24], 0);
    						c.prayerActive[24] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[25], 0);
    						c.prayerActive[25] = false;
    					}
    					break;
    					
    					case 15:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[2], 0);
    						c.prayerActive[2] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[7], 0);
    						c.prayerActive[7] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[24], 0);
    						c.prayerActive[24] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[25], 0);
    						c.prayerActive[25] = false;
    					}
    					break;
    					
    					case 19:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[3], 0);
    						c.prayerActive[3] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[11], 0);
    						c.prayerActive[11] = false;
    					}
    					break;
    					
    					case 20:
    					if(c.prayerActive[i] == false) {
    						c.getPA().sendFrame36(c.PRAYER_GLOW[4], 0);
    						c.prayerActive[4] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[12], 0);
    						c.prayerActive[12] = false;
    					}
    					break;
    
    					case 16:					
    					case 17:
    					case 18:
    					if(System.currentTimeMillis() - c.stopPrayerDelay < 5000) {
    						c.sendMessage("You have been injured and can't use this prayer!");
    						c.getPA().sendFrame36(c.PRAYER_GLOW[16], 0);
    						c.getPA().sendFrame36(c.PRAYER_GLOW[17], 0);
    						c.getPA().sendFrame36(c.PRAYER_GLOW[18], 0);
    						return;
    					}
    					case 21:
    					case 22:
    					case 23:
    					headIcon = true;		
    					for(int p = 16; p < 24; p++) {
    						if(i != p) {
    							if(p != 19 && p != 20) {
    								c.prayerActive[p] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[p], 0);
    							}
    						}
    					}				
    					break;
    					case 24:
    					if(c.prayerActive[i] == false) {
    						for(int h = 0; h < c.PRAYER.length; h++) {
    							if((h == 25) || (bad[h] == h && bad[h] != -1)) {
    								c.getPA().sendFrame36(c.PRAYER_GLOW[h], 0);
    								c.prayerActive[h] = false;
    							}
    						}
    					}
    					break;
    					case 25:
    					if(c.prayerActive[i] == false) {
    						for(int j = 0; j < c.PRAYER.length; j++) { 
    							if((j == 24) || (bad[j] == j && bad[j] != -1)) {
    								c.getPA().sendFrame36(c.PRAYER_GLOW[j], 0);
    								c.prayerActive[j] = false;
    							}
    						}
    					}
    					break;
    				}
    				
    				if(!headIcon) {
    					if(c.prayerActive[i] == false) {
    						c.prayerActive[i] = true;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[i], 1);					
    					} else {
    						c.prayerActive[i] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[i], 0);
    					}
    				} else {
    					if(c.prayerActive[i] == false) {
    						c.prayerActive[i] = true;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[i], 1);
    						c.headIcon = c.PRAYER_HEAD_ICONS[i];
    						c.getPA().requestUpdates();
    					} else {
    						c.prayerActive[i] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[i], 0);
    						c.headIcon = -1;
    						c.getPA().requestUpdates();
    					}
    				}
    			} else {
    				c.getPA().sendFrame36(c.PRAYER_GLOW[i],0);
    				c.getPA().sendFrame126("You need a @blu@Prayer level of "+c.PRAYER_LEVEL_REQUIRED[i]+" to use "+c.PRAYER_NAME[i]+".", 357);
    				c.getPA().sendFrame126("Click here to continue", 358);
    				c.getPA().sendFrame164(356);
    			}
    		} else {
    			c.getPA().sendFrame36(c.PRAYER_GLOW[i],0);
    			c.sendMessage("You have run out of prayer points!");
    		}	
    				
    	}
    pi's prayer
    Code:
    	public void activatePrayer(int i) {
    		if(c.duelRule[7]){
    			for(int p = 0; p < c.PRAYER.length; p++) { // reset prayer glows 
    				c.prayerActive[p] = false;
    				c.getPA().sendFrame36(c.PRAYER_GLOW[p], 0);	
    			}
    			c.sendMessage("Prayer has been disabled in this duel!");
    			return;
    		}
    		if (i == 24 && c.playerLevel[1] < 65) {
    			c.getPA().sendFrame36(c.PRAYER_GLOW[i], 0);
    			c.sendMessage("You may not use this prayer yet.");
    			return;
    		}
    		if (i == 25 && c.playerLevel[1] < 70) {
    			c.getPA().sendFrame36(c.PRAYER_GLOW[i], 0);
    			c.sendMessage("You may not use this prayer yet.");
    			return;
    		}
    		int[] defPray = {0,5,13,24,25};
    		int[] strPray = {1,6,14,24,25};
    		int[] atkPray = {2,7,15,24,25};
    		int[] rangePray = {3,11,19};
    		int[] magePray = {4,12,20};
    
    		if(c.playerLevel[5] > 0 || !Config.PRAYER_POINTS_REQUIRED){
    			if(c.getPA().getLevelForXP(c.playerXP[5]) >= c.PRAYER_LEVEL_REQUIRED[i] || !Config.PRAYER_LEVEL_REQUIRED) {
    				boolean headIcon = false;
    				switch(i) {
    					case 0:
    					case 5:
    					case 13:
    					if(c.prayerActive[i] == false) {
    						for (int j = 0; j < defPray.length; j++) {
    							if (defPray[j] != i) {
    								c.prayerActive[defPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[defPray[j]], 0);
    							}								
    						}
    					}
    					break;
    					
    					case 1:
    					case 6:
    					case 14:
    					if(c.prayerActive[i] == false) {
    						for (int j = 0; j < strPray.length; j++) {
    							if (strPray[j] != i) {
    								c.prayerActive[strPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[strPray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < rangePray.length; j++) {
    							if (rangePray[j] != i) {
    								c.prayerActive[rangePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[rangePray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < magePray.length; j++) {
    							if (magePray[j] != i) {
    								c.prayerActive[magePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[magePray[j]], 0);
    							}								
    						}
    					}
    					break;
    					
    					case 2:
    					case 7:
    					case 15:
    					if(c.prayerActive[i] == false) {
    						for (int j = 0; j < atkPray.length; j++) {
    							if (atkPray[j] != i) {
    								c.prayerActive[atkPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[atkPray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < rangePray.length; j++) {
    							if (rangePray[j] != i) {
    								c.prayerActive[rangePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[rangePray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < magePray.length; j++) {
    							if (magePray[j] != i) {
    								c.prayerActive[magePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[magePray[j]], 0);
    							}								
    						}
    					}
    					break;
    					
    					case 3://range prays
    					case 11:
    					case 19:
    					if(c.prayerActive[i] == false) {
    						for (int j = 0; j < atkPray.length; j++) {
    							if (atkPray[j] != i) {
    								c.prayerActive[atkPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[atkPray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < strPray.length; j++) {
    							if (strPray[j] != i) {
    								c.prayerActive[strPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[strPray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < rangePray.length; j++) {
    							if (rangePray[j] != i) {
    								c.prayerActive[rangePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[rangePray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < magePray.length; j++) {
    							if (magePray[j] != i) {
    								c.prayerActive[magePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[magePray[j]], 0);
    							}								
    						}
    					}
    					break;
    					case 4:
    					case 12:
    					case 20:
    					if(c.prayerActive[i] == false) {
    						for (int j = 0; j < atkPray.length; j++) {
    							if (atkPray[j] != i) {
    								c.prayerActive[atkPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[atkPray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < strPray.length; j++) {
    							if (strPray[j] != i) {
    								c.prayerActive[strPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[strPray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < rangePray.length; j++) {
    							if (rangePray[j] != i) {
    								c.prayerActive[rangePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[rangePray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < magePray.length; j++) {
    							if (magePray[j] != i) {
    								c.prayerActive[magePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[magePray[j]], 0);
    							}								
    						}
    					}
    					break;
    					case 10:
    						c.lastProtItem = System.currentTimeMillis();
    					break;
    					
    
    					case 16:					
    					case 17:
    					case 18:
    					if(System.currentTimeMillis() - c.stopPrayerDelay < 5000) {
    						c.sendMessage("You have been injured and can't use this prayer!");
    						c.getPA().sendFrame36(c.PRAYER_GLOW[16], 0);
    						c.getPA().sendFrame36(c.PRAYER_GLOW[17], 0);
    						c.getPA().sendFrame36(c.PRAYER_GLOW[18], 0);
    						return;
    					}
    					if (i == 16)
    						c.protMageDelay = System.currentTimeMillis();
    					else if (i == 17)
    						c.protRangeDelay = System.currentTimeMillis();
    					else if (i == 18)
    						c.protMeleeDelay = System.currentTimeMillis();
    					case 21:
    					case 22:
    					case 23:
    					headIcon = true;		
    					for(int p = 16; p < 24; p++) {
    						if(i != p && p != 19 && p != 20) {
    							c.prayerActive[p] = false;
    							c.getPA().sendFrame36(c.PRAYER_GLOW[p], 0);
    						}
    					}
    					break;
    					case 24:
    					case 25:
    					if (c.prayerActive[i] == false) {
    						for (int j = 0; j < atkPray.length; j++) {
    							if (atkPray[j] != i) {
    								c.prayerActive[atkPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[atkPray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < strPray.length; j++) {
    							if (strPray[j] != i) {
    								c.prayerActive[strPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[strPray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < rangePray.length; j++) {
    							if (rangePray[j] != i) {
    								c.prayerActive[rangePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[rangePray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < magePray.length; j++) {
    							if (magePray[j] != i) {
    								c.prayerActive[magePray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[magePray[j]], 0);
    							}								
    						}
    						for (int j = 0; j < defPray.length; j++) {
    							if (defPray[j] != i) {
    								c.prayerActive[defPray[j]] = false;
    								c.getPA().sendFrame36(c.PRAYER_GLOW[defPray[j]], 0);
    							}								
    						}
    					}
    					break;
    				}
    				
    				if(!headIcon) {
    					if(c.prayerActive[i] == false) {
    						c.prayerActive[i] = true;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[i], 1);					
    					} else {
    						c.prayerActive[i] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[i], 0);
    					}
    				} else {
    					if(c.prayerActive[i] == false) {
    						c.prayerActive[i] = true;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[i], 1);
    						c.headIcon = c.PRAYER_HEAD_ICONS[i];
    						c.getPA().requestUpdates();
    					} else {
    						c.prayerActive[i] = false;
    						c.getPA().sendFrame36(c.PRAYER_GLOW[i], 0);
    						c.headIcon = -1;
    						c.getPA().requestUpdates();
    					}
    				}
    			} else {
    				c.getPA().sendFrame36(c.PRAYER_GLOW[i],0);
    				c.getPA().sendFrame126("You need a @blu@Prayer level of "+c.PRAYER_LEVEL_REQUIRED[i]+" to use "+c.PRAYER_NAME[i]+".", 357);
    				c.getPA().sendFrame126("Click here to continue", 358);
    				c.getPA().sendFrame164(356);
    			}
    		} else {
    			c.getPA().sendFrame36(c.PRAYER_GLOW[i],0);
    			c.sendMessage("You have run out of prayer points!");
    		}	
    				
    	}
    Reply With Quote  
     

  7. #7  
    Registered Member Mayday Parade's Avatar
    Join Date
    Apr 2009
    Age
    27
    Posts
    495
    Thanks given
    20
    Thanks received
    17
    Rep Power
    8
    Those 2 codes appear to be doing the same thing O-o... Except has the condition:
    Code:
    if(c.inRfd()) {

    Spoiler for LoL:
    Quote Originally Posted by Imbued View Post
    Quote Originally Posted by pasta186 View Post
    That tutorial doesnt walk.
    That's because it got no legs..
    Best report I've sent? "Mass spam? Also in wrong sexual"
    LOL
    Reply With Quote  
     

  8. #8  
    Registered Member
    Sieu's Avatar
    Join Date
    Dec 2011
    Age
    30
    Posts
    1,167
    Thanks given
    186
    Thanks received
    131
    Rep Power
    160
    oh the rfd, is because the other source has rfd quest lol

    also only the other source has "prayerActive[24]" pi doesnt appear to have it O.o
    Reply With Quote  
     

  9. #9  
    Registered Member
    'Hunter's Avatar
    Join Date
    Sep 2008
    Posts
    738
    Thanks given
    12
    Thanks received
    6
    Rep Power
    160
    Quote Originally Posted by MMMM View Post
    oh the rfd, is because the other source has rfd quest lol

    also only the other source has "prayerActive[24]" pi doesnt appear to have it O.o
    I'm fairly sure that PI does.
    ~ Hunter


    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. Hmm..
    By Situations in forum Help
    Replies: 0
    Last Post: 09-20-2009, 11:26 PM
  2. hmm
    By ArcticM in forum RS 503+ Client & Server
    Replies: 2
    Last Post: 09-02-2009, 05:29 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
  •