Thread: [525] working spec bars, draining + refilling

Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1 [525] working spec bars, draining + refilling 
    Pie
    Pie is offline
    Pie ownz all!

    Pie's Avatar
    Join Date
    Oct 2008
    Age
    17
    Posts
    1,002
    Thanks
    1
    Thanked 10 Times in 4 Posts
    Rep Power
    530
    Well everything deleted so ill repost, btw ill add all the things i forgot this time

    Go in player.java and add this:

    Code:
        /**
         * Checks special amount and gets config.
         */
    	public void checkAmount(Player p) {
    		int amount = p.specialAmount;
    		if (amount >= 100){
    			getActionSender().sendConfig(300, 1000);
    		} else if (amount >= 75){
    			getActionSender().sendConfig(300, 750);
    		} else if (amount >= 50){
    			getActionSender().sendConfig(300, 500);
    		} else if (amount >= 25){
    			getActionSender().sendConfig(300, 250);
    		} else if (amount >= 0){
    			getActionSender().sendConfig(300, 0);
    		} else {
    			// nothing
    		}
    	}
    Also add this with the rest of the timers:

    Code:
                    if (specialAmountDelay > 0) {
                    specialAmountDelay--;
                    } else {
                    if (specialAmount < 100) {
                    specialAmount++;
                    specialAmountUpdateReq = true;
                    }
                    specialAmountDelay = 1;
                    }
                    if (specialAmountUpdateReq) {
                    checkAmount(this);
                    specialAmountUpdateReq = false;
                    }
    Also add this with the rest:

    Code:
        public boolean specialAmountUpdateReq = false;
    public int specialAmountDelay = 0;
    Ok now go in actionbuttons and replace ur crappy messy spec method with this:

    Code:
    	case 75:
    	case 76:
    	case 77:
    	case 78:
    	case 79:
    	case 80:
    	case 81:
    	case 82:
    	case 83:
    	case 84:
    	case 85:
    	case 86:
    	case 87:
    	case 88:
    	case 89:
    	case 91:
    	case 92:
    	case 93:
    		if (buttonId == 8 || buttonId == 10 || buttonId == 11) {
    		if(player.deathDelay > 0 || player.isDead == true || player.specDelay > 5) {
    			return;
    		}
    			if(player.specialAmount < player.getSpecialAmount()) {
    				player.sm("You don't have enough special attack amount left.");
    				return;
    			}
    			if(player.usingSpecial == false) {
    				player.usingSpecial = true;
    				player.getActionSender().sendConfig(301, 1);
    				return;
    			}
    				player.usingSpecial = false;
    				player.getActionSender().sendConfig(301, 0);  
    			}
    	break;
    Go in actionsender and add this to ur login method:

    Code:
    		sendConfig(300, 1000);
    Now this i forgot, this will make so when u att it will turn the highlight of spec att off

    go in playercombat and search

    Code:
    //if using spec
    and under

    Code:
    if(p.combatDelay == 0) {
    add this:

    Code:
    p.getActionSender().sendConfig(301, 0);
    Reply With Quote  
     

  2. #2  
    Leet Programmer

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Age
    17
    Posts
    7,082
    Thanks
    240
    Thanked 1,172 Times in 604 Posts
    Rep Power
    3275
    Yay you reposted
    Reply With Quote  
     

  3. #3  
    Registered Member
    Inspired Dreams's Avatar
    Join Date
    Aug 2007
    Posts
    1,132
    Thanks
    4
    Thanked 5 Times in 4 Posts
    Rep Power
    151
    Well, Pie you amaze me lol

    There is 1 or 2 bugs that me n pie know about.
    Reply With Quote  
     

  4. #4  
    White.
    Guest
    lol so does the pyrowars team
    Reply With Quote  
     

  5. #5  
    Registered Member
    Inspired Dreams's Avatar
    Join Date
    Aug 2007
    Posts
    1,132
    Thanks
    4
    Thanked 5 Times in 4 Posts
    Rep Power
    151
    Correct Ash!
    Reply With Quote  
     

  6. #6  
    Leet Programmer

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Age
    17
    Posts
    7,082
    Thanks
    240
    Thanked 1,172 Times in 604 Posts
    Rep Power
    3275
    lol wow you ppl are eventually going to finish 525s by next month
    Reply With Quote  
     

  7. #7  
    Registered Member
    Vigan20's Avatar
    Join Date
    Oct 2007
    Posts
    2,681
    Thanks
    17
    Thanked 83 Times in 52 Posts
    Rep Power
    680
    ur doin it rong and amgz who owns pyro .. ?
    Last night, cut the light off in my bedroom, hit the switch, was in the bed before the room got dark.
    Reply With Quote  
     

  8. #8  
    Registered Member BOOM BOOM's Avatar
    Join Date
    Jun 2008
    Age
    17
    Posts
    309
    Thanks
    4
    Thanked 8 Times in 4 Posts
    Rep Power
    55
    Once again are those all the cases to the specs?
    Reply With Quote  
     

  9. #9  
    White.
    Guest
    Quote Originally Posted by Vigan20 View Post
    ur doin it rong and amgz who owns pyro .. ?
    the pyrowars team owns it, im just the founder , we know the bugs we just want you guys to figure it out
    Reply With Quote  
     

  10. #10  
    Gfx/Coder

    Apollyn's Avatar
    Join Date
    Dec 2008
    Age
    17
    Posts
    1,961
    Thanks
    34
    Thanked 47 Times in 39 Posts
    Rep Power
    320
    ty pie but how many times they gonna reset this crap?



    Reply With Quote  
     


Page 1 of 3 123 LastLast
Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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