Jump to content

penzances

Member
  • Content count

    72
  • Joined

  • Last visited

Everything posted by penzances

  1. starting... src\com\rs\game\player\dialogues\SlayerMaster.java:16: error: cannot find symbol Master master = player.getSlayerMaster(); ^ symbol: method getSlayerMaster() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:18: error: cannot find symbol player.setSlayerMaster(Master.SPRIA); ^ symbol: method setSlayerMaster(Master) location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:26: error: cannot find symbol Master master = playergetSlayerMaster(); ^ symbol: method playergetSlayerMaster() location: class SlayerMaster src\com\rs\game\player\dialogues\SlayerMaster.java:30: error: cannot find symbol if (player.getSlayerTask() != null) { ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:48: error: cannot find symbol SlayerTask task = player.getSlayerTask(); ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:66: error: cannot find symbol + player.getSlayerTask().getName() ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:99: error: cannot find symbol if (player.getSlayerTask() != null) { ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:112: error: cannot find symbo l player.setSlayerMaster(Master.forId(npcI d)); ^ symbol: method forId(int) location: class Master Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 8 errors Press any key to continue . . . Someone please help me thanks :] didnt post out right the arrows are pointing at the dots like this player"."getslayertask
  2. Sorry im very new to this how would i go about doing that can you link me to a guide?
  3. [quote name='redevolutionX']never heard of an code tag? BCH[/QUOTE] how :p?
  4. well im ne to coding 317+ help me out :P?
  5. penzances

    Xp Ratess

    How can i change my xp rate in this code package com.rs.game.player; import java.io.Serializable; import com.rs.Settings; public final class Skills implements Serializable { private static final long serialVersionUID = -7086829989489745985L; public static final double MAXIMUM_EXP = 300000000; 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 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 = 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; } 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 + 300.0 * Math.pow(2.0, (double) lvl / 7.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 + 300.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 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) { player.getControlerManager().trackXP(skill, (int) exp); if (skill != ATTACK && skill != DEFENCE && skill != STRENGTH && skill != MAGIC && skill != RANGE && skill != HITPOINTS) exp *= player.isDonator() ? Settings.SKILLING_XP_RATE + 1 : Settings.SKILLING_XP_RATE; else exp *= player.isDonator() ? Settings.COMBAT_XP_RATE + 1 : Settings.COMBAT_XP_RATE; if (player.getAuraManager().usingWisdom()) exp *= 1.025; if (skill != PRAYER) exp *= 170; 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("L*****p", 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); } } please help :P
  6. can someone help me making ::update command im using 711 server and also with changing the default above head text colour to change it from green thanks :)
  7. penzances

    Xp Ratess

    whats that ment to mean
  8. Need Someone To Help Code More Complex Things For My Server They Will Get Co-Owner We Are Aready vps hosted and have 25+ players and on 2nd page place 17 on runelocus Go to [url]www.Project-Redemption.com[/url] to see it or add me on skype mark.lister482:p
  9. I need help with insidia client cache downloader :S
  10. It Works When I Manually Put Cache In There
  11. Cant Get Auto Cache To Work Can Someone Help
  12. Please Help Someone :( People are leaving my server :s
  13. Its not the cache thats the problem i tryed it with another client and it worked so its the client that is the problem but i really need to use this client :S
  14. Ive tried many things :/
  15. It Downloads The Cache But It Does Not Extract It Just Says Error Loading Please Contact Staff...
  16. penzances

    Windows Vps Help

    Hey Guys i just brought a windows vps because i had no luck with the lynix one and now i need help setting this one up :/ ive got java and no ip and all that stuff do i need to setup routing will pay $5 over paypal if u can get this working for me over team viewer. Thanks
×