Thread: My duel arena-- how to replace interface 718

Results 1 to 5 of 5
  1. #1 My duel arena-- how to replace interface 718 
    Registered Member chucky009's Avatar
    Join Date
    Aug 2011
    Posts
    355
    Thanks given
    1
    Thanks received
    26
    Rep Power
    0
    Hello
    my duel arena problem is the interface... I cant somehow figure out how to let the X appear on the armour to disable it.
    I know it has to do with configs. But i realy dont know how to add them or edit them. :/
    Somone could explain me in steps how to fix it?

    Whud rly appreciate it and will repp++
    Reply With Quote  
     

  2. #2  
    Super Donator
    Kova+'s Avatar
    Join Date
    Jan 2012
    Posts
    937
    Thanks given
    124
    Thanks received
    249
    Rep Power
    13
    Look in commands.java for the config loop command.

    Open up the duel arena interface and loop the configs, when and if one of them changes the interface then that config might be what you're looking for. Loop it's values and then you might be getting closer to an outcome.

    It's not the interface it's self, it's just needs configs.
    "Real programmers don't comment their code. If it was hard to write, it should be hard to understand." - Unkown
    “ Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ” - Martin Fowler
    Reply With Quote  
     

  3. #3  
    Registered Member chucky009's Avatar
    Join Date
    Aug 2011
    Posts
    355
    Thanks given
    1
    Thanks received
    26
    Rep Power
    0
    Thanks ill try and get back on it!
    Reply With Quote  
     

  4. #4  
    Super Donator
    Kova+'s Avatar
    Join Date
    Jan 2012
    Posts
    937
    Thanks given
    124
    Thanks received
    249
    Rep Power
    13
    Quote Originally Posted by chucky009 View Post
    Thanks ill try and get back on it!
    In DuelRules.java I found this, it's within a basic matrix release so most 718's if not all should have this in.

    Aslong as you have the DuelController controller active.

    Code:
     public void setConfigs() {
    		int value = 0;
    		int ruleId = 16;
    		for (int i = 0; i < duelRules.length; i++) {
    			if (getRule(i)) {
    				if (i == 7) // forfiet
    					value += 5;
    				if (i == 25) // no movement
    					value += 6;
    				value += ruleId;
    			}
    			ruleId += ruleId;
    		}
    		player.getPackets().sendConfig(286, value);
    	}
    So config 286 changes the options on the interface although you need high values to change a lot of things.
    "Real programmers don't comment their code. If it was hard to write, it should be hard to understand." - Unkown
    “ Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ” - Martin Fowler
    Reply With Quote  
     

  5. #5  
    *breaks walking*

    Cody_'s Avatar
    Join Date
    Dec 2010
    Posts
    732
    Thanks given
    219
    Thanks received
    203
    Rep Power
    286
    Took literally about 2 seconds on google.

    Quote Originally Posted by Maxi View Post
    Jagex uses bitmasks for this bro . What richard is actually saying they'll bitwise or the flags into a bitmask.

    Each option being set has a flag, for example no movement option will have a corresponding flag with a value in the range of 2^n (1, 2, 4, 8, 16 etc). If you want to set multiple options you'll have bitewise or all values together into a bitmask.

    In the information you provided I see for example that '286, 16 // No ranged selected' is the value for no range and '286, 1 // No forfeit selected' for no forfeit. If you want the no forfeit and no range options set you'll simply have to do this:

    Code:
    public static final int FORFEIT_FLAG = 1;
    public static final int RANGED_FLAG = 16;
    int config = FORFEIT_FLAG | RANGED_FLAG;
    Which would be 17. Looking at your information this is correct: '286, 17 // No ranged and no forfeit'
    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. how to replace my quest tab wid this
    By MrSlayerGod in forum Help
    Replies: 4
    Last Post: 01-14-2014, 03:06 PM
  2. Replies: 1
    Last Post: 10-20-2012, 02:19 AM
  3. My duel arena Interface!
    By Pb600 in forum Show-off
    Replies: 26
    Last Post: 11-09-2009, 04:30 AM
  4. how to make interfaces
    By badboy ownz in forum Requests
    Replies: 1
    Last Post: 10-17-2008, 06:14 PM
  5. how to make interfaces
    By badboy ownz in forum Requests
    Replies: 0
    Last Post: 10-17-2008, 05:50 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
  •