Jump to content

Search the Community

Showing results for tags 'requirements'.



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 14 results

  1. I haven't seen this released yet so thought I should release my version of it. It works exactly like RuneScape. The rest of the teleports I'm sure you can finish to make it 100% as it's close to it; around 95%. Add or replace these [B]cases [/B]in ClickingButtons.java: [CODE] case 4171: case 50056: String type = c.playerMagicBook == 0 ? "modern" : "ancient"; c.getPA().startTeleport(Config.EDGEVILLE_X, Config.EDGEVILLE_Y, 0, type); break; case 50235: case 4140: if (!c.getItems().playerHasItem(554, 1) || !c.getItems().playerHasItem(556, 3) || !c.getItems().playerHasItem(563, 1)) { c.sendMessage("You do not have the runes required to teleport here."); } else { c.getItems().deleteItem(554, 1); c.getItems().deleteItem(556, 3); c.getItems().deleteItem(563, 1); c.getPA().startTeleport(Config.VARROCK_X, Config.VARROCK_Y, 0, "modern"); } c.teleAction = 1; break; case 4143: case 50245: if (!c.getItems().playerHasItem(557, 1) || !c.getItems().playerHasItem(556, 3) || !c.getItems().playerHasItem(563, 1)) { c.sendMessage("You do not have the runes required to teleport here."); } else { c.getItems().deleteItem(557, 1); c.getItems().deleteItem(556, 3); c.getItems().deleteItem(563, 1); c.getPA().startTeleport(Config.LUMBRIDGE_X, Config.LUMBRIDGE_Y, 0, "modern"); } c.teleAction = 2; break; case 50253: case 4146: if (!c.getItems().playerHasItem(555, 1) || !c.getItems().playerHasItem(556, 3) || !c.getItems().playerHasItem(563, 1)) { c.sendMessage("You do not have the runes required to teleport here."); } else { c.getItems().deleteItem(555, 1); c.getItems().deleteItem(556, 3); c.getItems().deleteItem(563, 1); c.getPA().startTeleport(Config.FALADOR_X, Config.FALADOR_Y, 0, "modern"); } c.teleAction = 3; break; case 51005: case 4150: if (!c.getItems().playerHasItem(556, 5) || !c.getItems().playerHasItem(563, 1)) { c.sendMessage("You do not have the runes required to teleport here."); } else { c.getItems().deleteItem(556, 5); c.getItems().deleteItem(563, 1); c.getPA().startTeleport(Config.CAMELOT_X, Config.CAMELOT_Y, 0, "modern"); } c.teleAction = 4; break; case 51013: case 6004: if (!c.getItems().playerHasItem(555, 2) || !c.getItems().playerHasItem(563, 2)) { c.sendMessage("You do not have the runes required to teleport here."); } else { c.getItems().deleteItem(555, 2); c.getItems().deleteItem(563, 2); c.getPA().startTeleport(Config.ARDOUGNE_X, Config.ARDOUGNE_Y, 0, "modern"); } c.teleAction = 5; break; [/CODE] And make sure to add these [B]ints [/B]in Config.java: [CODE] /** * Glory */ public static final int EDGEVILLE_X = 3087; public static final int EDGEVILLE_Y = 3500; public static final int AL_KHARID_X = 3293; public static final int AL_KHARID_Y = 3174; public static final int KARAMJA_X = 3087; public static final int KARAMJA_Y = 3500; public static final int MAGEBANK_X = 2538; public static final int MAGEBANK_Y = 4716; /** * Modern */ public static final int VARROCK_X = 3210, VARROCK_Y = 3424; public static final int YANILLE_X = 2569, YANILLE_Y = 3099; public static final int DRAYNOR_X = 3093, DRAYNOR_Y = 3244; public static final int LUMBRIDGE_X = 3222, LUMBRIDGE_Y = 3218; public static final int FALADOR_X = 2964, FALADOR_Y = 3378; public static final int CAMELOT_X = 2757, CAMELOT_Y = 3479; public static final int ARDOUGNE_X = 2662, ARDOUGNE_Y = 3305; public static final int WATCH_TOWER_X = 2547, WATCH_TOWER_Y = 3112; public static final int TROLLHEIM_X = 2910, TROLLHEIM_Y = 3612; public static final int APE_ATOLL_X = 2754, APE_ATOLL_Y = 2784; /** * Ancient */ public static final int PADDEWWA_X = 3098; public static final int PADDEWWA_Y = 9884; public static final int SENNTISTEN_X = 3322; public static final int SENNTISTEN_Y = 3336; public static final int KHARYRLL_X = 3492; public static final int KHARYRLL_Y = 3471; public static final int LASSAR_X = 3006; public static final int LASSAR_Y = 3471; public static final int DAREEYAK_X = 3161; public static final int DAREEYAK_Y = 3671; public static final int CARRALLANGAR_X = 3156; public static final int CARRALLANGAR_Y = 3666; public static final int ANNAKARL_X = 3288; public static final int ANNAKARL_Y = 3886; public static final int GHORROCK_X = 2977; public static final int GHORROCK_Y = 3873; [/CODE] Hope that helps! <3
  2. Hey forums, I have recently decided to create my own client with features for Old School like OSBuddy but have failed trying to scope any helpful information. The advice I seek is - Programs you recommend - Languages needed and where you suggest learning them - Helpful sources if needed AND - Any advice you have to offer Keep in mind when you answer that I do plan on completing this task and have plenty of years to put into it! I appreciate all the help I can get even if it isn't in my specified questions. tl;dr = free vip 4 my t00lkit 2 ever1 who helpslolking:gg: Cheers, Future Old School Toolkit Owner
  3. Hi i'm trying to make a quest with skill requirements. What method would I use in DialogueManager to get the skill name & level? I got something like this but I don't know how to check if the level is over 15. Sorry if this is ambiguous, im a newb pls halp [CODE] case 1051: if (player.getSkill().getLevel()[Skill.COOKING]. <(15) DialogueMethods.sendNpcChat(c, 666, "Caleb", DialogueMethods.WORRIED, "Thank god you're here, " + c.playerName, "I've lost all of my special ingredients", "the King's Banquet will be ruined!", "Will you help me?"); c.nextChat = 1002;[/CODE] Thanks!
  4. 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
  5. Ok guys do to the fact that i cant login to my router i need a hoster/Co-owner if you are intrested add me on skype. @ryan.julien1 Requirments: -Must be 14 years of age or older (MUST BE MATURE) -Must have skype to voice chat. -Must be able to keep the server on at all times. -if you can code thats great but if not like i said all i need is a hoster.
  6. 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?
  7. hello does any1 have dialouge code for like u need to kill 100 darKeasts to get this cape or you need to defeat nex to wear this cape and like u need to fletch one magic longbow to wear this cape and more soo it shows interface like this: Completions cape Requirements you need to have defeated nex kill dark beasts 0/100 you need to fletch magic longbow 0/1 thanks for help :P
  8. I told myself I wouldn't release this but fuck it. This is basically a much eaiser way to do skill requirements, the anti-leech is getting it to work for yourself. Plus I don't feel like explaining shit, and this is a snippet. Heavily documented so you can somewhat understand what to do with this. Make the getters and setters yourself, also, make the cfg file load on startup yourself. [u][b]Skill class[/b][/u] [code]package server.rs2.players.skills; import server.rs2.Constants; import server.rs2.players.Client; /** * Absract class for skills, every skill should extend this class * * @author lare96 */ public abstract class Skill { /** * Skills constants and thier respective ids */ public enum Skills { ATTACK(Constants.PLAYER_ATTACK), DEFENCE(Constants.PLAYER_DEFENCE), STRENGTH(Constants.PLAYER_STRENGTH), HITPOINTS(Constants.PLAYER_HITPOINTS), RANGED(Constants.PLAYER_RANGED), PRAYER(Constants.PLAYER_PRAYER), MAGIC(Constants.PLAYER_MAGIC), COOKING(Constants.PLAYER_COOKING), WOODCUTTING(Constants.PLAYER_WOODCUTTING), FLETCHING(Constants.PLAYER_FLETCHING), FISHING(Constants.PLAYER_FISHING), FIREMAKING(Constants.PLAYER_FIREMAKING), CRAFTING(Constants.PLAYER_CRAFTING), SMITHING(Constants.PLAYER_SMITHING), MINING(Constants.PLAYER_MINING), HERBLORE(Constants.PLAYER_HERBLORE), AGILITY(Constants.PLAYER_AGILITY), THIEVING(Constants.PLAYER_THIEVING), SLAYER(Constants.PLAYER_SLAYER), FARMING(Constants.PLAYER_FARMING), RUNECRAFTING(Constants.PLAYER_RUNECRAFTING); private int id; Skills(int id) { this.id = id; } public int getId() { return id; } } /** * Adds exp to a specificed skill * * @param skill * the skill * @param amount * the amount * @param player * the player to add for */ public void exp(Skills skill, int amount, Client player) { player.getMethods().addSkillXP(amount, skill.getId()); } /** * Gets the level of a specified skill * * @param skill * the skill * @param player * the player to get the level for * * @return the level */ public int getLevel(Skills skill, Client player) { return player.playerLevel[skill.getId()]; } } [/code] [u][b]Requirements class[/b][/u] [code]package server.rs2.players; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; import server.rs2.players.skills.Skill; import server.util.Misc; /** * Level requirements for wearing equipment, handled in a cfg file * * @see ./data/config/requirements.cfg * * @author lare96 */ public class Requirements extends Skill { /** * Our player */ private Client player; /** * Defines the player * * @param p * the player */ public Requirements(Client p) { this.player = p; } /** * Constants that represent the different parts of the item name you check * to set a requirement for */ public enum Name { STARTS_WITH, ENDS_WITH, EQUALS } /** * Fields that make up a requirement for a skill */ private String name; private int level; private Skills[] required; private Name concat; /** * All the requirements from the cfg file loaded into a list */ public static List<Requirements> requirements = new ArrayList<Requirements>(); /** * Constructs a requirement * * @param name * the name of the equipment * @param level * the level * @param required * the skills to make a requirement for */ public Requirements(String name, int level, Name concat, Skills... required) { setName(name); setLevel(level); setRequired(required); setConcat(concat); } /** * Constructor that loads the item requirements * * @param i * nothing lol, just so we aren't using a no-args constuctor, put * any integer here, it won't change anything */ public Requirements(int i) { loadRequirements(); } /** * Checks a requirement */ public boolean check(int id) { /** * Get the name of the item id */ String itemName2 = player.getMethods().getItemName(id); String itemName = itemName2.replaceAll("_", " "); /** * Loop through all the requirements loaded on startup */ for (Requirements all : requirements) { /** * Gets the requirement according to what part of the name of the * item its checking */ switch (all.getConcat()) { /** * Starts with */ case STARTS_WITH: if (itemName.startsWith(all.getName())) { if (player.playerLevel[all.getRequired().getId()] < all .getLevel()) { player.sendMessage("You are not a high enough level to equip this item."); player.sendMessage("You need a " + all.getRequired().name().toLowerCase() + " level of " + all.getLevel() + "."); return false; } return true; } break; /** * Ends with */ case ENDS_WITH: if (itemName.endsWith(all.getName())) { if (player.playerLevel[all.getRequired().getId()] < all .getLevel()) { player.sendMessage("You are not a high enough level to equip this item."); player.sendMessage("You need a " + all.getRequired().name().toLowerCase() + " level of " + all.getLevel() + "."); return false; } return true; } break; /** * Equals */ case EQUALS: if (itemName.equals(all.getName())) { if (player.playerLevel[all.getRequired().getId()] < all .getLevel()) { player.sendMessage("You are not a high enough level to equip this item."); player.sendMessage("You need a " + all.getRequired().name().toLowerCase() + " level of " + all.getLevel() + "."); return false; } return true; } break; } } return true; } /** * Loads the requirements into the 'requirements' arraylist, this might soon * be replaced with a primitive array because its faster * * @return if it can load or not */ @SuppressWarnings({ "resource", "unused" }) public boolean loadRequirements() { String line = ""; String token = ""; String token2 = ""; String token2_2 = ""; String[] token3 = new String[10]; boolean EndOfFile = false; int ReadMode = 0; BufferedReader characterfile = null; try { characterfile = new BufferedReader(new FileReader( "./data/config/requirements.cfg")); } catch (FileNotFoundException fileex) { Misc.println("requirements.cfg: file not found."); return false; } try { line = characterfile.readLine(); } catch (IOException ioexception) { Misc.println("requirements.cfg: error loading file."); return false; } while ((EndOfFile == false) && (line != null)) { line = line.trim(); int spot = line.indexOf("="); if (spot > -1) { token = line.substring(0, spot); token = token.trim(); token2 = line.substring(spot + 1); token2 = token2.trim(); token2_2 = token2.replaceAll("\t\t", "\t"); token2_2 = token2_2.replaceAll("\t\t", "\t"); token2_2 = token2_2.replaceAll("\t\t", "\t"); token2_2 = token2_2.replaceAll("\t\t", "\t"); token2_2 = token2_2.replaceAll("\t\t", "\t"); token3 = token2_2.split("\t"); if (token.equals("requirement")) { String name = token3[0]; int level = Integer.parseInt(token3[1]); String concat = token3[2]; String required = token3[3]; Name concat2 = null; Skills required2 = null; for (Name all : Name.values()) { if (all.name().equals(concat)) { concat2 = all; } } for (Skills all : Skills.values()) { if (all.name().equals(required)) { required2 = all; } } requirements.add(new Requirements(name, level, concat2, required2)); } } else { if (line.equals("[ENDOFREQUIREMENTS]")) { try { characterfile.close(); } catch (IOException ioexception) { ioexception.printStackTrace(); } return true; } } try { line = characterfile.readLine(); } catch (IOException ioexception1) { ioexception1.printStackTrace(); EndOfFile = true; } } try { characterfile.close(); } catch (IOException ioexception) { ioexception.printStackTrace(); } return false; } /** * @return the name */ public String getName() { return name; } /** * @param name * the name to set */ public void setName(String name) { this.name = name; } /** * @return the level */ public int getLevel() { return level; } /** * @param level * the level to set */ public void setLevel(int level) { this.level = level; } /** * @return the required */ public Skills getRequired() { for (Skills all : required) { return all; } return null; } /** * @param required2 * the required to set */ public void setRequired(Skills[] required) { this.required = required; } /** * @return the concat */ public Name getConcat() { return concat; } /** * @param concat * the concat to set */ public void setConcat(Name concat) { this.concat = concat; } }[/code] [u][b]Wherever you equip items[/b][/u] [code]if(!getRequirements().check(wearId)) { return false; }[/code] [u][b]CFG File[/b][/u] [code]// name, level, concat, skill requirement = whip 70 ENDS_WITH ATTACK requirement = Steel 5 STARTS_WITH ATTACK requirement = Black 10 STARTS_WITH ATTACK requirement = White 10 STARTS_WITH ATTACK requirement = Mithril 20 STARTS_WITH ATTACK requirement = Adamant 30 STARTS_WITH ATTACK requirement = Rune 40 STARTS_WITH ATTACK requirement = Dragon 60 STARTS_WITH ATTACK requirement = Steel 5 STARTS_WITH DEFENCE requirement = Black 10 STARTS_WITH DEFENCE requirement = White 10 STARTS_WITH DEFENCE requirement = Mithril 20 STARTS_WITH DEFENCE requirement = Adamant 30 STARTS_WITH DEFENCE requirement = Rune 40 STARTS_WITH DEFENCE requirement = Dragon 60 STARTS_WITH DEFENCE [ENDOFREQUIREMENTS][/code] Just so you can get a feel of how to do this ^^ Enjoy
  9. Was wondering how u add skill requirements on item on item. [CODE]else if (itemUsed.getId() == 8947 && usedWith.getId() == 1511){ player.getInventory().deleteItem(1511, 1); player.getInventory().addItem(960, 1); player.getSkills().addXp(22, 10); } else if (itemUsed.getId() == 8947 && usedWith.getId() == 1521){ player.getInventory().deleteItem(1521, 1); player.getInventory().addItem(8778, 1); player.getSkills().getLevelForXp(22,15) player.getSkills().addXp(22, 20); } else if (itemUsed.getId() == 8947 && usedWith.getId() == 6333){ player.getInventory().deleteItem(6333, 1); player.getInventory().addItem(8780, 1); player.getSkills().getLevelForXp(22,30) player.getSkills().addXp(22, 30); } [/CODE] Was wondering how u will add skill rquirements to the coding above like u need 15 construction to make Planks and 25 to make oak planks.
  10. Okay, For example, If I try to wield a Dragon scimitar, or a Dragon Dagger It will say "you have to complete monkey madness, You a have to complete Lost city." How do i remove quest requirements? I'm using Delta. NVM! I got it :P
  11. Firstly, I would like to thank you for using your time to consider viewing my thread, assuming you are interested in helping code a previously successful PI source. I would also like to say I hosted this source, which has been edited a bit, and pulled around $125 USD in a month from it. [COLOR="#0000CD"]There are a few minimum requirements for helping me![/COLOR] You must be capable of working client and server sided, and with webclients. You must be willing to talk via Skype and make decision with me as to what would be best for the server. [COLOR="#B22222"]YOU MUST BE FRIENDLY[/COLOR] You must be willing to split donations with me and remember that our work is not specifically for donations, but for the advancement of the source and attempting to maintain a good status and player base. [COLOR="#0000CD"]This is all I ask, if you are willing to help me, then inbox me and we can Skype and I can show you what I've got so far and what I am wanting you to help me with. I will expect you to be somewhat active in the server (at least log in every once in a while) and help maintain an administrative cabinet on the server to handle the players for us. I only have one trustworthy, experienced person up to the task. Please be professional about this if you decide to help. [/COLOR] Many thanks, Kentuckianian
  12. guys I have a problem with item requirements. I know how to change it and all that (itemassistant.java) it's worked with many items e.g. vesta - [CODE]case 13889: case 13895: c.defenceLevelReq = 78;[/CODE] It doesn't seem to work with obby maul and arcane stream this is in my itemassistant.java for obby maul [CODE]case 6528: c.strengthLevelReq = 60; return;[/CODE] the maul doesn't have any requirements when I wield, could someone tell me what's wrong?
  13. I just finished importing vesta's deg and regular and I want to make reg vesta's have requirements but i want deg vesta's to be different. like reg vls have 78 attack requirement and have (Deg) vls have no attack level requirement. How can I do that? also, when I put 78 attack requirement on vesta's longsword, it also applied the requirements to vestas (Deg) armor? I don't know why. can anyone help me? I have msn. [email][email protected][/email]
  14. Hello, im the owner of Project Unforgiven, and were in need of a Head Mod, and Head Admin. You MUST have previous experience. You also MUST have a skype with a headset to be able to talk in the conversations verbally. Also for the Head Admin position you must have basic java coding capabilities! server is already up with a VPS hosted 24/7 and is doing quite well. Our current staff cant meet these requirements and are not ready for head postion. that is why im posting this. Please add my skype (xxpressyxx) if interested! before getting the position you will be interviewed by my co-owner and myself. Thanks! Good luck! Media [IMG]http://i54.tinypic.com/1h5gcy.jpg[/IMG] [IMG]http://i56.tinypic.com/2mqrrcj.jpg[/IMG] [IMG]http://i56.tinypic.com/25a4vtf.jpg[/IMG] [IMG]http://i55.tinypic.com/205zax5.jpg[/IMG] [IMG]http://i54.tinypic.com/2laswi8.jpg[/IMG] [IMG]http://i55.tinypic.com/i75qnb.jpg[/IMG] [IMG]http://i54.tinypic.com/2laswi8.jpg[/IMG] [IMG]http://i54.tinypic.com/1j14j8.jpg[/IMG] [IMG]http://i55.tinypic.com/29c9yc5.jpg[/IMG] [IMG]http://i55.tinypic.com/20jlfgm.jpg[/IMG] [IMG]http://i52.tinypic.com/hty5fp.jpg[/IMG] [IMG]http://i54.tinypic.com/k1rtyq.jpg[/IMG] [IMG]http://i53.tinypic.com/30sbwnr.jpg[/IMG] [IMG]http://i53.tinypic.com/mjmn0g.jpg[/IMG] [IMG]http://i51.tinypic.com/6ef120.jpg[/IMG] [IMG]http://i51.tinypic.com/1dh5k.jpg[/IMG] [IMG]http://i52.tinypic.com/15exw1u.jpg[/IMG] [IMG]http://i56.tinypic.com/mj22qh.jpg[/IMG] [IMG]http://i54.tinypic.com/16m1yyh.jpg[/IMG] [IMG]http://i51.tinypic.com/x29nd0.jpg[/IMG]
×