Jump to content

Search the Community

Showing results for tags 'level'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 60 results

  1. [SIZE=3][FONT=tahoma]This is pure simple and basic. I think it could be useful to some people. I think this is more of a tutorial but I'll go with it being a snippet since its short. Allows you to reset your combat level, combat and skilling stats instead of having it look like: [CODE] player.getSkills().set(Skills.ATTACK, 1); player.getSkills().setXp(Skills.ATTACK, Skills.getXPForLevel(1)); player.getSkills().set(Skills.STRENGTH, 1); player.getSkills().setXp(Skills.STRENGTH, Skills.getXPForLevel(1)); player.getSkills().set(Skills.DEFENCE, 1); player.getSkills().setXp(Skills.DEFENCE, Skills.getXPForLevel(1)); player.getSkills().set(Skills.RANGE, 1); player.getSkills().setXp(Skills.RANGE, Skills.getXPForLevel(1)); player.getSkills().set(Skills.PRAYER, 1); player.getSkills().setXp(Skills.PRAYER, Skills.getXPForLevel(1)); player.getSkills().set(Skills.MAGIC, 1); player.getSkills().setXp(Skills.MAGIC, Skills.getXPForLevel(1)); player.getSkills().set(Skills.HITPOINTS, 10); player.getSkills().setXp(Skills.HITPOINTS, Skills.getXPForLevel(10)); [/CODE] You can have it look like: [CODE] player.getSkills().resetCombatStats(); player.getSkills().resetSkillStats(); player.getSkills().resetCombatLevel(); [/CODE] [U][B]But lets start. Open up Skills.java and replace your getCombatLevel() int with this one: [/B][/U] [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); 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; } int summoning = getLevelForXp(Skills.SUMMONING); summoning /= 8; return combatLevel + summoning; } [/CODE] Add this somewhere: [CODE] public int combatLevel = 3; [/CODE] Then add these voids to the same class: [CODE] /** * Resets combat level. * @[B][URL="http://www.runelocus.com/forums/member.php?u=75098"]Para[/URL][/B]m */ public void resetCombatLevel() { combatLevel = 3; player.getAppearence().generateAppearenceData(); } /** * Resets all combat stats. */ public void resetCombatStats() { player.getSkills().set(Skills.ATTACK, 1); player.getSkills().setXp(Skills.ATTACK, Skills.getXPForLevel(1)); player.getSkills().set(Skills.STRENGTH, 1); player.getSkills().setXp(Skills.STRENGTH, Skills.getXPForLevel(1)); player.getSkills().set(Skills.DEFENCE, 1); player.getSkills().setXp(Skills.DEFENCE, Skills.getXPForLevel(1)); player.getSkills().set(Skills.RANGE, 1); player.getSkills().setXp(Skills.RANGE, Skills.getXPForLevel(1)); player.getSkills().set(Skills.PRAYER, 1); player.getSkills().setXp(Skills.PRAYER, Skills.getXPForLevel(1)); player.getSkills().set(Skills.MAGIC, 1); player.getSkills().setXp(Skills.MAGIC, Skills.getXPForLevel(1)); player.getSkills().set(Skills.HITPOINTS, 10); player.getSkills().setXp(Skills.HITPOINTS, Skills.getXPForLevel(10)); player.getAppearence().generateAppearenceData(); } /** * Resets all skill stats. */ public void resetSkillStats() { player.getSkills().set(Skills.SLAYER, 1); player.getSkills().setXp(Skills.SLAYER, Skills.getXPForLevel(1)); player.getSkills().set(Skills.AGILITY, 1); player.getSkills().setXp(Skills.AGILITY, Skills.getXPForLevel(1)); player.getSkills().set(Skills.WOODCUTTING, 1); player.getSkills().setXp(Skills.WOODCUTTING, Skills.getXPForLevel(1)); player.getSkills().set(Skills.THIEVING, 1); player.getSkills().setXp(Skills.THIEVING, Skills.getXPForLevel(1)); player.getSkills().set(Skills.FARMING, 1); player.getSkills().setXp(Skills.FARMING, Skills.getXPForLevel(1)); player.getSkills().set(Skills.SUMMONING, 1); player.getSkills().setXp(Skills.SUMMONING, Skills.getXPForLevel(1)); player.getSkills().set(Skills.DUNGEONEERING, 1); player.getSkills().setXp(Skills.DUNGEONEERING, Skills.getXPForLevel(1)); player.getSkills().set(Skills.MINING, 1); player.getSkills().setXp(Skills.MINING, Skills.getXPForLevel(1)); player.getSkills().set(Skills.SMITHING, 1); player.getSkills().setXp(Skills.SMITHING, Skills.getXPForLevel(1)); player.getSkills().set(Skills.COOKING, 1); player.getSkills().setXp(Skills.COOKING, Skills.getXPForLevel(1)); player.getSkills().set(Skills.HERBLORE, 1); player.getSkills().setXp(Skills.HERBLORE, Skills.getXPForLevel(1)); player.getSkills().set(Skills.FIREMAKING, 1); player.getSkills().setXp(Skills.FIREMAKING, Skills.getXPForLevel(1)); player.getAppearence().generateAppearenceData(); } [/CODE] How to use? Add this to whatever and it will reset everything. [CODE] player.getSkills().resetCombatStats(); player.getSkills().resetSkillStats(); player.getSkills().resetCombatLevel(); [/CODE][/FONT][/SIZE]
  2. Okey so imma ask the question real simple. How do i let this slayer part check on slayer level and combatlevel, ive been trying to many things, and really don't know why it always gives erorrs... public void giveTask() { if (c.combatLevel < 50) giveTask(1); else if (c.combatLevel >= 50 && c.combatLevel <= 90) giveTask(2); else if (c.combatLevel > 90 && c.combatLevel <= 121) giveTask(3); else if (c.combatLevel >= 122 && c.combatLevel <= 138) giveTask(4); else giveTask(2); }
  3. I create new accounts on my server and my combat level is 0 + 3, if i get maxed stats, my combat level would be 0 + 138. My combat level stays at 0, does anyone know how to fix?
  4. I believe you should add the following:
  5. Hello, I've used this guide: [url]http://www.************.org/runescape-development/rs-503-client-server/tutorials/501508-637-639-safepk-areas-depth.html[/url] (run3s3rv3r) in order to add SafePvp to my Dementhium server, but currently I'm at a loss with trying to find out how to set the level range.(the maximum level difference in order to attack a player) and currently you have to be the same level. If anyone could help, I'd be very thankful. also, I'm not the richest person around, but I can compensate with some gfx work if you need any done.
  6. I know how to make an area wilderness but i need to set the wilderness level because at the minute it is -3 :/ PLEASE HELP!
  7. [CENTER][B]#Selox 2014[/B] [I]This is my current side project and I have been doing it for a while![/I] [B]Updates[/B] Combat system improvements. Added full appearence, wasn't finished in Selox. Started working on advanced teleportation system. [B]Media[/B] 7.7.2014 - Started very a advanced teleportation system! [img]http://puu.sh/9ZDB0/60bb7fe955.jpg[/img] [img]http://puu.sh/9ZDIF/3cefc76df7.png[/img] [img]http://puu.sh/9ZDLF/147e13efc1.png[/img] [img]http://puu.sh/9ZE4s/c7be7c828e.jpg[/img] Updated weapon animations. [img]http://puu.sh/9ZFav/4124d9c27c.jpg[/img] [/CENTER] [I]Note: Since I have Enso (active server) I work on it as my main priority, also i'm not going to host this will appear straight to the downloads section. I want to contribrute RSPS community by giving advanced Dementhium for you all, that's my main idea.[/I]
  8. Hey, I edited a shopkeeper because of model issues with FrostyCacheEditor and for some reason this npc has gotten a lvl all of the sudden... Anyone knows how to fix ? :3
  9. So, i've been working on a server for quite some time now, off a base, and while going through armour requirements, i've ran into a snag. I cannot seem to give skillcapes a level requirement, and I certainly do not want people wearing them without it. I've searched on the web, i've gone though everything i've learnt so far, and tried different ideas, none of them worked. the main two i thought should work didnt, which are: [CODE] if (itemName.contains("attack cape")) { c.attackLevelReq = 99 ; } [/CODE] This brought no errors, it just didn't work. [CODE] if (itemName.contains("prayer cape")) { c.prayerLevelReq = 99 ; } [/CODE] this brought me the following error [CODE]src\server\model\items\ItemAssistant.java:1790: error: cannot find symbol c.prayerLevelReq = 99 ; ^ symbol: variable prayerLevelReq location: variable c of type Client[/CODE] The only ones requirements i added up to this snag were my dungeoneering requirements, which all went off without a hitch, all set up like this: [CODE] if (itemName.contains("sagittarian vambraces")) { c.defenceLevelReq = 99 ; c.rangeLevelReq = 99 ; } or if (itemName.contains("fractite gauntlets")) { c.defenceLevelReq = 40; } and so forth[/CODE] anyone got any ideas? i've been doing all this in itemAssistant.java let me know if you need more info, im stumped! **Update, I managed to get the Attack, Defence, magic, ranged and strength capes working with requirements by declaring with a case: (thanks to kingbing for jogging the idea of using an ID [code] case 9747: c.attackLevelReq = 99; break; [/code] That's the untrimmed attack cape, and it works But I still have not figured out how to give the rest of my capes a requirement
  10. LynoHD

    718 max level

    How do i set max level in combat and skills on an 718 source?
  11. I've searched through google, runelocus, rune-server, and moparscape and I still don't really know what to do. I want to only change one skill (skill 22) to a max level of 120. I don't know of really any other way to re-word my searches. I ask for your help or for a guide you can recommend. I want all other skills to stay 99. I just need skill 22 to go up to 120.
  12. I need help, my total level won't update. Like i always have to relog for it to update. Please help. [ATTACH=CONFIG]9030[/ATTACH] Thanks
  13. Hi, I'm running Aggroth 317 PI, and when I look in my skills tab, it shows level 99 for everything. Even if the actual level is one, it will read as 99/99, and 2475 total level. EXAMPLE: http:/ /prntscr .com/1qd5zv (remove the spaces to see the link, my post count isn't high enough to post links.) if anyone knows how to fix this, that would be great. :D
  14. Hello, i'm not so sure this is the right place to post, but i'm looking for somebody to design and install a dicing system with a whole interface and everything. I'll describe it just a bit. Just so you know, i'm willing to pay. I want you to have to talk to an npc, An interface comes up with 2 decent sized buttons in a darker brown box, One stating to use Coins, the other stating to use items. If you click on the gp button, it opens up a box to type in the amount you want to dice and press submit or cancel. With the item, i want it to after clicking on that button, to bring up a search box just like the GE and search for an item that you want to dice, and the quantity of this item. After clicking submit, i want that interface to close, then i want another interface to open stating whether you won, or lost. I also want these interfaces to be well designed, and not dull. If you think your up to this challenge, of course i will be paying you for it, Please send me a message or post.
  15. On my 718, players can spawn any familiar at any level. I also tried this on stock Matrix, and it worked as well. Does anybody have a fix? Thanks in advance.
  16. Does anyone know how to fix this [IMG]http://img802.imageshack.us/img802/9840/helpmz.png[/IMG] I followed [URL="http://www.****************/runescape-development/rs2-client/snippets/332717-pi-dspk-new-602-skill-tab.html"]This Guide[/URL] compiled, 0 errors but the hover xp and total level still aren't 100%
  17. are level requirements able to affect doors? Like a guild type thing... if so what code would i do? What i was thinking is something like - case 1533: if (c.[COLOR="#FF0000"]woodcuttingLevel[/COLOR] >= 75 c.movePlayer(####, ####, 0); c.sendMessage("Welcome to the woodcutting guild!"); } break; how could i make this possible?
  18. I have been involved in multiple RSPS communities since 2007, and now I am at a point where I want to fund/launch a professional, commercial level RSPS. I understand a majority of the business side of these servers already, but I am in need of a professional level coder that I could discuss the server with. In the future I will of course need a professional level vps and a web designer. I already have a small team of people for basic moderation and administration within the game. But like I said I am familiar with the business side but not the technical side, thus I would like to talk with a coder and plan out the future server. I am not interested in giving the coder or host anything more than a staff rank, but I am planning on paying all members of the staff. These are of course things that can be negotiated. Please add me on skype: sensesx asap if you are interested. Again I am looking for professional level/highly experienced individuals.
  19. I have been involved in multiple RSPS communities since 2007, and now I am at a point where I want to fund/launch a professional, commercial level RSPS. I understand a majority of the business side of these servers already, but I am in need of a professional level coder that I could discuss the server with. In the future I will of course need a professional level vps and a web designer. I already have a small team of people for basic moderation and administration within the game. But like I said I am familiar with the business side but not the technical side, thus I would like to talk with a coder and plan out the future server. I am not interested in giving the coder or host anything more than a staff rank, but I am planning on paying all members of the staff. These are of course things that can be negotiated. Please add me on skype: sensesx asap if you are interested. Again I am looking for professional level/highly experienced individuals.
  20. [COLOR=#800080][SIZE=4][FONT=georgia]Okay.. so I know for a fact that people are going to ask me why I want to do this, so I'll explain that at the end. My question though: I would like to make it so that players can level up past 99 in their skills. I have already removed part of the cap, and now the max level you can reach is 200 in every skill. But there is one issue.. If a player goes over 99, it only shows the first half leveling up, as if the player had used a potion to boost it. Like this: [IMG]http://img805.imageshack.us/img805/4341/15d916871f434a568a8daad.png[/IMG] And when I log out, then back in, the skills start to slowly drain back to 99. Could someone please tell me how to fix this? I would like to make it say: Farming 107/107 Instead of: Farming 107/99 There was a few files that I went into, and changed. They are: player.java, skills.java, and levelup.java. -------- In the levelup.java, I changed the [/FONT][/SIZE][/COLOR] [CODE](level == 120 || level == 99)[/CODE] [COLOR=#800080][SIZE=4][FONT=georgia]to this:[/FONT][/SIZE][/COLOR] [CODE]@Override public void start() { skill = (Integer) parameters[0]; int level = player.getSkills().getLevelForXp(skill); player.getTemporaryAttributtes().put("leveledUp", skill); player.getTemporaryAttributtes().put("leveledUp[" + skill + "]", Boolean.TRUE); player.setNextGraphics(new Graphics(199)); if (level == 200 || level == 200) player.setNextGraphics(new Graphics(1765)); player.getInterfaceManager().sendChatBoxInterface(740); String name = Skills.SKILL_NAME[skill]; player.getPackets().sendIComponentText( 740, 0, "Congratulations, you have just advanced a" + (name.startsWith("A") ? "n" : "") + " " + name + " level!"); player.getPackets().sendIComponentText(740, 1, "You have now reached level " + level + "."); player.getPackets().sendGameMessage( "You've just advanced a" + (name.startsWith("A") ? "n" : "") + " " + name + " level! You have reached level " + level + "."); player.getPackets().sendConfigByFile(4757, getIconValue(skill)); switchFlash(player, skill, true); int musicEffect = SKILL_LEVEL_UP_MUSIC_EFFECTS[skill]; if (musicEffect != -1) player.getPackets().sendMusicEffect(musicEffect); if (level == 200) { sendNews(player, skill, level); } } public static void sendNews(Player player, int skill, int level) { boolean reachedAll = true; for (int i = 0; i < Skills.SKILL_NAME.length; i++) { if (player.getSkills().getLevelForXp(i) < 200) { reachedAll = false; break; } } if(!reachedAll) { World.sendWorldMessage("<img=6><col=ff8c38>News: "+player.getDisplayName()+" has achieved "+level+" "+Skills.SKILL_NAME[skill]+".", false); return; } World.sendWorldMessage("<img=7><col=ff0000>News: "+player.getDisplayName()+" has just achieved at least level 200 in all skills!", false); player.getInventory().addItem(20767, 1); player.getInventory().addItem(20768, 1); }[/CODE] [FONT=georgia][SIZE=4][COLOR=#800080] And in the skills.java, I changed the 120 || 99 thing too. It looks like this now: [/COLOR][/SIZE][/FONT][CODE]} public int getLevelForXp(int skill) { double exp = xp[skill]; int points = 0; int output = 0; for (int lvl = 1; lvl <= (skill == DUNGEONEERING ? 200 : 200); lvl++) { points += Math.floor(lvl + 300.0 * Math.pow(2.0, lvl / 7.0)); output = (int) Math.floor(points / 4); if ((output - 1) >= exp) { return lvl; } } return skill == DUNGEONEERING ? 200 : 200; } public int getTotalLevel(Player player) { int totallevel = 0; for(int i = 0; i <= 24; i++) { totallevel += player.getSkills().getLevelForXp(i); } return totallevel; } public String getTotalXp(Player player) { double totalxp = 0; for(double xp : player.getSkills().getXp()) { totalxp += xp; } NumberFormat formatter = new DecimalFormat("#######"); return formatter.format(totalxp); }[/CODE] [SIZE=4][COLOR=#800080] [FONT=georgia]What am I missing...?[/FONT] [FONT=georgia]I was told by a friend that it could have something to do with adding a mathematical equation into one of those files...? [/FONT] [FONT=georgia]I would greatly appreciate any help that is offered. [/FONT] [FONT=georgia]------ As far as why I would want to do this, [/FONT] [FONT=georgia]Its because usually when players max out at all 99's, they get bored. They tend to quit after that as well. So I thought that I would make it a little more interesting, as well as making the Completionist cape harder to get. You still get Max at 99 though. [/FONT] [FONT=georgia]This would also make PvM'ing a little easier, and PvP'ing would be kind of unique in my server. [/FONT] [FONT=georgia]Again.. any help would be greatly appreciated.[/FONT] [/COLOR][/SIZE]
  21. So I am not asking how to fix it, just where I can look. I have no idea, I could fix it once I got there I think. I am trying not to leech and just get help. Problem: Melee, Range do not level HP only Magic does
  22. Hey Well im trying to use a teleport where you need a certain skill level to teleport.. For example: Fishing guild, you need 68 fishing.. Anybody would share the code would be appreciated Thanks :D
  23. okay so i wanna add prestiges, and i need it to check whether a player has all 99 skills (skill 1-22), so if yes all these skills will be reset to 1 and prestige level will be +1, how can i do this? totallevel isnt in playersave.java so i couldnt do if c.totallevel < #### (you may prestige), any ideas? this will go in clickingbuttons .java, i believe a simple code could check this and set levels to 1
  24. Where could I add a constitution requirement? The strength, attack, magic, defence, etc. already exist, but how could I add my own? I've looked around in all of the imports, and I've looked through the entire ItemAssistant, and I just can't find anything on it. I just need to create an item level requirement (for torva) with the constitution stat. This is what I mean, but it creates compile errors (I have to make it myself): [code] case 20135: case 20139: case 20143: c.strengthLevelReq = 80; c.defenceLevelReq = 80; c.constitutionLevelReq = 80; break; case 20147: case 20151: case 20155: c.rangeLevelReq = 80; c.defenceLevelReq = 80; c.constitutionLevelReq = 80; break; case 20159: case 20163: case 20167: c.magicLevelReq = 80; c.defenceLevelReq = 80; c.constitutionLevelReq = 80; break;[/code] Something like the next snippet is somewhat useless, and I need to actually create my own constutionLevelReq wherever and however the other level requirements were declared. [CODE]if (id == TORVA) { if (c.playerLevel[3] != level) { sm("You can't wear this"); return; } }[/CODE] [COLOR="#FF0000"]EDIT: Solved.[/COLOR] Open Player.java, press Ctrl + F, and search for "defenceLevelReq" Under this line add: [code]constitutionLevelReq,[/code] After that, go into your ItemAssistant.java and place the level requirement wherever you want, and search for "You need a defence level of" Above that, add: [code] if(c.constLevelReq > 0) { if(c.getPA().getLevelForXP(c.playerXP[3]) < c.constLevelReq) { c.sendMessage("You need a constitution level of "+c.constLevelReq+" to wear this item."); canWearItem = false; } }[/code] Replace it with constitution values.
  25. Hello, I am holding a contest to give away my 138 since I no longer have an interest for Runescape. This contest is 100% risk free. The contest will end on October.10th. I have a few pure accounts as well, so if you don't win the 138, you have a chance at the pures. Here's how to enter! 1) Create a twitter account. If you already have one, great! 2) Follow [url]https://twitter.com/LaughNotCry[/url] 3) This is a comedy account. Hilarious jokes, and inspirational quotes. After you have followed, Pick a number between 1-1000. 4) After you have followed, Retweet atleast 1 joke. Since this contest ends in 10 days, and if you genuinely find something funny (I'm sure you will) Then feel free to Retweet to your liking. 5) On October 10th, I will be doing a live stream, and Random.org will be used. The person whos number is closest to the one generated, will win the 138 account. 4 pure accounts (All over level 70) will also be handed out using the same method. Enjoy! If you have questions, Please post here. Mods, please allow me to carry out this this contest. Much appreciated. Images of the account: [url]http://puu.sh/19MVS[/url] [url]http://puu.sh/19MT[/url] [url]http://puu.sh/19MZ1[/url] [url]http://puu.sh/19N06[/url]
×