Thread: [PI] Bracket

Results 1 to 9 of 9
  1. #1 [PI] Bracket 
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    resolved
    Reply With Quote  
     

  2. #2  
    Respected Member


    George's Avatar
    Join Date
    Mar 2009
    Posts
    7,099
    Thanks given
    2,226
    Thanks received
    3,146
    Rep Power
    5000
    Eclipse.
    Attached image

    Spoiler for Spoilers!:
    Attached image
    Attached image
    Attached image
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    bump.
    Reply With Quote  
     

  4. #4  
    Member
    Join Date
    Nov 2012
    Age
    32
    Posts
    240
    Thanks given
    10
    Thanks received
    8
    Rep Power
    0
    Quote Originally Posted by Karma_K View Post
    Code:
    	public void dealDamage(int damage) {
    		Client c = (Client)this;
    		if(playerEquipment[playerShield] == 13740) { // Divine Spirit Shield Effect
    
    			if(prayerPoint >0) {
    				if(playerLevel[3] > 4) {
    					double damageRecieved = damage * 0.85;
    					int prayerLost = (int) (damage * 0.3);
    					if(prayerPoint >= prayerLost) {
    						damage = (int) damageRecieved;
    						prayerPoint -= prayerLost;
    						if(prayerPoint < 0)
    							prayerPoint = 0;
    						gfx0(247);
    						c.sendMessage("Your shield absorbs 15% damage but your prayer drains...");
    
    					}
    				}
    			}
    		}
    		if(playerEquipment[playerShield] == 13742) { // Elysian Spirit Shield Effect
    			if(Misc.random(9) <= 3) {
    				if(playerLevel[3] > 4) {
    					double damageRecieved = damage * 0.25;
    					gfx0(247);
    					c.sendMessage("Your shield absorbs 75% of the hit...");
    				}
    			}
    		}
    		if (teleTimer <= 0){
    			playerLevel[3] -= damage;
    		}else {
    			if (hitUpdateRequired)
    				hitUpdateRequired = false;
    			if (hitUpdateRequired2)
    				hitUpdateRequired2 = false;
    		}
    		if(playerEquipment[playerAmulet] == 11090 && (double)(playerLevel[3] - damage) < (double)getLevelForXP(playerXP[playerHitpoints]) * 0.20000000000000001D && playerLevel[3] - damage > 0 && !inDuelArena())
    		{
    			playerEquipment[playerAmulet] = -1;
    			playerEquipmentN[playerAmulet] = 0;
    			((Client)this).sendMessage("The Phoenix Necklace of life saves you but was destroyed in the process");
    			playerLevel[3] += (int)((double)getLevelForXP(playerXP[playerHitpoints]) * 0.3D);
    		}
    		playerLevel[3] -= damage;
    		int difference = playerLevel[3] - damage;
    		if (difference <= getLevelForXP(playerXP[3])/10 && difference > 0)
    			appendRedemption();
    	}
    I'm suppose to add a bracket or remove a bracket or whatever from this method. Any ideas where? Cause if i leave this like this, my overloads and stuff go nuts.
    i can see the bracket missing just by looking at it you can use eclipse ide to fix it
    SHUT UP AND ENJOY THE COMMUNITY!
    ╭∩╮(︶︿︶)╭∩╮


    Remember If I Help Out Click That "Thanks" Button That's What It Is Used For.

    -Project-Dan

    Reply With Quote  
     

  5. #5  
    Donator
    South-Park's Avatar
    Join Date
    Jul 2012
    Posts
    806
    Thanks given
    191
    Thanks received
    111
    Rep Power
    43
    eeeecccclllliiiippppsssseeee
    Reply With Quote  
     

  6. #6  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by Project-Dan View Post
    i can see the bracket missing just by looking at it you can use eclipse ide to fix it
    I am using eclipse... There's no errors... I posted this because there's a bracket missing and it's messing up other things
    Reply With Quote  
     

  7. #7  
    Registered MrClassic
    MrClassic's Avatar
    Join Date
    Oct 2008
    Age
    15
    Posts
    2,063
    Thanks given
    24,154
    Thanks received
    551
    Rep Power
    5000
    Use an IDE btw, the method is fine
    Reply With Quote  
     

  8. #8  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by mrClassic View Post
    Use an IDE btw, the method is fine
    lol...i am using an ide.. yeah the methods fine, it doesnt throw any errors, its just that after implanting that method into my player.java, it messes up my overloads. it probably does something to this.
    Code:
    	public boolean hasOverloadBoost;
    causing overloads not to know if the persons overloaded because after implanting that method, drinking an overload, overloads until you die, it doesnt just deal the 50 damage.
    Reply With Quote  
     

  9. #9  
    Registered MrClassic
    MrClassic's Avatar
    Join Date
    Oct 2008
    Age
    15
    Posts
    2,063
    Thanks given
    24,154
    Thanks received
    551
    Rep Power
    5000
    Quote Originally Posted by Karma_K View Post
    lol...i am using an ide.. yeah the methods fine, it doesnt throw any errors, its just that after implanting that method into my player.java, it messes up my overloads. it probably does something to this.
    Code:
        public boolean hasOverloadBoost;
    causing overloads not to know if the persons overloaded because after implanting that method, drinking an overload, overloads until you die, it doesnt just deal the 50 damage.
    sorry but it seems like the method is fine and there's another error. Then you just didn't implement the overloaded part well.
    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. Help me find the missing bracket.
    By Was a gf in forum Help
    Replies: 13
    Last Post: 01-08-2011, 08:12 AM
  2. can't find the bracket error
    By Benji in forum Help
    Replies: 2
    Last Post: 04-30-2010, 01:43 AM
  3. Help with placing bracket?
    By wreckless in forum Help
    Replies: 6
    Last Post: 07-13-2009, 04:45 PM
  4. Halo 3 Tournament Bracket And Help Thread
    By Burkey in forum Console
    Replies: 2
    Last Post: 04-09-2008, 11:51 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
  •