Thread: Xp Rates 667 Beatpk TizenX Remake

Results 1 to 4 of 4
  1. #1 Xp Rates 667 Beatpk TizenX Remake 
    Registered Member
    Join Date
    Aug 2014
    Posts
    138
    Thanks given
    5
    Thanks received
    1
    Rep Power
    14
    So im having issues with the XP Rates, i know how to change them.. Settings.java, just change the..

    Code:
    public static final int XP_RATE = 100; // x75 for combat, x50 for skills
    	public static final int KILLING_XP_RATE = 100;
    	public static final int COMBAT_XP_RATE = 100;
    the rates are high, obviously, but in game it has slow rs like xp leveling. I was curioous on how to fix this? if there's another file, or how to make it so the XP for combat is much much faster.
    Reply With Quote  
     

  2. #2  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    20
    Posts
    3,377
    Thanks given
    7,120
    Thanks received
    1,879
    Discord
    View profile
    Rep Power
    3454
    Add your addXp method here. It's in Skills.java.
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work [Only registered and activated users can see links. ]!
    Reply With Quote  
     

  3. #3 Helpq! PLease.. 
    Registered Member
    Join Date
    Aug 2014
    Posts
    138
    Thanks given
    5
    Thanks received
    1
    Rep Power
    14
    Quote Originally Posted by arham 4 View Post
    Add your addXp method here. It's in Skills.java.

    Okay so it is fixed for combat stats, but for the Skilling stats, right when you woodcut or mine, or whatever and do one ore or one log, i get 99 in that stats? how do i fix this?
    Skills.java class
    [SPOILER]
    Code:
    package com.rs.game.player;
    
    import java.io.Serializable;
    
    import com.rs.Settings;
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    
    public final class Skills implements Serializable {
    
    	private static final long serialVersionUID = -7086829989489745985L;
    
    	public static final double MAXIMUM_EXP = 200000000;
    	public static final int ATTACK = 0, DEFENCE = 1, STRENGTH = 2,
    			HITPOINTS = 3, RANGE = 4, PRAYER = 5, MAGIC = 6, COOKING = 7,
    			WOODCUTTING = 8, FLETCHING = 9, FISHING = 10, FIREMAKING = 11,
    			CRAFTING = 12, SMITHING = 13, MINING = 14, HERBLORE = 15,
    			AGILITY = 16, THIEVING = 17, SLAYER = 18, FARMING = 19,
    			RUNECRAFTING = 20, CONSTRUCTION = 22, HUNTER = 21, SUMMONING = 23,
    			DUNGEONEERING = 24;
    
    	public static final String[] SKILL_NAME = { "Attack", "Defence",
    			"Strength", "Hitpoints", "Range", "Prayer", "Magic", "Cooking",
    			"Woodcutting", "Fletching", "Fishing", "Firemaking", "Crafting",
    			"Smithing", "Mining", "Herblore", "Agility", "Thieving", "Slayer",
    			"Farming", "Runecrafting", "Construction", "Hunter", "Summoning",
    			"Dungeoneering" };
    
    	private short level[];
    	private double xp[];
    	private double xpCounter;
    
    	private transient Player player;
    
    	public void passLevels(Player p) {
    		this.level = p.getSkills().level;
    		this.xp = p.getSkills().xp;
    	}
    
    	public Skills() {
    		level = new short[25];
    		xp = new double[25];
    		for (int i = 0; i < level.length; i++) {
    			level[i] = 1;
    			xp[i] = 0;
    		}
    		level[3] = 10;
    		xp[3] = 1184;
    		level[HERBLORE] = 3;
    		xp[HERBLORE] = 250;
    	}
    
    	public void restoreSkills() {
    		for (int skill = 0; skill < level.length; skill++) {
    			level[skill] = (short) getLevelForXp(skill);
    			refresh(skill);
    		}
    	}
    
    	public void setPlayer(Player player) {
    		this.player = player;
    	}
    	public double[] getXp() {
    		return xp;
    	}
    	
    	public int getLevel(int skill) {
    		return level[skill];
    	}
    
    	public double getXp(int skill) {
    		return xp[skill];
    	}
    
    	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 = 1;
    		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;
    	}
    
    	public void set(int skill, int newLevel) {
    		level[skill] = (short) newLevel;
    		refresh(skill);
    	}
    
    	public int drainLevel(int skill, int drain) {
    		int drainLeft = drain - level[skill];
    		if (drainLeft < 0) {
    			drainLeft = 0;
    		}
    		level[skill] -= drain;
    		if (level[skill] < 0) {
    			level[skill] = 0;
    		}
    		refresh(skill);
    		return drainLeft;
    	}
    
    	public int getCombatLevelWithSummoning() {
    		return getCombatLevel() + getSummoningCombatLevel();
    	}
    
    	public int getSummoningCombatLevel() {
    		return getLevelForXp(Skills.SUMMONING) / 8;
    	}
    
    	public void drainSummoning(int amt) {
    		int level = getLevel(Skills.SUMMONING);
    		if (level == 0)
    			return;
    		set(Skills.SUMMONING, amt > level ? 0 : level - amt);
    	}
    
    	public static int getXPForLevel(int level) {
    		int points = 0;
    		int output = 0;
    		for (int lvl = 1; lvl <= level; lvl++) {
    			points += Math.floor((double) lvl + 8.0
    					* Math.pow(2.0, (double) lvl / .0));
    			if (lvl >= level) {
    				return output;
    			}
    			output = (int) Math.floor(points / 4);
    		}
    		return 0;
    	}
    
    	public int getLevelForXp(int skill) {
    		double exp = xp[skill];
    		int points = 0;
    		int output = 0;
    		for (int lvl = 1; lvl <= (skill == DUNGEONEERING ? 120 : 99); lvl++) {
    			points += Math.floor((double) lvl + 8.0
    					* Math.pow(2.0, (double) lvl / 7.0));
    			output = (int) Math.floor(points / 4);
    			if ((output - 1) >= exp) {
    				return lvl;
    			}
    		}
    		return skill == DUNGEONEERING ? 120 : 99;
    	}
    	public String getTotalXp(Player player) {
        double totalxp = 0;
        for(double xp : player.getSkills().getXp()) {
            totalxp += xp;
        }
        NumberFormat formatter = new DecimalFormat("#######");
        return formatter.format(totalxp);
    }
    
    	public int getTotalLevel(Player player) {
        int totallevel = 0;
        for(int i = 0; i <= 24; i++) {
            totallevel += player.getSkills().getLevelForXp(i);
        }
        return totallevel;
    }
    	public void init() {
    		for (int skill = 0; skill < level.length; skill++)
    			refresh(skill);
    		refreshXpCounter();
    	}
    
    	private void refreshXpCounter() {
    		player.getPackets().sendConfig(1801, (int) (xpCounter * 10));
    	}
    
    	public void resetXpCounter() {
    		xpCounter = 0;
    		refreshXpCounter();
    	}
    
    	public void refresh(int skill) {
    		player.getPackets().sendSkillLevel(skill);
    	}
    
    	public void addXp(int skill, double exp) {
                    if (player.xplocked == 1) {
    		return;
    		}
    		player.getControlerManager().trackXP(skill, (int) exp);
    		if (skill != ATTACK && skill != DEFENCE && skill != STRENGTH
    				&& skill != MAGIC && skill != RANGE && skill != HITPOINTS)
    			exp *= player.isDonator() ? Settings.XP_RATE + 35 : Settings.XP_RATE;
    		if (player.getAuraManager().usingWisdom())
    			exp *= 35;
    		if (skill != PRAYER&& skill != THIEVING&& skill != ATTACK&& skill !=STRENGTH&& skill !=DEFENCE&& skill !=RANGE&& skill !=MAGIC)
    			exp *= 35;
    		if (skill != DUNGEONEERING)
    		    exp *= 35;
    		int oldLevel = getLevelForXp(skill);
    		xp[skill] += exp;
    		xpCounter += exp;
    		refreshXpCounter();
    		if (xp[skill] > MAXIMUM_EXP) {
    			xp[skill] = MAXIMUM_EXP;
    		}
    		int newLevel = getLevelForXp(skill);
    		int levelDiff = newLevel - oldLevel;
    		if (newLevel > oldLevel) {
    			level[skill] += levelDiff;
    			player.getDialogueManager().startDialogue("LevelUp", skill);
    			if (skill == HITPOINTS)
    				player.heal(levelDiff * 10);
    			if (skill == PRAYER)
    				player.getPrayer().restorePrayer(levelDiff * 10);
    			if (skill == SUMMONING || (skill >= ATTACK && skill <= MAGIC))
    				player.getAppearence().generateAppearenceData();
    		}
    		refresh(skill);
    	}
    
    	public void addSkillXpRefresh(int skill, double xp) {
    		this.xp[skill] += xp;
    		level[skill] = (short) getLevelForXp(skill);
    	}
    
    	public void resetSkillNoRefresh(int skill) {
    		xp[skill] = 0;
    		level[skill] = 1;
    	}
    
    	public void setXp(int skill, double exp) {
    		xp[skill] = exp;
    		refresh(skill);
    	}
    }
    [/SPOILER]
    Reply With Quote  
     

  4. #4  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    20
    Posts
    3,377
    Thanks given
    7,120
    Thanks received
    1,879
    Discord
    View profile
    Rep Power
    3454
    Quote Originally Posted by countrysnp View Post
    Okay so it is fixed for combat stats, but for the Skilling stats, right when you woodcut or mine, or whatever and do one ore or one log, i get 99 in that stats? how do i fix this?
    Skills.java class
    [SPOILER]
    Code:
    package com.rs.game.player;
    
    import java.io.Serializable;
    
    import com.rs.Settings;
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    
    public final class Skills implements Serializable {
    
    	private static final long serialVersionUID = -7086829989489745985L;
    
    	public static final double MAXIMUM_EXP = 200000000;
    	public static final int ATTACK = 0, DEFENCE = 1, STRENGTH = 2,
    			HITPOINTS = 3, RANGE = 4, PRAYER = 5, MAGIC = 6, COOKING = 7,
    			WOODCUTTING = 8, FLETCHING = 9, FISHING = 10, FIREMAKING = 11,
    			CRAFTING = 12, SMITHING = 13, MINING = 14, HERBLORE = 15,
    			AGILITY = 16, THIEVING = 17, SLAYER = 18, FARMING = 19,
    			RUNECRAFTING = 20, CONSTRUCTION = 22, HUNTER = 21, SUMMONING = 23,
    			DUNGEONEERING = 24;
    
    	public static final String[] SKILL_NAME = { "Attack", "Defence",
    			"Strength", "Hitpoints", "Range", "Prayer", "Magic", "Cooking",
    			"Woodcutting", "Fletching", "Fishing", "Firemaking", "Crafting",
    			"Smithing", "Mining", "Herblore", "Agility", "Thieving", "Slayer",
    			"Farming", "Runecrafting", "Construction", "Hunter", "Summoning",
    			"Dungeoneering" };
    
    	private short level[];
    	private double xp[];
    	private double xpCounter;
    
    	private transient Player player;
    
    	public void passLevels(Player p) {
    		this.level = p.getSkills().level;
    		this.xp = p.getSkills().xp;
    	}
    
    	public Skills() {
    		level = new short[25];
    		xp = new double[25];
    		for (int i = 0; i < level.length; i++) {
    			level[i] = 1;
    			xp[i] = 0;
    		}
    		level[3] = 10;
    		xp[3] = 1184;
    		level[HERBLORE] = 3;
    		xp[HERBLORE] = 250;
    	}
    
    	public void restoreSkills() {
    		for (int skill = 0; skill < level.length; skill++) {
    			level[skill] = (short) getLevelForXp(skill);
    			refresh(skill);
    		}
    	}
    
    	public void setPlayer(Player player) {
    		this.player = player;
    	}
    	public double[] getXp() {
    		return xp;
    	}
    	
    	public int getLevel(int skill) {
    		return level[skill];
    	}
    
    	public double getXp(int skill) {
    		return xp[skill];
    	}
    
    	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 = 1;
    		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;
    	}
    
    	public void set(int skill, int newLevel) {
    		level[skill] = (short) newLevel;
    		refresh(skill);
    	}
    
    	public int drainLevel(int skill, int drain) {
    		int drainLeft = drain - level[skill];
    		if (drainLeft < 0) {
    			drainLeft = 0;
    		}
    		level[skill] -= drain;
    		if (level[skill] < 0) {
    			level[skill] = 0;
    		}
    		refresh(skill);
    		return drainLeft;
    	}
    
    	public int getCombatLevelWithSummoning() {
    		return getCombatLevel() + getSummoningCombatLevel();
    	}
    
    	public int getSummoningCombatLevel() {
    		return getLevelForXp(Skills.SUMMONING) / 8;
    	}
    
    	public void drainSummoning(int amt) {
    		int level = getLevel(Skills.SUMMONING);
    		if (level == 0)
    			return;
    		set(Skills.SUMMONING, amt > level ? 0 : level - amt);
    	}
    
    	public static int getXPForLevel(int level) {
    		int points = 0;
    		int output = 0;
    		for (int lvl = 1; lvl <= level; lvl++) {
    			points += Math.floor((double) lvl + 8.0
    					* Math.pow(2.0, (double) lvl / .0));
    			if (lvl >= level) {
    				return output;
    			}
    			output = (int) Math.floor(points / 4);
    		}
    		return 0;
    	}
    
    	public int getLevelForXp(int skill) {
    		double exp = xp[skill];
    		int points = 0;
    		int output = 0;
    		for (int lvl = 1; lvl <= (skill == DUNGEONEERING ? 120 : 99); lvl++) {
    			points += Math.floor((double) lvl + 8.0
    					* Math.pow(2.0, (double) lvl / 7.0));
    			output = (int) Math.floor(points / 4);
    			if ((output - 1) >= exp) {
    				return lvl;
    			}
    		}
    		return skill == DUNGEONEERING ? 120 : 99;
    	}
    	public String getTotalXp(Player player) {
        double totalxp = 0;
        for(double xp : player.getSkills().getXp()) {
            totalxp += xp;
        }
        NumberFormat formatter = new DecimalFormat("#######");
        return formatter.format(totalxp);
    }
    
    	public int getTotalLevel(Player player) {
        int totallevel = 0;
        for(int i = 0; i <= 24; i++) {
            totallevel += player.getSkills().getLevelForXp(i);
        }
        return totallevel;
    }
    	public void init() {
    		for (int skill = 0; skill < level.length; skill++)
    			refresh(skill);
    		refreshXpCounter();
    	}
    
    	private void refreshXpCounter() {
    		player.getPackets().sendConfig(1801, (int) (xpCounter * 10));
    	}
    
    	public void resetXpCounter() {
    		xpCounter = 0;
    		refreshXpCounter();
    	}
    
    	public void refresh(int skill) {
    		player.getPackets().sendSkillLevel(skill);
    	}
    
    	public void addXp(int skill, double exp) {
                    if (player.xplocked == 1) {
    		return;
    		}
    		player.getControlerManager().trackXP(skill, (int) exp);
    		if (skill != ATTACK && skill != DEFENCE && skill != STRENGTH
    				&& skill != MAGIC && skill != RANGE && skill != HITPOINTS)
    			exp *= player.isDonator() ? Settings.XP_RATE + 35 : Settings.XP_RATE;
    		if (player.getAuraManager().usingWisdom())
    			exp *= 35;
    		if (skill != PRAYER&& skill != THIEVING&& skill != ATTACK&& skill !=STRENGTH&& skill !=DEFENCE&& skill !=RANGE&& skill !=MAGIC)
    			exp *= 35;
    		if (skill != DUNGEONEERING)
    		    exp *= 35;
    		int oldLevel = getLevelForXp(skill);
    		xp[skill] += exp;
    		xpCounter += exp;
    		refreshXpCounter();
    		if (xp[skill] > MAXIMUM_EXP) {
    			xp[skill] = MAXIMUM_EXP;
    		}
    		int newLevel = getLevelForXp(skill);
    		int levelDiff = newLevel - oldLevel;
    		if (newLevel > oldLevel) {
    			level[skill] += levelDiff;
    			player.getDialogueManager().startDialogue("LevelUp", skill);
    			if (skill == HITPOINTS)
    				player.heal(levelDiff * 10);
    			if (skill == PRAYER)
    				player.getPrayer().restorePrayer(levelDiff * 10);
    			if (skill == SUMMONING || (skill >= ATTACK && skill <= MAGIC))
    				player.getAppearence().generateAppearenceData();
    		}
    		refresh(skill);
    	}
    
    	public void addSkillXpRefresh(int skill, double xp) {
    		this.xp[skill] += xp;
    		level[skill] = (short) getLevelForXp(skill);
    	}
    
    	public void resetSkillNoRefresh(int skill) {
    		xp[skill] = 0;
    		level[skill] = 1;
    	}
    
    	public void setXp(int skill, double exp) {
    		xp[skill] = exp;
    		refresh(skill);
    	}
    }
    [/SPOILER]
    Replace addXp:
    Code:
    	public void addXp(int skill, double exp) {
                    if (player.xplocked == 1) {
    		return;
    		}
    		player.getControlerManager().trackXP(skill, (int) exp);
            if (skill == ATTACK || skill == DEFENCE || skill == STRENGTH
                    || skill == MAGIC || skill == RANGE || skill == HITPOINTS || skill == SLAYER)
                exp *= Settings.COMBAT_XP_RATE;
            else
                exp *= Settings.SKILLING_XP_RATE;
    		if (player.getAuraManager().usingWisdom())
    			exp *= 35;
    		int oldLevel = getLevelForXp(skill);
    		xp[skill] += exp;
    		xpCounter += exp;
    		refreshXpCounter();
    		if (xp[skill] > MAXIMUM_EXP) {
    			xp[skill] = MAXIMUM_EXP;
    		}
    		int newLevel = getLevelForXp(skill);
    		int levelDiff = newLevel - oldLevel;
    		if (newLevel > oldLevel) {
    			level[skill] += levelDiff;
    			player.getDialogueManager().startDialogue("LevelUp", skill);
    			if (skill == HITPOINTS)
    				player.heal(levelDiff * 10);
    			if (skill == PRAYER)
    				player.getPrayer().restorePrayer(levelDiff * 10);
    			if (skill == SUMMONING || (skill >= ATTACK && skill <= MAGIC))
    				player.getAppearence().generateAppearenceData();
    		}
    		refresh(skill);
    }
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work [Only registered and activated users can see links. ]!
    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. [667] *Calantro718* tizenx remake
    By obeyrsps in forum Advertise
    Replies: 9
    Last Post: 05-08-2014, 06:06 PM
  2. [667] Calantro718 tizenx remake
    By obeyrsps in forum Advertise
    Replies: 0
    Last Post: 05-05-2014, 05:18 PM
  3. Replies: 21
    Last Post: 04-25-2014, 05:42 PM
  4. Xp rates 667
    By keyal in forum Help
    Replies: 5
    Last Post: 07-10-2012, 08:27 AM
  5. 667 XP rate
    By Zond in forum Help
    Replies: 5
    Last Post: 03-28-2012, 08:54 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
  •