Thread: 727 matrix converted from 718

Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Posts
    3,046
    Thanks given
    111
    Thanks received
    1,848
    Rep Power
    5000
    Quote Originally Posted by Loyalty_ View Post
    okay ill do it LOl. forgot that method was even though.

    edit: doesn't change anything.
    if you change it to 3 it literally has to only show 3 no matter what. in other words, you’re probably not doing my suggestion correctly.
    Attached image
    Attached image
    Reply With Quote  
     

  2. #12  
    Husband. Father.
    Loyalty_'s Avatar
    Join Date
    Aug 2013
    Age
    28
    Posts
    1,170
    Thanks given
    74
    Thanks received
    130
    Rep Power
    64
    Quote Originally Posted by _jordan View Post
    if you change it to 3 it literally has to only show 3 no matter what. in other words, you’re probably not doing my suggestion correctly.
    Code:
    stream.writeByte(inWilderness ? 126 : 138);
    		stream.writeByte(138);//problem
    		stream.writeByte(inWilderness ? 23 : -1); //wilderness level
    change it to
    Code:
     boolean inWilderness = false;
    		stream.writeByte(inWilderness ? player.getSkills().getCombatLevel() : player.getSkills().getCombatLevelWithSummoning());
    		stream.writeByte(inWilderness ? player.getSkills().getCombatLevelWithSummoning() : 0);
    		stream.writeByte(3);
    and still says 138..
    Loyalty_





    Quote Originally Posted by Falconpunch View Post
    Player.java buddy. find init() or something like that and find where it adds the starter and do what someone mentioned above (Although an int is 4 scrublords)
    Reply With Quote  
     

  3. #13  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Posts
    3,046
    Thanks given
    111
    Thanks received
    1,848
    Rep Power
    5000
    Quote Originally Posted by Loyalty_ View Post
    Code:
    stream.writeByte(inWilderness ? 126 : 138);
    		stream.writeByte(138);//problem
    		stream.writeByte(inWilderness ? 23 : -1); //wilderness level
    change it to
    Code:
     boolean inWilderness = false;
    		stream.writeByte(inWilderness ? player.getSkills().getCombatLevel() : player.getSkills().getCombatLevelWithSummoning());
    		stream.writeByte(inWilderness ? player.getSkills().getCombatLevelWithSummoning() : 0);
    		stream.writeByte(3);
    and still says 138..
    am i speaking english or narnian cos you're not doing what im suggesting.

    Code:
    stream.writeByte(inWilderness ? player.getSkills().getCombatLevel() : player.getSkills().getCombatLevelWithSummoning());
    to
    Code:
    stream.writeByte(3);
    idk how much simpler i can be here.
    Attached image
    Attached image
    Reply With Quote  
     

  4. #14  
    Husband. Father.
    Loyalty_'s Avatar
    Join Date
    Aug 2013
    Age
    28
    Posts
    1,170
    Thanks given
    74
    Thanks received
    130
    Rep Power
    64
    Quote Originally Posted by _jordan View Post
    am i speaking english or narnian cos you're not doing what im suggesting.

    Code:
    stream.writeByte(inWilderness ? player.getSkills().getCombatLevel() : player.getSkills().getCombatLevelWithSummoning());
    to
    Code:
    stream.writeByte(3);
    idk how much simpler i can be here.
    thought you meant stream.writeByte(138); lol but changed them all to (3); now it's lvl 3.
    Loyalty_





    Quote Originally Posted by Falconpunch View Post
    Player.java buddy. find init() or something like that and find where it adds the starter and do what someone mentioned above (Although an int is 4 scrublords)
    Reply With Quote  
     

  5. #15  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Posts
    3,046
    Thanks given
    111
    Thanks received
    1,848
    Rep Power
    5000
    Quote Originally Posted by Loyalty_ View Post
    thought you meant stream.writeByte(138); lol but changed them all to (3); now it's lvl 3.
    ye so either something is wrong with your #getCombatLevel function or you're not refreshing appearance.
    Attached image
    Attached image
    Reply With Quote  
     

  6. #16  
    Husband. Father.
    Loyalty_'s Avatar
    Join Date
    Aug 2013
    Age
    28
    Posts
    1,170
    Thanks given
    74
    Thanks received
    130
    Rep Power
    64
    Quote Originally Posted by _jordan View Post
    ye so either something is wrong with your #getCombatLevel function or you're not refreshing appearance.
    refreshing appearance as in "player.getAppearance().generateAppearenceData();" ? never had to till this source

    the getCombatLevel in skills.
    Code:
    public int getCombatLevel() {
    		int attack = getLevelForXp(0);
    		int defence = getLevelForXp(1);
    		int strength = getLevelForXp(2);
    		int hp = getLevelForXp(3);
    		int prayer = getLevelForXp(5);
    		int ranged = getLevelForXp(4);
    		int magic = getLevelForXp(6);
    		int combatLevel = 3;
    		combatLevel = (int) ((defence + hp + Math.floor(prayer / 2)) * 0.25) + 1;
    		double melee = (attack + strength) * 0.325;
    		double ranger = Math.floor(ranged * 1.5) * 0.325;
    		double mage = Math.floor(magic * 1.5) * 0.325;
    		if (melee >= ranger && melee >= mage) {
    			combatLevel += melee;
    		} else if (ranger >= melee && ranger >= mage) {
    			combatLevel += ranger;
    		} else if (mage >= melee && mage >= ranger) {
    			combatLevel += mage;
    		}
    		return combatLevel;
    	}
    I personally don't see an issue with it.
    Loyalty_





    Quote Originally Posted by Falconpunch View Post
    Player.java buddy. find init() or something like that and find where it adds the starter and do what someone mentioned above (Although an int is 4 scrublords)
    Reply With Quote  
     

  7. #17  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Posts
    3,046
    Thanks given
    111
    Thanks received
    1,848
    Rep Power
    5000
    Quote Originally Posted by Loyalty_ View Post
    refreshing appearance as in "player.getAppearance().generateAppearenceData();" ? never had to till this source

    the getCombatLevel in skills.
    Code:
    public int getCombatLevel() {
    		int attack = getLevelForXp(0);
    		int defence = getLevelForXp(1);
    		int strength = getLevelForXp(2);
    		int hp = getLevelForXp(3);
    		int prayer = getLevelForXp(5);
    		int ranged = getLevelForXp(4);
    		int magic = getLevelForXp(6);
    		int combatLevel = 3;
    		combatLevel = (int) ((defence + hp + Math.floor(prayer / 2)) * 0.25) + 1;
    		double melee = (attack + strength) * 0.325;
    		double ranger = Math.floor(ranged * 1.5) * 0.325;
    		double mage = Math.floor(magic * 1.5) * 0.325;
    		if (melee >= ranger && melee >= mage) {
    			combatLevel += melee;
    		} else if (ranger >= melee && ranger >= mage) {
    			combatLevel += ranger;
    		} else if (mage >= melee && mage >= ranger) {
    			combatLevel += mage;
    		}
    		return combatLevel;
    	}
    I personally don't see an issue with it.
    the combat level calc is technically not right either way but you're still not refreshing your appearance correctly in the way that you're giving yourself experience/levels.
    Attached image
    Attached image
    Reply With Quote  
     

  8. #18  
    Husband. Father.
    Loyalty_'s Avatar
    Join Date
    Aug 2013
    Age
    28
    Posts
    1,170
    Thanks given
    74
    Thanks received
    130
    Rep Power
    64
    Quote Originally Posted by _jordan View Post
    the combat level calc is technically not right either way but you're still not refreshing your appearance correctly in the way that you're giving yourself experience/levels.
    when I said I changed the levels I changed the code from 99 to 1 then found this issue.

    leveling up and spawning as level 3 seems to be working if I do
    Code:
    boolean inWilderness = false;
    		stream.writeByte(inWilderness ? player.getSkills().getCombatLevel() : player.getSkills().getCombatLevelWithSummoning());
    		stream.writeByte(inWilderness ? player.getSkills().getCombatLevel() : player.getSkills().getCombatLevelWithSummoning());
    		stream.writeByte(3);
    after changing all them to (3); LOL
    not worried about wilderness atm
    Loyalty_





    Quote Originally Posted by Falconpunch View Post
    Player.java buddy. find init() or something like that and find where it adds the starter and do what someone mentioned above (Although an int is 4 scrublords)
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

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. Replies: 7
    Last Post: 08-07-2021, 09:16 PM
  2. 718 converted to 727 Matrix
    By CobraShelby in forum Help
    Replies: 7
    Last Post: 10-16-2018, 06:45 PM
  3. [727] Original Matrix Converted to 727
    By _jordan in forum Downloads
    Replies: 29
    Last Post: 05-27-2018, 11:41 AM
  4. Replies: 5
    Last Post: 02-28-2016, 03:14 AM
  5. the real dragon plate converted from rs!
    By Dragonking in forum Models
    Replies: 33
    Last Post: 09-15-2008, 11:20 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
  •