Jump to content

Search the Community

Showing results for tags 'mining'.



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

  1. I was searching for a way to learn how to make the trees and bronze, mith, etc cuttable/minable. However i've been unsuccessful so far. Is anyone able to point me in the right direction it would greatly be appreciated.
  2. [code] package armadyl.model.content.skills.mining; import armadyl.Config; public class MiningConfig { public enum Ores { Copper( new int[][] { { 31080, 31081 }, { 31082, 2090 }, { 2091, 9708 } }, 1, 436, 25 * Config.MINING_EXPERIENCE, "copper ore", 25, 29000), Tin( new int[][] { { 9714, 31078 }, { 2094, 2095 } }, 1, 438, 40 * Config.MINING_EXPERIENCE, "tin ore", 35, 29000), Iron( new int[][] { { 31071, 31072 }, { 31073, 2093 }, { 2092, 9717 } }, 10, 440, 55 * Config.MINING_EXPERIENCE, "iron ore", 45, 31000), Coal( new int[][] { { 31068, 31069 }, { 31070, 2096 }, { 2097, 14850 } }, 25, 453, 70 * Config.MINING_EXPERIENCE, "coal", 55, 33000), Gold( new int[][] { { 2099, 31066 }, { 9720, 2098 } }, 45, 444, 85 * Config.MINING_EXPERIENCE, "gold ore", 65, 35000), Mithril( new int[][] { { 31086, 31088 }, { 2103, 2102 } }, 35, 447, 40 * Config.MINING_EXPERIENCE, "mithril ore", 75, 37000), Adamantite( new int[][] { { 31083, 31085 }, { 2105, 2104 } }, 40, 449, 50 * Config.MINING_EXPERIENCE, "adamantite ore", 85, 39000), Runite( new int[][] { { 14859, 4860 }, { 2106, 2107 } }, 70, 451, 100 * Config.MINING_EXPERIENCE, "runite ore", 95, 41000); private int[][] objectId; private int requiredLevel, oreId, expGained, respawnTime, survivingChance; String oreName; Ores(int[][] objectId, int requiredLevel, int oreId, int expGained, String oreName, int respawnTime, int survivingChance) { this.objectId = objectId; this.requiredLevel = requiredLevel; this.oreId = oreId; this.expGained = expGained; this.oreName = oreName; this.respawnTime = respawnTime; this.survivingChance = survivingChance; } public int[][] getObjectId() { return objectId; } public int getRequiredLevel() { return requiredLevel; } public int getOreId() { return oreId; } public int getExpGained() { return expGained; } public String getOreName() { return oreName; } public int getRespawnTime() { return respawnTime; } public int getSurvivingChance() { return survivingChance; } public static Ores getOreConfig(int id) { for (Ores oreConfig : values()) { for (int[] oreId : oreConfig.getObjectId()) { if (oreId[0] == id) return oreConfig; } } return null; } } } [/code] [code] package armadyl.model.content.skills.mining; import armadyl.Server; import armadyl.event.Event; import armadyl.event.EventContainer; import armadyl.model.objects.ObjectList; import armadyl.world.Location; /** * The respawning time for the ores. * * @author Sakon */ public class OreRespawn implements Event { private Location location; private int oreId; private MiningConfig.Ores ores; public OreRespawn(MiningConfig.Ores ores, Location location, int oreId) { this.setOres(ores); this.location = location; this.oreId = oreId; } public void setOres(MiningConfig.Ores ores) { this.ores = ores; } [MENTION=15855]Over[/MENTION]ride public void execute(EventContainer container) { Server.objectHandler.createAnObject(oreId, location.getX(), location.getY(), location.getPlane()); ObjectList.remFromList(location); container.stop(); } public MiningConfig.Ores getOres() { return ores; } } [/code] [code] package armadyl.model.content.skills.mining; import java.util.Random; import armadyl.Server; import armadyl.event.EventManager; import armadyl.model.content.skills.Action; import armadyl.model.content.skills.Skills; import armadyl.model.objects.ObjectList; import armadyl.model.players.Client; import armadyl.util.Misc; import armadyl.world.Location; public class Mining extends Action { private Location location; private int oreId; private MiningConfig.Ores ores; private final int[] RANDOM_GEMS = { 1623, 1621, 1619, 1617, 1631 }; public Mining(MiningConfig.Ores ores, Location location, int oreId) { this.setOres(ores); this.location = location; this.setOreId(oreId); } public void setOres(MiningConfig.Ores ores) { this.ores = ores; } [MENTION=15855]Over[/MENTION]ride public boolean commence(Client player) { if (ObjectList.containsObject(location)) { return false; } if (player.isBusy()) return false; if (player.playerLevel[Skills.MINING] < ores.getRequiredLevel()) { player.sendMessage("You need a Mining Level of " + ores.getRequiredLevel() + " to mine this ore."); return false; } if (player.getItems().freeSlots() < 1) { player.sendMessage("Not enough space in your inventory."); return false; } if (!getPickRequirements(player)) { player.sendMessage("You need a Pickaxe to mine this ore."); player.sendMessage("You do not have a Pickaxe which you have the Mining level to use."); return false; } player.clearPlayersInterface(); player.setBusy(true); player.setSkilling(true); player.turnPlayerTo(location.getX(), location.getY()); player.startAnimation(getPickAnimation(player), 1); player.sendMessage("You swing your pick at the rock..."); player.startAnimation(getPickAnimation(player), 1); setActionDelay(player, 1); return true; } public int getPickBoost(Client player) { if (player.getItems().playerHasItem(1265) || player.playerEquipment[player.playerWeapon] == 1265) { return 1; } if (player.getItems().playerHasItem(1267) || player.playerEquipment[player.playerWeapon] == 1267) { return 2; } if (player.getItems().playerHasItem(1269) || player.playerEquipment[player.playerWeapon] == 1269) { return 3; } if (player.getItems().playerHasItem(1273) || player.playerEquipment[player.playerWeapon] == 1273) { return 4; } if (player.getItems().playerHasItem(1271) || player.playerEquipment[player.playerWeapon] == 1271) { return 5; } if (player.getItems().playerHasItem(1275) || player.playerEquipment[player.playerWeapon] == 1275) { return 6; } if (player.getItems().playerHasItem(15259) || player.playerEquipment[player.playerWeapon] == 15259) { return 10; } return 1; } private int getPickAnimation(Client player) { int[][] animation = { { 1265, 1, 625 }, { 1267, 1, 626 }, { 1269, 6, 627 }, { 1273, 21, 628 }, { 1271, 31, 629 }, { 1275, 41, 624 }, { 15259, 61, 12188 } }; for (int[] animIndex : animation) { if (player.playerLevel[Skills.MINING] >= animIndex[1]) { if (player.getItems().playerHasItem(animIndex[0]) || player.playerEquipment[player.playerWeapon] == animIndex[0]) { return animIndex[2]; } } } return -1; } private boolean getPickRequirements(Client player) { int[][] miningIndex = { { 1265, 1 }, { 1267, 1 }, { 1269, 6 }, { 1273, 21 }, { 1271, 31 }, { 1275, 41 }, { 15259, 61 } }; for (int[] mining : miningIndex) { if (player.getItems().playerHasItem(mining[0]) || player.playerEquipment[player.playerWeapon] == mining[0]) { if (player.playerLevel[Skills.MINING] >= mining[1]) { return true; } else { return false; } } } return false; } public boolean removeOre(int survivingChance) { int random = Misc.random(100); if (survivingChance >= random) { return true; } else { return false; } } [MENTION=15855]Over[/MENTION]ride public boolean process(Client player) { if (!player.isSkilling()) player.getActionManager().stopEarly(); if (player.getItems().freeSlots() < 1) { player.sendMessage("Not enough space in your inventory."); player.getActionManager().stopEarly(); } if (ObjectList.containsObject(location)) { player.getActionManager().stopEarly(); } player.startAnimation(getPickAnimation(player), 1); return true; } [MENTION=15855]Over[/MENTION]ride public int processWithDelay(Client player) { Random random = new Random(); double odds = random.nextDouble() * 100; double baseChance = Math.pow(10d - ores.getRequiredLevel() / 10d, 2d) / 2d; double chance = (baseChance + ((player.playerLevel[Skills.MINING] - ores.getRequiredLevel()) / 2d) + (getPickBoost(player) / 10d)) + random.nextInt((int) baseChance / 3); if (chance < odds) return 3; double totalXp = ores.getExpGained(); player.getItems().addItem(ores.getOreId(), 1); player.sendMessage("You get some " + ores.getOreName() + "."); if (Misc.random(25) == 10) { player.getItems().addItem( RANDOM_GEMS[(int) (RANDOM_GEMS.length * Math.random())], 1); } player.getPA().addSkillXP((int) totalXp, Skills.MINING); if (removeOre(ores.getSurvivingChance())) { return -1; } else { return 1; } } [MENTION=15855]Over[/MENTION]ride public void finish(Client player) { for (int q = 0; q < ores.getObjectId().length; q++) { if (ores.getObjectId()[q][0] == oreId) { Server.objectHandler.createAnObject(ores.getObjectId()[q][1], location.getX(), location.getY(), location.getPlane()); } } ObjectList.addToList(location, oreId); EventManager.getSingleton().addEvent( new OreRespawn(ores, location, oreId), ores.getRespawnTime()); player.setBusy(false); player.startAnimation(-1); } public int getOreId() { return oreId; } public void setOreId(int oreId) { this.oreId = oreId; } } [/code] to set the action; [code] if (MiningConfig.Ores.getOreConfig(id) != null) { player.getActionManager() .setAction( new Mining(MiningConfig.Ores.getOreConfig(id), location, id)); return; } [/code]
  3. So, Im using the rune evo v3 source and when you go into quest tab it shows skilling>basic skilling>Mining and im trying to change the mining teleport to somewhere else by changing the coords. I changed it and compiled but I still teleport to the same place? I edited skillingteleports.java and heres the code. I changed the coords to 3300 3300 but it wont change! public void run(int interfaceId, int componentId) { if (stage == 1) { if (componentId == OPTION_1) { sendOptionsDialogue("Basic Skilling", "Fishing", "Mining", "Agility", "Woodcutting", "More Options"); stage = 2; } if (componentId == OPTION_2) { sendOptionsDialogue("Advanced Skilling", "Mining: Lava Flow Mining", "Hunter: Puro-Puro", "Fishing: Living Rock Caverns", "Slayer: Fremmy Dungeon", "More Options"); stage = 3; } if (componentId == OPTION_3) { end(); } } else if (stage == 2) { if (componentId == OPTION_1) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2599, 3421, 0)); end(); } if (componentId == OPTION_2) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3300, 3300, 0)); end(); } if (componentId == OPTION_3) { sendOptionsDialogue("Which Course?", "Gnome Agility", "Barbarian Outpost", "Go Back..."); stage = 7; } if (componentId == OPTION_4) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3250, 3359, 0)); end(); } if (componentId == OPTION_5) { sendOptionsDialogue("Basic Skilling", "Runecrafting", "Summoning", "Hunter", "Farming", "Dungeoneering"); stage = 4; } } else if (stage == 3) { if (componentId == OPTION_1) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(LavaMine.Lava_Tele)); end(); } if (componentId == OPTION_2) { if (!player.getInventory().hasFreeSlots()) { end(); player.sendMessage("You need atleast 1 free slot to start Puro-Puro."); return; } end(); player.getControlerManager().startControler("PuroPuro"); } if (componentId == OPTION_3) { if (player.getSkills().getLevel(Skills.FISHING) < 90) { end(); player.sendMessage("<col=FF0000>You must be atleast 90 Fishing to go to LRC.</col>"); return; } player.getPackets().sendGameMessage("Talk to Hank for some fishing supplies!"); Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3640, 5138, 0)); end(); } if (componentId == OPTION_4) { if (player.getRights() == 0) { end(); player.sendMessage("You must be donator to access the new slayer dungeon!"); return; } player.getControlerManager().startControler("SlayerControler"); end(); } if (componentId == OPTION_5) { sendOptionsDialogue("Advanced Skilling", "Smithing: Artisan's Workshop", "RuneCrafting: RuneSpan", "Slayer: Kuradel's Slayer Tower", "Farming: Livid Farming"); stage = 5; } } else if (stage == 4) { if (componentId == OPTION_1) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2600, 3162, 0)); end(); } if (componentId == OPTION_2) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2209, 5343, 0)); end(); } if (componentId == OPTION_3) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2526, 2916, 0)); end(); } if (componentId == OPTION_4) { player.getPackets().sendGameMessage("<col=FF0000>This has been replaced by Livid Farming. (See Advanced Skilling list)"); end(); } if (componentId == OPTION_5) { sendOptionsDialogue("Which Dungeon?", "Low Level", "Medium Level", "High Level", "[<col=FF0000>New</col>] Daemonheim"); stage = 6; } } else if (stage == 5) { if (componentId == OPTION_1) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3047, 3336, 0)); end(); } if (componentId == OPTION_2) { player.getPackets().sendGameMessage("Buy essence from the wizard to begin!"); Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3992, 6108, 1)); end(); } if (componentId == OPTION_3) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3428, 3539, 0)); end(); } if (componentId == OPTION_4) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3238, 3350, 0)); end(); } } else if (stage == 6) { if (componentId == OPTION_1) { player.getControlerManager().startControler("Dungeoneering", 0); end(); } if (componentId == OPTION_2) { if (!player.getSkills().hasRequiriments(Skills.DUNGEONEERING, 60)) { player.sendMessage("You need atleast 60 Dungeoneering to enter Mid Level Dung."); return; } player.getControlerManager().startControler("Dungeoneering", 1); end(); } if (componentId == OPTION_3) { if (!player.getSkills().hasRequiriments(Skills.DUNGEONEERING, 99)) { end(); player.sendMessage("You need atleast 99 Dungeoneering to enter High Level Dung."); return; } player.getControlerManager().startControler("Dungeoneering", 2); end(); } if (componentId == OPTION_4) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3451, 3712, 0)); end(); } } else if (stage == 7) { if (componentId == OPTION_1) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2470, 3436, 0)); end(); } if (componentId == OPTION_2) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2541, 3548, 0)); end(); } if (componentId == OPTION_3) { sendOptionsDialogue("Basic Skilling", "Fishing", "Mining", "Agility", "Woodcutting", "More Options"); stage = 2; } } } [MENTION=15855]Over[/MENTION]ride public void finish() { // TODO Auto-generated method stub } }
  4. how do u make it so when u mine a ore like rune u dont have to wait for it to respawn and can keep mining it? (317) ive used google.
  5. basse747

    Mining Question

    Hey, i got a blank source and client, i added some rocks on bobs island, is there someway to make it mine like wood cutting, so non stop? i've seen alot of servers have it but i do not know how to do it, so yea, i need help with that, And i've googled it, looked on forums but i can't really find it :/ Thanks in advance
  6. Hey, So I've been trying to code some unique mining. What I [u][b]want[/b][/u] to happen: -I want the mining to be: when you click a rock, you go through a full mining animation, then receive an ore, and stop mining. You click the rock again, you receive another ore after the full animation, and repeat. I don't want the ore to run out at all, so you can continuously click the rock, do the mining animation, and receive an ore. This is my code in mining.java : [code] Copper_Ore(1, 10, 436, 10, 10, 14906, 0, 1), Tin_Ore(1, 10, 438, 10, 10, 14902, 0, 1), Iron_Ore(15, 15, 440, 10, 10, 14856, 0, 1), Coal_Ore(30, 25, 453, 10, 10, 14850, 0, 1), Gold_Ore(40, 32, 444, 10, 10, 2098, 0, 1), Mithril_Ore(55, 40, 447, 10, 10, 14853, 0, 1), Adamant_Ore(70, 45, 449, 10, 10, 14862, 0, 1), Runite_Ore(85, 50, 451, 10, 10, 14859, 0, 1);[/code] When I mine one of the rocks, it entirely disappears after I receive an ore, and doesn't come back. It also does not take the full mining animation to receive an ore, the timer is completely random. Also, I can only mine the rocks when I'm west of the rock, south of the rock, and north of the rock. Why not east?
  7. So recently I've been trying to add my own type of Mining, and this is the section of my Mining I've been editing: [CODE] Copper_Ore(1, 10, 436, 10, 10, 14906, 0, 1), Tin_Ore(1, 10, 438, 10, 10, 14902, 0, 1), Iron_Ore(15, 15, 440, 10, 10, 14856, 0, 1), Coal_Ore(30, 25, 453, 10, 10, 14850, 0, 1), Gold_Ore(40, 32, 444, 10, 10, 2098, 40, 0, 1), Mithril_Ore(55, 40, 447, 10, 10, 14853, 0, 1), Adamant_Ore(70, 45, 449, 10, 10, 14862, 0, 1), Runite_Ore(85, 50, 451, 10, 10, 14859, 0, 1);[/CODE] When I try to compile this, I get an error: [CODE]src\com\rs\game\player\actions\Mining.java:22: error: constructor RockDefinition s in enum RockDefinitions cannot be applied to given types; Gold_Ore(40, 32, 444, 10, 10, 2098, 40, 0, 1), ^ required: int,double,int,int,int,int,int,int found: int,int,int,int,int,int,int,int,int reason: actual and formal argument lists differ in length[/CODE] Anyone know why the gold rocks are giving an error, but the rest are fine? Thanks.
  8. Hey, So currently on my RSPS, when I mine a rock, it mines a full inventory before stopping. I want to change this, so you only get one ore per time you click the rock, and I also want it to get an ore after the full mining animation, and only that set time. What I mean is, I don't want the ores to take 2-3 animations sometimes, or under 1 animation. If you can help, thanks a bunch.
  9. Hello, I don't like that skills never are fully coded in the way of using all items for example mining, full mining is called 100% mining when u can't mine ore like blurite elemental In DELTA I always coded all the rocks except silver since DELTA just doesn't want to let u mine silver :p I only recently went to PI, and cuz I'm used to it I didn't add silver here also ^^ makes it 99% Misleading title :D Here's the code for full mining, I added lime, blurite elemental and rune essence [code]//start of mining case 2109: //essence c.mining[0] = 1436; c.mining[1] = 1; c.mining[2] = 9; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2090://copper case 2091: c.mining[0] = 436; c.mining[1] = 1; c.mining[2] = 12; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2094://tin c.mining[0] = 438; c.mining[1] = 1; c.mining[2] = 12; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 145856: case 2092: case 2093: //iron c.mining[0] = 440; c.mining[1] = 15; c.mining[2] = 24; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 4029: case 4030: case 4028: //lime c.mining[0] = 3211; c.mining[1] = 22; c.mining[2] = 29; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 14850: case 14851: case 14852: case 2096: case 2097: //coal c.mining[0] = 453; c.mining[1] = 30; c.mining[2] = 48; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2098: case 2099: //gold c.mining[0] = 444; c.mining[1] = 40; c.mining[2] = 71; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2102: case 2103: case 14853: case 14854: case 14855: //mith ore c.mining[0] = 447; c.mining[1] = 55; c.mining[2] = 96; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2105: case 14862: //addy ore c.mining[0] = 449; c.mining[1] = 65; c.mining[2] = 125; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2106: case 2107: case 14859: case 14860: //rune ore c.mining[0] = 451; c.mining[1] = 75; c.mining[2] = 190; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2110: //blurite c.mining[0] = 668; c.mining[1] = 86; c.mining[2] = 320; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 3403: //elemental c.mining[0] = 2892; c.mining[1] = 93; c.mining[2] = 700; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; //end of mining [/code] [B]For the noobs:[/B] The cases are the ID's for the rocks u have to spawn in objectmanager. To add the new rocks to your mining area. c.mining[0] stands for the ore u obtain when mining the rock c.mining[1] stands for the required level to mine c.mining[2] stands for the experience u gain after mining an ore note: Don't forget that the xp is multiplied with the experience given to mining in your config.java [COLOR="#FF0000"][B]To add this code:[/B][/COLOR] Go to actionhandler.java and search for [code]case 2090:[/code] u will see that this is mining! Awesome now next Delete everything from mining and replace it by my code above. Save, compile and done! :D
  10. The purpose of this, is to fix these two items, and make them to where the head is not glitched. (NOTE: Replace them with whatever you have these things named in item.cfg) EX: If in your item.cfg, you have it named "ganodermic hat" Then put that instead of visor. Open up item.java, and search for: [code] public static boolean playerHats(int itemId) { [/code] Next to the last [code] " [/code] Put this [code] ,"Golden Mining Helmet", "Ganodermic Visor" [/code] Then search for this, and do the same thing [code] private static String[] fullhat = { [/code] Now, last but not least, search for [code] private static String[] fullmask = { [/code] And do the same thing. Save, and compile, and you're done. The two things that it fixes: Ganodermic visor. [url]http://www.runelocus.com/forums/showthread.php?76445-REL-Golden-Mining-Armor-REL&p=653636&styleid=20#post653636[/url]
  11. Hey everyone, I am currently using Author Null++ Mining and Woodcutting Base I am having problems with the animation.... Like what happened is when I click to mine a rock or cut a tree An animation stop and you have to wait a while until the logs or ore is added into the inventory... I am sure it is an animation error and is there a way to fix it?
  12. hey, i added this new base to me mining.java and when i compile i get this error's [code] package server.model.players.skills; import server.model.players.*; import server.Config; import server.util.Misc; public class Mining { Client c; private final int VALID_PICK[] = {1265,1267,1269,1273,1271,1275}; private final int[] PICK_REQS = {1,1,6,6,21,31,41,61}; private final int[] RANDOM_GEMS = {1623,1621,1619,1617,1631}; private int oreType; private int exp; private int EMOTE; public Mining(Client c) { this.c = c; } public void startMining(int oreType, int levelReq, int exp) { if (c.isBanking() || c.isShopping() || c.isTrading()) return; c.turnPlayerTo(c.objectX, c.objectY); if (goodPick() > 0) { if (c.playerLevel[c.playerMining] >= levelReq) { this.oreType = oreType; this.exp = exp; goodPick(); c.sendMessage("You swing your pick at the rock."); c.miningTimer = getMiningTimer(oreType); c.startAnimation(EMOTE); } else { resetMining(); c.sendMessage("You need a mining level of " + levelReq + " to mine this rock."); c.startAnimation(65535); } } else { resetMining(); c.sendMessage("You need a pickaxe to mine this rock."); c.startAnimation(65535); c.getPA().resetVariables(); } if(c.playerEquipment[c.playerWeapon] == 1265){ EMOTE = 6747; }else if(c.playerEquipment[c.playerWeapon] == 1267){ EMOTE = 6748; }else if(c.playerEquipment[c.playerWeapon] == 1269){ EMOTE = 6749; }else if(c.playerEquipment[c.playerWeapon] == 1273){ EMOTE = 6751; }else if(c.playerEquipment[c.playerWeapon] == 1271){ EMOTE = 6750; }else if(c.playerEquipment[c.playerWeapon] == 1275) EMOTE = 6746; } public void mineOre() { if (c.getItems().addItem(oreType,1)) { c.startAnimation(EMOTE); c.sendMessage("You manage to mine some ore."); c.getPA().addSkillXP(exp * Config.MINING_EXPERIENCE, c.playerMining); c.getPA().refreshSkill(c.playerMining); c.miningTimer = getMiningTimer(oreType); if (Misc.random(25) == 10) { c.getItems().addItem(RANDOM_GEMS[(int)(RANDOM_GEMS.length * Math.random())], 1); c.sendMessage("You find a gem!"); } } else { c.getPA().resetVariables(); c.startAnimation(65535); } } public void resetMining() { this.oreType = -1; this.exp = -1; } public int goodPick() { for (int j = VALID_PICK.length - 1; j >= 0; j--) { if (c.playerEquipment[c.playerWeapon] == VALID_PICK[j]) { if (c.playerLevel[c.playerMining] >= PICK_REQS[j]) return VALID_PICK[j]; } } for (int i = 0; i < c.playerItems.length; i++) { for (int j = VALID_PICK.length - 1; j >= 0; j--) { if (c.playerItems[i] == VALID_PICK[j] + 1) { if (c.playerLevel[c.playerMining] >= PICK_REQS[j]) return VALID_PICK[j]; } } } return - 1; } public int getMiningTimer(int ore) { int time = Misc.random(10); if (ore == 451) { time += 4; } return time; } } [/code] [IMG]http://i50.tinypic.com/wit2l3.png[/IMG]
  13. joeri

    [pi] 317 mining

    hey guy's when i mining a rock it starts mining the rock but the animation stop but its still mining but you cant see it here's my mining base [code] package server.model.players.skills; import server.model.players.*; import server.Config; import server.util.Misc; import java.util.Random; import server.event.*; import server.model.objects.Object; import server.Server; /** * @Author Null++ */ public class Mining { private Client c; public final int[][] Pick_Settings = { {1265, 1, 1, 6753}, //Bronze {1267, 1, 2, 6754}, //Iron {1269, 6, 3, 6755}, //Steel {1271, 31, 5, 6756}, //Addy {1273, 21, 4, 6757}, //Mithril {1275, 41, 6, 6752}, //Rune {15259, 61, 7, 12188}, //Dragon {13661, 41, 7, 10222} //Adze }; public int[] gemId = { 228,1437, 1623,1621, 1623,1619, 1617,1631}; Random random = new Random(); public int[][] Rock_Settings = { {2091, 1, 630, 3, 436}, //Copper {2095, 1, 630, 3, 438}, //Tin {2093, 15, 1225, 7, 440}, //Iron {2097, 30, 1750, 38, 453}, //Coal {2103, 55, 2800, 155, 447}, //Mithril {2105, 70, 3325, 315, 449}, //Addy {2107, 85, 5115, 970, 451}, //Rune {2090, 1, 630, 3, 436}, //Copper {2094, 1, 630, 3, 438}, //Tin {2092, 15, 1225, 7, 440}, //Iron {2096, 30, 1750, 38, 453}, //Coal {2102, 55, 2800, 155, 447}, //Mithril {2104, 70, 3325, 315, 449}, //Addy {2106, 85, 4375, 970, 451}, //Rune {2100, 20, 1400, 78, 442}, //Silver {2101, 20, 1400, 78, 442}, //Silver {2098, 40, 2275, 78, 444}, //Gold {2099, 40, 2275, 78, 444}, //Gold {2111, 15, 1225, 7, 18338} //Gem }; public Mining(Client c) { this.c = c; } int a = -1; public void startMining(final int j, final int x, final int y, final int type) { if (c.isMining) return; if (c.mining) return; int miningLevel = c.playerLevel[c.playerMining] ; a = -1; c.turnPlayerTo(x, y); if (Rock_Settings[j][1] > miningLevel) { c.sendMessage("You need a Mining level of " + Rock_Settings[j][1] + " to mine this rock."); return; } for (int i = 0; i < Pick_Settings.length; i++) { if (c.getItems().playerHasItem(Pick_Settings[i][0]) || c.playerEquipment[c.playerWeapon] == Pick_Settings[i][0]) { if (Pick_Settings[i][1] <= miningLevel) { a = i; } } } if (a == -1) { c.sendMessage("You need a pickaxe to mine this rock."); return; } if (c.getItems().freeSlots() < 1) { c.sendMessage("You do not have enough inventory slots to do that."); return; } c.startAnimation(Pick_Settings[a][3]); c.isMining = true; c.rockX = x; c.rockY = y; c.mining = true; CycleEventHandler.getSingleton().addEvent(c, new CycleEvent() { @Override public void execute(CycleEventContainer container) { if (!c.isMining) { container.stop(); c.startAnimation(65535); return; } if (c.isMining) { c.getItems().addItem(Rock_Settings[j][4], 1); c.getPA().addSkillXP(Rock_Settings[j][2], c.playerMining); } if (c.getItems().freeSlots() < 1) { c.sendMessage("You have ran out of inventory slots."); container.stop(); } mineRock(Rock_Settings[j][3], x, y, type, Rock_Settings[j][0]); c.isMining = false; container.stop(); } @Override public void stop() { c.getPA().closeAllWindows(); c.startAnimation(65535); c.isMining = false; c.rockX = 0; c.rockY = 0; c.mining = false; return; } }, getTimer(j, a, miningLevel)); } public int getTimer(int b, int c, int level) { double timer = (int)((Rock_Settings[b][1] * 2) + 20 + Misc.random(20))-((Pick_Settings[c][2] * (Pick_Settings[c][2] * 0.75)) + level); if (timer < 2.0) { return 2; } else { return (int)timer; } } public void mineRock(int respawnTime, int x, int y, int type, int i) { new Object(452, x, y, 0, type, 10, i, respawnTime); for (int t = 0; t < Server.playerHandler.players.length; t++) { if (Server.playerHandler.players[t] != null) { if (Server.playerHandler.players[t].rockX == x && Server.playerHandler.players[t].rockY == y) { Server.playerHandler.players[t].isMining = false; Server.playerHandler.players[t].startAnimation(65535); Server.playerHandler.players[t].rockX = 0; Server.playerHandler.players[t].rockY = 0; } } } } } [/code]
  14. This is just Mining I made today for RuneEscape. You can add it anywhere you want to. You'd just have to change the placing of the package. This doesn't really need an explanation, since it pretty much explains itself. The first file is what you do with the skill. The second file is the definitions. [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.rs.game.player.actions.mining; import com.rs.cache.loaders.ItemDefinitions; import com.rs.game.Animation; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.player.Player; import com.rs.game.player.actions.Action; import com.rs.utils.Utils; /** * * @author Halo` <RuneUnited> */ public class Mining extends Action { private static int Armour[] = { 20787, 20788, 20789, 20790, 20791, 20792 }; private static int Weapons[] = { 1265, 1267, 1269, 1271, 1273, 1275 }; private int emoteId; private int pickaxeTime; private WorldObject rock; private static MiningDefs detail; public Mining(MiningDefs detail, WorldObject rock) { this.detail = detail; this.rock = rock; } private static int Armour() { return Armour[(int) (Math.random() * Armour.length)]; } public boolean hasPickAxe(Player player) { int weaponId = player.getEquipment().getWeaponId(); if (player.getInventory().containsOneItem(Weapons)) return true; if (weaponId != -1) return false; switch(weaponId) { case 1267: case 1269: case 1271: case 1273: case 1265: case 1275: return true; default: return false; } } private boolean checkRock(Player player) { return World.getRegion(rock.getRegionId()).containsObject(rock.getId(), rock); } public int getMiningDelay(Player player) { int mineTimer = detail.getBaseTime() - player.getSkills().getLevel(14) - Utils.getRandom(pickaxeTime); if (mineTimer < 1 + detail.getRandomTime()) mineTimer = 1 + Utils.getRandom(detail.getRandomTime()); return mineTimer; } private void addOre(Player player) { double xpBoost = 1.0; if(player.getEquipment().equals(Armour)) xpBoost += 2.5; if(player.getEquipment().getChestId() == 20791) xpBoost += 0.8; if(player.getEquipment().getLegsId() == 20790) xpBoost += 0.6; if(player.getEquipment().getHatId() == 20792 || player.getEquipment().getHatId() == 20789) xpBoost += 0.4; if(player.getEquipment().getBootsId() == 20788) xpBoost += 0.2; if(player.getEquipment().getGlovesId() == 20787) xpBoost += 0.2; player.getSkills().addXp(14, detail.getXp() * xpBoost); player.getInventory().addItem(detail.getItemId(), 1); String oreName = ItemDefinitions.getItemDefinitions(detail.getItemId()).getName().toLowerCase(); player.sm("You successfully mine some " + oreName + "."); //todo infernal adze } private boolean setPickaxe(Player player) { int level = player.getSkills().getLevel(14); int weaponId = player.getEquipment().getWeaponId(); if (weaponId != -1) switch (weaponId) { default: break; case 15259: if (level >= 61) { emoteId = 12190; pickaxeTime = 13; return true; } break; case 1275: if (level >= 41) { emoteId = 624; pickaxeTime = 10; return true; } break; case 1271: if (level >= 31) { emoteId = 628; pickaxeTime = 7; return true; } break; case 1273: if (level >= 21) { emoteId = 629; pickaxeTime = 5; return true; } break; case 1269: if (level >= 6) { emoteId = 627; pickaxeTime = 3; return true; } break; case 1267: emoteId = 626; pickaxeTime = 2; return true; case 1265: emoteId = 625; pickaxeTime = 1; return true; case 13661: if (level >= 61) { emoteId = 10222; pickaxeTime = 13; return true; } break; } if (player.getInventory().containsOneItem(new int[] { 15259 }) && level >= 61) { emoteId = 12190; pickaxeTime = 13; return true; } if (player.getInventory().containsOneItem(new int[] { 1275 }) && level >= 41) { emoteId = 624; pickaxeTime = 10; return true; } if (player.getInventory().containsOneItem(new int[] { 1271 }) && level >= 31) { emoteId = 628; pickaxeTime = 7; return true; } if (player.getInventory().containsOneItem(new int[] { 1273 }) && level >= 21) { emoteId = 629; pickaxeTime = 5; return true; } if (player.getInventory().containsOneItem(new int[] { 1269 }) && level >= 6) { emoteId = 627; pickaxeTime = 3; return true; } if (player.getInventory().containsOneItem(new int[] { 1267 })) { emoteId = 626; pickaxeTime = 2; return true; } if (player.getInventory().containsOneItem(new int[] { 1265 })) { emoteId = 625; pickaxeTime = 1; return true; } if (player.getInventory().containsOneItem(new int[] { 13661 }) && level >= 61) { emoteId = 10222; pickaxeTime = 13; return true; } else { return false; } } @Override public boolean start(Player player) { if (!checkAll(player)) { return false; } else { player.getPackets().sendGameMessage( "You swing your pickaxe at the rock."); setSkillDelay(player, getMiningDelay(player)); return true; } } @Override public boolean checkAll(Player player) { if (!hasPickAxe(player)) { player.sm("You need a pickaxe to mine this ore."); return false; } if(!setPickaxe(player)) { player.sm("You don't have the required level to use this pick-axe."); return false; } if (!hasLevel(player)) { return false; } if (!player.getInventory().hasFreeSlots()) { player.sm("You don't have enough space in your inventory."); return false; } return true; } @Override public boolean hasLevel(Player player) { if (detail.getLevel() > player.getSkills().getLevel(14)) { player.sm("You require a Mining Level of "+detail.getLevel()+" to mine here."); return false; } return true; } @Override public boolean process(Player player) { player.setNextAnimation(new Animation(emoteId)); return checkRock(player); } @Override public int processWithDelay(Player player) { addOre(player); if (Utils.getRandom(detail.getRandomLife()) == 0) { World.spawnTemporaryObject( new WorldObject(detail.getEmptyId(), rock.getType(), rock.getRotation(), rock.getX(), rock.getY(), rock .getPlane()), detail.getRespawnDelay() * 600); player.setNextAnimation(new Animation(-1)); return -1; } if (!player.getInventory().hasFreeSlots()) { player.setNextAnimation(new Animation(-1)); player.getPackets().sendGameMessage( "Not enough space in your inventory."); return -1; } else { return getMiningDelay(player); } } @Override public void stop(Player player) { setSkillDelay(player, 3); } } [/CODE] That's the first file I used. The second belongs under a different name. [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.rs.game.player.actions.mining; /** * * @author Halo` <RuneUnited> */ public enum MiningDefs //Still more Rock Definitions to be added. I was just too lazy to add them all. :P { COPPER_ORE("Copper Ore", 1, 1.5, 10, 4, 4, 11552, 436, 0), TIN_ORE("Tin Ore", 1, 2.5, 10, 4, 4, 11552, 438, 0), IRON_ORE("Iron Ore", 15, 7.7, 15, 12, 12, 11552, 440, 3), RUNITE_ORE("Runite Ore", 85, 50.6, 150, 30, 360, 11552, 451, 0); private String name; private int level; private double xp; private int baseTime; private int randomTime; private int emptyId; private int respawnDelay; private int itemId; private int randomLifeTime; private MiningDefs(String name, int level, double xp, int baseTime, int randomTime, int respawnDelay, int emptyId, int itemId, int randomLifeTime) { this.name = name; this.level = level; this.xp = xp; this.baseTime = baseTime; this.randomTime = randomTime; this.emptyId = emptyId; this.respawnDelay = respawnDelay; this.itemId = itemId; this.randomLifeTime = randomLifeTime; } public int getLevel() { return level; } public double getXp() { return xp; } public int getBaseTime() { return baseTime; } public int getEmptyId() { return emptyId; } public int getItemId() { return itemId; } public int getRandomTime() { return randomTime; } public int getRespawnDelay() { return respawnDelay; } public int getRandomLife() { return randomLifeTime; } } [/CODE]
  15. jakesnake

    pi mining error..

    um there is a error in mining skill ... u can only swing ur pickaxe once at the ore and u only get 1 ore .. u need to keep on clickin the ore ur swinging on to collect more can anyone help me??
  16. hey dudes, so whenever u click rocks on my server it doesn't do anything.. if anyone knows how to fix that. and also i have a teleport to the air altar, but theres nothing there. i can use a ::object command but noone else can see it. help please???
  17. Well some of my skills like Mining and Woodcutting are really bugged. Well i click on a rock.... "nothing intressting happend" and its showing methe object id.... nothing more.... Same on Woodcutting.. Any pics needed? Thank you
  18. [SIZE=1] *Disclaimer I am the soul owner and creator of this guide and any guide I post unless stated otherwise, I had No help In making this guide.[/SIZE] [SIZE=1]I do not own RuneScape nor want to own it, the game can be found here [URL="http://www.runescape.com/"]www.RuneScape.com[/URL][/SIZE] [CENTER][SIZE=7][COLOR=red][B]Ambient's Members Guide to[/B][/COLOR] Low to High leveled Mining Training [/SIZE][/CENTER] [SIZE=3][COLOR=red] Ambient's Mining Guide n/a p\h min. [/COLOR] Requirements: High Enough mining level, Completed 'The Grand Tree' (link to guide below) F2P/P2P: P2P Rocks: East-Side - 7 Coal, 2 Mithril, 3 Adamantite, 4 Gold, 1 Iron & 4 Clay North-Side - 4 Silver, 5 Clay West-Side - 2 Mithril & 7 Iron Location: Down the hatch in the Grand Tree (Near King Narnode Shareen), through the roots towards the North XP p/h: ??? Recommended Mining Lv: 15 to Powermine Iron ore Inventory: BoB (Beast of Burden) if Banking, Pickaxe, weight reducing clothing [U]Map of the Mine: [IMG]http://images.wikia.com/runescape/images/c/c4/Grand_Tree_Mine_map.png[/IMG] [/U] [U]East-Side Mine[/U] [IMG]http://i723.photobucket.com/albums/ww237/Zezamu6/Mine1.png[/IMG] [U]North-Side Mine - Obelisk [IMG]http://i723.photobucket.com/albums/ww237/Zezamu6/Obelisk.png[/IMG] West-Side Mine [IMG]http://i723.photobucket.com/albums/ww237/Zezamu6/Mine2.png[/IMG] [/U] Grand Tree quest guide via The RuneScape Wikia [url=http://runescape.wikia.com/wiki/The_Grand_Tree]The Grand Tree - The RuneScape Wiki - Skills, quests, guides, items, monsters, and more[/url] [/SIZE]
  19. If u keep clicking the ore u get soo many exp someone knows how to fix it ?
  20. Ok so this is my coding for mining and after i get one rock, it will stop mining and i hav to click to go again. If someone can help me out that would be awesome. If someone needs to see more info of anything just met me know. Ty. /* * * MINING * */ case 2491: // rune essence mining[0] = 1; mining[1] = 1; mining[2] = 2000; mining[4] = 1436; break; case 2108: case 2109: startEssMine(2109); break; case 2090: case 2091: // copper rock pEmote = 0x554; mining[0] = 1; mining[1] = 1; if (misc.random(2) == 1) { mining[2] = 3000; } else { mining[2] = 3000; } mining[4] = 436; break; case 2094: case 2095: // tin rock pEmote = 0x554; mining[0] = 1; mining[1] = 1; if (misc.random(2) == 1) { mining[2] = 3000; } else { mining[2] = 3000; } mining[4] = 438; break; case 2110: // blurite rock pEmote = 0x554; mining[0] = 2; mining[1] = 10; if (misc.random(2) == 1) { mining[2] = 3000; } else { mining[2] = 3000; } mining[4] = 668; break; case 4028: case 4029: case 4030: // lime rock pEmote = 0x554; mining[0] = 1; mining[1] = 1; if (misc.random(2) == 1) { mining[2] = 2000; } else { mining[2] = 2000; } mining[4] = 3211; break; case 2092: case 2093: // iron rock pEmote = 0x554; mining[0] = 2; mining[1] = 15; mining[2] = 5000; mining[4] = 440; break; case 2100: case 2101: case 11187: if(action == 1){ // silver rock pEmote = 0x554; mining[0] = 4; mining[1] = 1; mining[2] = 3000; mining[4] = 442; } break; case 3403: // elemental rock pEmote = 0x554; mining[0] = 4; mining[1] = 20; mining[2] = 500; mining[4] = 1436; break; case 2096: case 2097: // coal rock pEmote = 0x554; mining[0] = 5; mining[1] = 30; mining[2] = 5500; mining[4] = 453; break; case 2098: case 2099: // gold rock pEmote = 0x554; mining[0] = 6; mining[1] = 40; mining[2] = 650; break; /* * GEM ROCK case : case : //gem rock mining[0] = 6; mining[1] = 40; * mining[2] = 65; mining[4] = Item.randomSGems(); break; */ case 2102: case 2103: // mithril rock pEmote = 0x554; mining[0] = 10; mining[1] = 55; mining[2] = 6000; mining[4] = 447; break; case 2104: case 2105: // adamant rock pEmote = 0x554; mining[0] = 15; mining[1] = 70; mining[2] = 7000; mining[4] = 449; break; case 2106: case 2107: case 14859: case 14860: // rune rock pEmote = 0x554; mining[0] = 32; mining[1] = 85; mining[2] = 10000; mining[4] = 451; break; default: GoFalse = true; break; } if (GoFalse == true) { return false; } return true; }
  21. Here is mining, woorductting and thieving Woodcutting: Paste this in ObjectOption1.java (just a base / u can change money and exp) //Start of woodcutting case 1277: case 1278: // Normal trees Engine.playerItems.hasPlayerItemAmount(p, 1351, 1); p.appendExperience(100, 8); p.clickDelay = 5; if (p.skillLvl[8] <= 1); p.requestAnim(875, 0); Engine.playerItems.addItem(p, 995, 35000); p.getActionSender().sendMessage(p, "You get some money."); break; case 1281: // Oak tree Engine.playerItems.hasPlayerItemAmount(p, 1351, 1); p.appendExperience(200, 8); p.clickDelay = 5; if (p.skillLvl[8] >= 15); p.requestAnim(875, 0); Engine.playerItems.addItem(p, 995, 70000); p.getActionSender().sendMessage(p, "You get some money."); break; case 1308: // Willow tree Engine.playerItems.hasPlayerItemAmount(p, 1351, 1); p.appendExperience(300, 8); p.clickDelay = 5; if (p.skillLvl[8] >= 30); p.requestAnim(875, 0); Engine.playerItems.addItem(p,995, 80000); p.getActionSender().sendMessage(p, "You get some money."); break; case 1307: //Maple tree Engine.playerItems.hasPlayerItemAmount(p, 1351, 1); p.appendExperience(500, 8); p.clickDelay = 5; if (p.skillLvl[8] >= 50); p.requestAnim(875, 0); Engine.playerItems.addItem(p, 995, 90000); p.getActionSender().sendMessage(p, "You get some money."); break; case 8513: //Yew tree Engine.playerItems.hasPlayerItemAmount(p, 1351, 1); p.appendExperience(750, 8); p.clickDelay = 5; if (p.skillLvl[8] >= 60); p.requestAnim(875, 0); Engine.playerItems.addItem(p, 995, 100000); p.getActionSender().sendMessage(p, "You get some money."); break; case 1306: //Magic tree Engine.playerItems.hasPlayerItemAmount(p, 1351, 1); p.appendExperience(1000, 8); p.clickDelay = 5; if (p.skillLvl[8] >= 90); p.requestAnim(875, 0); Engine.playerItems.addItem(p, 995, 250000); p.getActionSender().sendMessage(p, "You get some Money."); break; //End of woodcutting Mining: Paste this in ObjectOption1.java (just a base / u can change money and exp) //begin of mining case 2094: case 2095: case 31077: case 31078: case 31079: Engine.playerItems.hasPlayerItemAmount(p, 1265, 1); p.appendExperience(250, 14); p.clickDelay = 4; if (p.skillLvl[14] <= 1); p.requestAnim(6752, 0); Engine.playerItems.addItem(p, 995, 10000); p.getActionSender().sendMessage(p, "You mine some money."); break; case 2091: case 31080: case 31081: case 31082: Engine.playerItems.hasPlayerItemAmount(p, 1265, 1); p.appendExperience(250, 14); p.clickDelay = 4; if (p.skillLvl[14] <= 1); p.requestAnim(6752, 0); Engine.playerItems.addItem(p, 995, 10000); p.getActionSender().sendMessage(p, "You mine some money."); break; case 2092: case 2093: case 31071: case 31072: case 31073: Engine.playerItems.hasPlayerItemAmount(p, 1265, 1); p.appendExperience(500, 14); p.clickDelay = 11; if (p.skillLvl[14] <= 20); p.requestAnim(6752, 0); Engine.playerItems.addItem(p, 995, 30000); p.getActionSender().sendMessage(p, "You mine some money."); break; case 2096: case 31068: case 31069: case 31070: Engine.playerItems.hasPlayerItemAmount(p, 1265, 1); p.appendExperience(750, 14); p.clickDelay = 10; if (p.skillLvl[14] <= 30); p.requestAnim(6752, 0); Engine.playerItems.addItem(p, 995, 40000); p.getActionSender().sendMessage(p, "You mine some money."); break; case 2103: case 31086: case 31087: case 31088: Engine.playerItems.hasPlayerItemAmount(p, 1265, 1); p.appendExperience(1000, 14); p.clickDelay = 14; if (p.skillLvl[14] <= 55); p.requestAnim(6752, 0); Engine.playerItems.addItem(p, 995, 50000); p.getActionSender().sendMessage(p, "You mine some money."); break; case 31083: case 31085: Engine.playerItems.hasPlayerItemAmount(p, 1265, 1); p.appendExperience(2500, 14); p.clickDelay = 20; if (p.skillLvl[14] <= 70); p.requestAnim(6752, 0); Engine.playerItems.addItem(p, 995, 100000); p.getActionSender().sendMessage(p, "You mine some money."); break; case 2106: case 2107: Engine.playerItems.hasPlayerItemAmount(p, 1265, 1); p.appendExperience(5000, 14); p.clickDelay = 25; if (p.skillLvl[14] <= 85); p.requestAnim(6752, 0); Engine.playerItems.addItem(p, 995, 200000); p.getActionSender().sendMessage(p, "You mine some money."); break; //end of mining Thieving: These are al the thievings stalls i got case 34383: //Silk stall if (p.skillLvl[17] >= 30) { p.clickDelay = 5; p.requestAnim(833, 0); p.skillXP[17] += 2500; p.skillLvl[17] = p.getLevelForXP(17); p.getActionSender().setSkillLvl(p, 17); p.appearanceUpdateReq = true; p.updateReq = true; Engine.playerItems.addItem(p, 995, 10000); p.message("You steal from the stall."); } else { p.message("You need at least 30 thieving to steal from this stall."); } break; case 34384: //bake stall if (p.skillLvl[17] >= 1) { p.clickDelay = 5; p.requestAnim(833, 0); p.skillXP[17] += 2000; p.skillLvl[17] = p.getLevelForXP(17); p.getActionSender().setSkillLvl(p, 17); p.appearanceUpdateReq = true; p.updateReq = true; Engine.playerItems.addItem(p, 995, 20000); p.message("You steal from the stall."); } else { p.message("You need at least 1 thieving to steal from this stall."); } break; case 34387: //Fur stall if (p.skillLvl[17] >= 55) { p.clickDelay = 5; p.requestAnim(833, 0); p.skillXP[17] += 3200; p.skillLvl[17] = p.getLevelForXP(17); p.getActionSender().setSkillLvl(p, 17); p.appearanceUpdateReq = true; p.updateReq = true; Engine.playerItems.addItem(p, 995, 30000); p.message("You steal from the stall."); } else { p.message("You need at least 55 thieving to steal from this stall."); } break; case 34382: //silver stall if (p.skillLvl[17] >= 70) { p.clickDelay = 6; p.requestAnim(833, 0); p.skillXP[17] += 4250; p.skillLvl[17] = p.getLevelForXP(17); p.getActionSender().setSkillLvl(p, 17); p.appearanceUpdateReq = true; p.updateReq = true; Engine.playerItems.addItem(p, 995, 50000); p.message("You steal from the stall."); } else { p.message("You need at least 70 thieving to steal from this stall."); } break; case 34386: //spice stall if (p.skillLvl[17] >= 85) { p.clickDelay = 7; p.requestAnim(833, 0); p.skillXP[17] += 5000; p.skillLvl[17] = p.getLevelForXP(17); p.getActionSender().setSkillLvl(p, 17); p.appearanceUpdateReq = true; p.updateReq = true; Engine.playerItems.addItem(p, 995, 100000); p.message("You steal from the stall."); } else { p.message("You need at least 85 thieving to steal from this stall."); } break; case 34385: //Gem stall if (p.skillLvl[17] >= 99) { p.clickDelay = 8; p.requestAnim(833, 0); p.skillXP[17] += 7500; p.skillLvl[17] = p.getLevelForXP(17); p.getActionSender().setSkillLvl(p, 17); p.appearanceUpdateReq = true; p.updateReq = true; Engine.playerItems.addItem(p, 995, 250000); p.message("You steal from the stall."); } else { p.message("You need at least 99 thieving to steal from this stall."); } Credits: Runelocus Tuts Mining and Wc i think name was : Supwizzard (not sure)
×