Jump to content

Search the Community

Showing results for tags 'thieving'.



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

  1. Hey guys i have a 317 pi and everytime thieving levels to a new level the client crashes and sends this error in the cmd client sided. please if someone can fix this problem for me it'll be awesome !!
  2. Hello, I am DoseSociety. The developer for the new project GoodtimesScape. Here is one thing I've been working on in the first two days of development. I see no reason to share whatever source code I produce publicly. [code]import com.rs2hd.model.Player; import com.rs2hd.Constants; /** * represents the process of stealing from a stall * @author ethan */ public class Thieving { /** * represents a vendor stall in the game from which you can steal items for experience */ private enum Stall { BREAD_STALL(25, 526, 0, "bread"), FABRIC_STALL(50, 526, 15, "fabric"), JEWELRY_STALL(100, 526, 40, "jewelry"); private int xp; private int item; private int level; private String itemName; private Stall(int xp, int item, int level, String itemName) { this.xp = xp; this.item = item; this.level = level; this.itemName = itemName; } public int getXp() { return xp; } public int getItem() { return item; } public int getLevel() { return level; } public String getItemName() { return itemName; } } /** * instance of the player while thieving */ private Player player; /** * the stall being stolen from */ private Stall stall; /** * constructs an instance of thieving */ public Thieving() { } /** * executes the thieving * TO-DO put better discription * [MENTION=75098]Para[/MENTION]m player * [MENTION=75098]Para[/MENTION]m stallId */ public void execute(Player player, int stallId) { this.player = player; switch (stallId) { case 4705: stall = Stall.BREAD_STALL; break; case 4706: stall = Stall.FABRIC_STALL; break; case 4707: stall = Stall.JEWELRY_STALL; break; } perform(); } /** * performs the thieving * TO-DO put better discription */ private void perform() { if (playerDoesntHaveLevel()) { player.getActionSender().sendMessage("You do not have the level required to steal from this stall."); return; } player.animate(881, 0); player.getActionSender().sendMessage("You stole some " + stall.getItemName() + "."); player.getInventory().addItem(stall.getItem(), 1); player.getSkills().addXp(17, stall.getXp() * Constants.EXPERIENCE_SCALE); } /** * checks to see if the player has the level needed to steal from a stall * [MENTION=184045]return[/MENTION] */ private boolean playerDoesntHaveLevel() { if (player.getSkills().getLevelForXp(17) < stall.getLevel()) { return true; } return false; } }[/code] The items aren't correct for the stalls If you want to scale the xp rate search for EXPERIENCE_SCALE in Thieving.java and change it to whatever scale you want This is the first object I've programmed in java for a very long time. If you could please revamp this and release the updates. I will use the updates personally. I hope I helped someone. Have a nice day :) To add this file to your rs2hd server go into ObjectPacketHandler.java Search [code]case 4705: player.thiefbs(); break; [/code] and replace it with [code]case 4705: case 4706: case 4707: thieving.execute(player, id); break; [/code]
  3. As the title says, Does anyone know how to change the thieving stall respawn times, because atm the gem stall is on a 180 second.. I'm using the dementhium source if that helps, Thanks ;)
  4. NOTE: Before reading this code yes I know I have use the combat delays but I thought I may as well instead of making another timer, considering the delays I used are obviously not going to be used while thieving I.e freeze delay && combat delay Yeah this took me literally 15 mins to write. Just thought I'd give it out so people could add onto it I.e could easy be adjusted to stealing from an NPC. Make a new folder in the skill package called Thieving Make a new class called Stalls.java and add this into it: [CODE]package dragonkk.rs2rsps.skills.thieving; import dragonkk.rs2rsps.model.World; import dragonkk.rs2rsps.model.player.Player; import dragonkk.rs2rsps.util.Misc; import dragonkk.rs2rsps.util.RSTile; /* * Nice and easy stall thieving stall class * 100% crezzy << with a little help from StaicX */ public class Stalls { private static int[] howMuchXpGold(Player p) { byte tLvl = (byte) p.getSkills().getLevel(17); if (tLvl < 10) return new int[] { 100, 50000 }; if (tLvl < 30 && tLvl >= 10) return new int[] { 300, 60000 }; if (tLvl < 50 && tLvl >= 30) return new int[] { 500, 80000 }; if (tLvl < 70 && tLvl >= 50) return new int[] { 1000, 100000 }; if (tLvl < 90 && tLvl >= 70) return new int[] { 2000, 150000 }; return new int[] { 3000, 250000 }; } public static void clickStall(Player p, RSTile location) { if (p.getCombat().delay > 0) { p.sendMessage("Please wait before trying to steal again....."); return; } if (Misc.random(20) <= 1) { p.sendMessage("Random event activated....."); p.getMask().getRegion().teleport(World.homeX, World.homeY, 0, 0); p.getCombat().freezeDelay = 10; p.getCombatDefinitions().doEmote(3040, 777, 100); return; } p.turnTemporarilyTo(location); p.getCombatDefinitions().doEmote(881, -1, 100); p.getInventory().addItem(995, howMuchXpGold(p)[1]); p.sendMessage("You steal " + howMuchXpGold(p)[1] + " Gold coins!"); p.getSkills().addXp(17,Math.round(p.donator > 0 ? howMuchXpGold(p)[0] * 1.5 : howMuchXpGold(p)[0])); p.getCombat().delay = Misc.random(8); } } [/CODE] Then what ever stall you choose you can call the class like this: (I use Object 4878) [CODE] Stalls.clickStall(player, RSTile.createRSTile(coordX,coordY,height));[/CODE] 100% credits me nothing special but I'm sure allot of you will be using it lol :P
  5. i have posted this on moparscape with no help so can u guys tell me what to do i am trying to add more npcs to the theving class i got the npc in just need to add a theving for them the items are in too i just need to make it work i dont know how to add more thieving to the source i am trying to learn how to code rune source can someone help me?
  6. in my server when i am thieving and my inventory is full then you just get xp but i want to disable it can you help me?
  7. So I just managed to fix the Hand Cannon in my server with working spec. I changed something at thieving and now I get this, please help me! [IMG]http://i.imgur.com/SVrOqny.png[/IMG]
  8. how to change the thieving stall from money to rings help
  9. Daphtion

    PI Thieving Stall

    Hey, Added today thieving to my server and it's [U]almost[/U] working.. Only problem is that I can't get Stalls work but other objects work. When I click Baker's Stall I get this on CMD. [code] objectId: 2561 ObjectX: 3084 objectY: 3489 Xoff: 2 Yoff: 1 [/code] ActionHandler.java [code] case 2561: c.getThieving().stealFromStall(2561); //Baker's Stall break; [/code] Thieving.java [code] private enum StallData { BAKER(2561, new int[]{1897}, 16, 5), [/code]
  10. cana nyone help me out plz if anyone can help me thxs
  11. Haven't seen this yet anywhere so I thought I would release. This can be used in the Thieving Guild area in lumbridge. First off in Player.java look for: [CODE] private int SlayerPoints; [/CODE] Paste this underneath: [CODE] private int ThievingPoints; [/CODE] Again Look For: [CODE] public int getSlayerPoints() { return slayerPoints; } [/CODE] Then Put This Underneath That: [CODE] public int getThievingPoints() { return ThievingPoints; } public void setThievingPoints(int Thievingpoints) { this.ThievingPoints = Thievingpoints; } [/CODE] Now open ObjectHandler.java and under Clicked 1 add this: [CODE] } else if (id == 52317) { if (player.getInventory().getFreeSlots() < 1) { player.getPackets().sendGameMessage("Not enough space in your inventory."); return; } if (player.getSkills().getLevel(Skills.THIEVING) >= 30) { player.setNextAnimation(new Animation(881)); player.setThievingPoints(player.getThievingPoints() + 2); player.getSkills().addXp(17, 40); player.getPackets().sendGameMessage("You Recieve 2 Thieving Points!"); } else { player.getPackets() .sendGameMessage( "You need at least 30 thieving to steal from this dummy"); } } else if (id == 52296) { if (player.getInventory().getFreeSlots() < 1) { player.getPackets().sendGameMessage("Not enough space in your inventory."); return; } if (player.getSkills().getLevel(Skills.THIEVING) >= 60) { player.setNextAnimation(new Animation(881)); player.setThievingPoints(player.getThievingPoints() + 5); player.getSkills().addXp(17, 90); player.getPackets().sendGameMessage("You Recieve 5 Thieving Points!"); } else { player.getPackets() .sendGameMessage( "You need at least 60 thieving to steal from the chest"); } } else if (id == 52299) { if (player.getInventory().getFreeSlots() < 1) { player.getPackets().sendGameMessage("Not enough space in your inventory."); return; } if (player.getSkills().getLevel(Skills.THIEVING) >= 60) { player.setNextAnimation(new Animation(881)); player.setThievingPoints(player.getThievingPoints() + 5); player.getSkills().addXp(17, 90); player.getPackets().sendGameMessage("You Recieve 5 Thieving Points!"); } else { player.getPackets() .sendGameMessage( "You need at least 60 thieving to steal from the chest"); } [/CODE] Then under Clicked 3 Add this: [CODE] case "mark 1": if (player.getInventory().getFreeSlots() < 1) { player.getPackets().sendGameMessage("Not enough space in your inventory."); return; } if (player.getSkills().getLevel(Skills.THIEVING) >= 10) { player.setNextAnimation(new Animation(881)); player.setThievingPoints(player.getThievingPoints() + 1); player.getSkills().addXp(17, 15); player.getPackets().sendGameMessage("You Recieve 1 Thieving Point!"); } else { player.getPackets() .sendGameMessage( "You need at least 10 thieving to steal from this dummy"); } [/CODE] So I was asked to release my shop data so kindly so I will... Here it is! Inside Shop.java look for (oh and ik ur loyalty wont look like mine): [CODE] public static int[][] loyaltyPrices = { { 20958, 5000 }, { 22268, 9000 }, { 20962, 5000 }, { 22270, 10000 }, { 20967, 5000 }, { 22272, 8000 }, { 22280, 5000 }, { 22282, 9000 }, { 22284, 5000 }, { 22286, 8000 }, { 20966, 5000 }, { 22274, 10000 }, { 20965, 5000 }, { 22276, 8000 }, { 22288, 5000 }, { 22290, 8000 }, { 22292, 5000 }, { 22294, 10000 }, { 22300, 7000 }, { 22296, 5000 }, { 22298, 10000 }, { 22302, 9000 }, { 22899, 5000 }, { 22901, 10000 }, { 22903, 15000 }, { 22905, 5000 }, { 22907, 10000 }, { 22909, 15000 }, { 23848, 5000 }, { 23850, 10000 }, { 23852, 15000 }, { 23854, 20000 }, { 23874, 20000 }, { 23876, 20000 }, { 25180, 200 }, { 25181, 200 }, { 25182, 200 }, { 25183, 200 }, { 25184, 200 }, { 25185, 200 }, { 25186, 200 }, { 25187, 200 }, { 25188, 200 }, { 25189, 200 }, { 25190, 200 }, { 25191, 200 }, { 25192, 200 }, { 25193, 200 }, { 25194, 200 }, { 25195, 200 }, { 25196, 200 }, { 25197, 200 }, { 25198, 200 }, { 25199, 200 }, { 25202, 2000 } }; [/CODE] And then underneath that paste this: [CODE] public static int[][] thievingPrices = { { 5553, 50 }, { 5554, 50 }, { 5555, 50 }, { 5556, 50 }, { 5557, 50 }, { 21480, 150 }, { 21481, 150 }, { 21482, 150 }, { 21483, 150 }, { 10075, 250 }, { 20929, 350 }, { 10394, 500 }, { 23678, 1500 }, { 28002, 2500 }, { 28003, 2500 }, { 25174, 4000 } }; [/CODE] After that look for: [CODE] for (int i11 = 0; i11 < loyaltyPrices.length; i11++) { [/CODE] Add this below it: [CODE] for (int i11 = 0; i11 < thievingPrices.length; i11++) { thievingShop = 2; if (item.getId() == thievingPrices[i11][0]) { if (player.getThievingPoints() < thievingPrices[i11][1] * quantity) { player.getPackets().sendGameMessage("You need " + thievingPrices[i11][1] + " Thieving Points to buy this item!"); return; } else thievingShop = 2; player.getPackets().sendGameMessage("You have bought a " + item.getDefinitions().getName() + " from the Thieving store."); player.getInventory().addItem(thievingPrices[i11][0], 1); player.setThievingPoints(player.getThievingPoints() - thievingPrices[i11][1]); return; } } [/CODE] And unpackedShops.txt or where ever yours loads from use this: [CODE] 38 -2 false - Thieving Shop Of Wonders - ID AMOUNT [/CODE] Save, Close, And Compile Then You Are Done! And Now You Have My Thieving System With Working Dummies And Chests In Thieving Guild In Lumbridge! I Hope You All Enjoy This (Those that say/think they can do better not even reply because why post that if you can do it then prove it and dont talk about it be about it)! Oh and heres images of thats I made this and it works: [IMG]http://i49.tinypic.com/23r5lk9.png[/IMG]
  12. mkti1

    thieving help [pi]

    hey guys, so i got this problem with the thieving stall [first one] that ppl can keep pressing it and keep getting money , the fast he press the fast he got money .. (about 3m per 3 mints) . , so i wanna make something that well stop this and only get 10k each thiev (not per click) . pic :[img]http://imageshack.us/a/img12/7162/whwtyyetydsg.png[/img] thanks.
  13. So recently I tried enabling more Thieving stalls.. These being of the object ID's... 4876, 34382, 34384, 34385. Obviously, these did not work when attempting to steal from them previously. After trying to enable these in thieving.java, I also added them in objecthandler of course. When I went to compile, I got 64 errors: [CODE]src\com\rs\game\player\content\Thieving.java:42: error: invalid method declarati on; return type required GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: illegal start of type GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: illegal start of type GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: illegal start of type GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: ')' expected GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: ';' expected GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: illegal start of type GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: <identifier> expected GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: ';' expected GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: illegal start of type GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: ';' expected GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: illegal start of type GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: <identifier> expected GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: <identifier> expected GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: illegal start of type GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: <identifier> expected GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: ';' expected GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: illegal start of type GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:42: error: <identifier> expected GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), ^ src\com\rs\game\player\content\Thieving.java:44: error: ';' expected private int[] item; ^ src\com\rs\game\player\content\Thieving.java:44: error: illegal start of type private int[] item; ^ src\com\rs\game\player\content\Thieving.java:44: error: <identifier> expected private int[] item; ^ src\com\rs\game\player\content\Thieving.java:44: error: ';' expected private int[] item; ^ src\com\rs\game\player\content\Thieving.java:52: error: invalid method declarati on; return type required Stalls(int objectId, int level, int[] item, int amount, double s econds, ^ src\com\rs\game\player\content\Thieving.java:92: error: class, interface, or enu m expected public static boolean isGuard(int npcId) { ^ src\com\rs\game\player\content\Thieving.java:95: error: class, interface, or enu m expected else ^ src\com\rs\game\player\content\Thieving.java:97: error: class, interface, or enu m expected } ^ src\com\rs\game\player\content\Thieving.java:99: error: class, interface, or enu m expected public static void handleStalls(final Player player, ^ src\com\rs\game\player\content\Thieving.java:99: error: class, interface, or enu m expected public static void handleStalls(final Player player, ^ src\com\rs\game\player\content\Thieving.java:100: error: class, interface, or en um expected final WorldObject object) { ^ src\com\rs\game\player\content\Thieving.java:105: error: class, interface, or en um expected return; ^ src\com\rs\game\player\content\Thieving.java:106: error: class, interface, or en um expected } ^ src\com\rs\game\player\content\Thieving.java:107: error: class, interface, or en um expected for (final Stalls stall : Stalls.values()) { ^ src\com\rs\game\player\content\Thieving.java:109: error: class, interface, or en um expected final WorldObject emptyStall = new WorldObject( ^ src\com\rs\game\player\content\Thieving.java:112: error: class, interface, or en um expected if (player.getSkills().getLevel(Skills.THIEVING) < stall ^ src\com\rs\game\player\content\Thieving.java:117: error: class, interface, or en um expected return; ^ src\com\rs\game\player\content\Thieving.java:118: error: class, interface, or en um expected } ^ src\com\rs\game\player\content\Thieving.java:122: error: class, interface, or en um expected return; ^ src\com\rs\game\player\content\Thieving.java:123: error: class, interface, or en um expected } ^ src\com\rs\game\player\content\Thieving.java:126: error: class, interface, or en um expected player.addStopDelay(2); ^ src\com\rs\game\player\content\Thieving.java:127: error: class, interface, or en um expected WorldTasksManager.schedule(new WorldTask() { ^ src\com\rs\game\player\content\Thieving.java:131: error: class, interface, or en um expected public void run() { ^ src\com\rs\game\player\content\Thieving.java:137: error: class, interface, or en um expected return; ^ src\com\rs\game\player\content\Thieving.java:138: error: class, interface, or en um expected } ^ src\com\rs\game\player\content\Thieving.java:144: error: class, interface, or en um expected player.getSkills().addXp (Skills.THIEVING, ^ src\com\rs\game\player\content\Thieving.java:146: error: class, interface, or en um expected gaveItems = true; ^ src\com\rs\game\player\content\Thieving.java:147: error: class, interface, or en um expected checkGuards(player); ^ src\com\rs\game\player\content\Thieving.java:148: error: class, interface, or en um expected } else { ^ src\com\rs\game\player\content\Thieving.java:151: error: class, interface, or en um expected stop(); ^ src\com\rs\game\player\content\Thieving.java:152: error: class, interface, or en um expected } ^ src\com\rs\game\player\content\Thieving.java:155: error: class, interface, or en um expected } ^ src\com\rs\game\player\content\Thieving.java:159: error: class, interface, or en um expected public static void checkGuards(Player player) { ^ src\com\rs\game\player\content\Thieving.java:161: error: class, interface, or en um expected int lastDistance = -1; ^ src\com\rs\game\player\content\Thieving.java:162: error: class, interface, or en um expected for (int regionId : player.getMapRegionsIds()) { ^ src\com\rs\game\player\content\Thieving.java:165: error: class, interface, or en um expected if (npcIndexes == null) ^ src\com\rs\game\player\content\Thieving.java:167: error: class, interface, or en um expected for (int npcIndex : npcIndexes) { ^ src\com\rs\game\player\content\Thieving.java:169: error: class, interface, or en um expected if (npc == null) ^ src\com\rs\game\player\content\Thieving.java:171: error: class, interface, or en um expected if (!isGuard(npc.getId()) || npc.isUnderCombat() ^ src\com\rs\game\player\content\Thieving.java:175: error: class, interface, or en um expected int distance = Utils.getDistance(npc.getX(), npc .getY(), ^ src\com\rs\game\player\content\Thieving.java:177: error: class, interface, or en um expected if (lastDistance == -1 || lastDistance > distanc e) { ^ src\com\rs\game\player\content\Thieving.java:179: error: class, interface, or en um expected lastDistance = distance; ^ src\com\rs\game\player\content\Thieving.java:180: error: class, interface, or en um expected } ^ src\com\rs\game\player\content\Thieving.java:186: error: class, interface, or en um expected guard.setTarget(player); ^ src\com\rs\game\player\content\Thieving.java:187: error: class, interface, or en um expected } ^ 64 errors Press any key to continue . . .[/CODE] I saved a back-up file of the thieving.java , replaced the newest one with the older one, and I still receive these errors. My thieving.java is: [CODE]package com.rs.game.player.content; import java.util.List; import com.rs.game.Animation; import com.rs.game.ForceTalk; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.npc.NPC; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.utils.Utils; /** * Handles the Thieving Skill * * @author Tyler * */ public class Thieving { public enum Stalls { VEGETABAL(4706, 2, new int[] { 1957, 1965, 1942, 1982, 1550 }, 1, 2, 10,34381), CAKE(34384, 5, new int[] { 1891, 1897, 2309 }, 1, 2.5,16, 34381), CRAFTING(4874, 5, new int[] { 1755, 1592, 1597 }, 1,7, 16, 34381), MONKEY_FOOD(4875, 5, new int[] { 1963 }, 1, 7, 16,34381), MONKEY_GENERAL(6573, 5, new int[] { 1931, 2347, 590 }, 1,7, 16, 34381), TEA_STALL(6574, 5, new int[] { 712 }, 1, 7, 16,34381), SILK_STALL(34383, 20, new int[] { 950 }, 1, 8, 24,34381), WINE_STALL(14011, 22, new int[] { 1937, 1993, 1987,1935, 7919 }, 1, 16, 27, 2046), SEED_STALL(7053, 27, new int[] {5096, 5097, 5098, 5099, 5100, 5101, 5102, 5103, 5105 }, 30, 11,10, 2047), FUR_STALL(34387, 35, new int[] { 6814, 958 }, 1, 15,36, 34381), FISH_STALL(4707, 42, new int[] { 331, 359, 377 }, 1,16, 42, 34381), CROSSBOW_STALL(17031, 49, new int[] { 877, 9420,9440 }, 1, 11, 52, 34381), SILVER_STALL(34382, 50,new int[] { 442 }, 1, 30, 54, 34381), SPICE_STALL(34386, 65,new int[] { 2007 }, 1, 80, 81, 34381), MAGIC_STALL(4877, 65,new int[] { 556, 557, 554, 555, 563 }, 30, 80, 100, 34381), SCIMITAR_STALL( 4878, 65, new int[] { 1323 }, 1, 80, 100, 34381), GEM_STALL(34385,75, new int[] { 1623, 1621, 1619, 1617 }, 1, 180, 16, 34381); GENERAL_STORE(4876, 1, new int[] { 995 }, 1000, 1, 500, 4876), private int[] item; private int level; private int amount; private int objectId; private int replaceObject; private double experience; private double seconds; Stalls(int objectId, int level, int[] item, int amount, double seconds, double experience, int replaceObject) { this.objectId = objectId; this.level = level; this.item = item; this.amount = amount; this.seconds = seconds; this.experience = experience; this.replaceObject = replaceObject; } public int getReplaceObject() { return replaceObject; } public int getObjectId() { return objectId; } public int getItem(int count) { return item[count]; } public int getAmount() { return amount; } public int getLevel() { return level; } public double getTime() { return seconds; } public double getExperience() { return experience; } } public static boolean isGuard(int npcId) { if (npcId == 32 || npcId == 21 || npcId == 2256 || npcId == 23) return true; else return false; } public static void handleStalls(final Player player, final WorldObject object) { if (player.getAttackedBy() != null && player.getAttackedByDelay() > Utils.currentTimeMillis()) { player.getPackets().sendGameMessage( "You can't do this while you're under combat."); return; } for (final Stalls stall : Stalls.values()) { if (stall.getObjectId() == object.getId()) { final WorldObject emptyStall = new WorldObject( stall.getReplaceObject(), 10, object.getRotation(), object.getX(), object.getY(), object.getPlane()); if (player.getSkills().getLevel(Skills.THIEVING) < stall .getLevel()) { player.getPackets().sendGameMessage( "You need a thieving level of " + stall.getLevel() + " to steal from this.", true); return; } if (player.getInventory().getFreeSlots() <= 0) { player.getPackets().sendGameMessage( "Not enough space in your inventory.", true); return; } player.setNextAnimation(new Animation(881)); player.addStopDelay(2); WorldTasksManager.schedule(new WorldTask() { boolean gaveItems; @Override public void run() { // prevents multiempty stall spawn if many ppl using // same spot and also checks if stall there still if (!World.getRegion(object.getRegionId()) .containsObject(object.getId(), object)) { stop(); return; } if (!gaveItems) { player.getInventory().addItem( stall.getItem(Utils .getRandom(stall.item.length - 1)), Utils.getRandom(stall.getAmount())); player.getSkills().addXp(Skills.THIEVING, stall.getExperience()); gaveItems = true; checkGuards(player); } else { World.spawnTemporaryObject(emptyStall, (int) (1500 * stall.getTime())); stop(); } } }, 0, 0); } } } public static void checkGuards(Player player) { NPC guard = null; int lastDistance = -1; for (int regionId : player.getMapRegionsIds()) { List<Integer> npcIndexes = World.getRegion(regionId) .getNPCsIndexes(); if (npcIndexes == null) continue; for (int npcIndex : npcIndexes) { NPC npc = World.getNPCs().get(npcIndex); if (npc == null) continue; if (!isGuard(npc.getId()) || npc.isUnderCombat() || npc.isDead() || !npc.withinDistance(player, 4) || !npc.clipedProjectile(player, true)) continue; int distance = Utils.getDistance(npc.getX(), npc.getY(), player.getX(), player.getY()); if (lastDistance == -1 || lastDistance > distance) { guard = npc; lastDistance = distance; } } } if (guard != null) { guard.setNextForceTalk(new ForceTalk( "Hey, what do you think you are doing!")); guard.setTarget(player); } } } [/CODE] Is anyone able to help me out, perhaps find out why I'm getting these errors now, and I wasn't before, even though I've tried changing it back to the exact same code as before? Thanks.
  14. hi guys i need help with my rsps pi thieving thieving dont work we cane only pickpocketing and i dont want to pickpocketing when i click on my thieving stalls its does nothing please someone help mE! skype:helprsps also have teamviewer! thanks for helping
  15. jaideep00

    thieving help

    [SIZE=5][B][SIZE=4]hi guys i need help with my thieving stalls when we click on the stalls any stalls we cant steal its give nothing and do nothing i need help please its only for pickocketing and i dont want to make a pickocketing things so please help i have skype if someone cane help me with teamviewer its be nice of you thanks [/SIZE] skype:helprsps[/B][/SIZE]
  16. Can anyone help get the code so when I click on the thieving stall it gives me something and xp? Help would be appreciated! :D
  17. I am willing to pay someone about $10 to add a completely new Smithing, Firemaking, and Thieving system to my 317 PI server. It would be best over Teamviewer but other ways are okay too. Thieving - I want it to be where you get a different item per stall and then I can change prices by myself later (just the default; chocolate cake, silver dust, onyx or whatever) Smithing - Currently my smelting is really messy and doesn't really work. No matter what you click it only makes 1 bar. I just need a cleaner version that works well. Firemaking - Mainly I just need it to be clipped, any other positive modifications are good too though. Add me on Skype, my name is neeko6464 and we can talk.
  18. hi guys i need help with my thieving stall whenever i put stalls he cant be straight i need help to put i mean to change place of stall at my home please someone help me 1!thanks for helping
  19. Hello RuneLocus, Today i need Help, i dont know how to change the thieving prizes , as in how much money i recieve, ive googled it and searched on here, tried everything and nothing comes up, i tried going to ActionHandler.java and searched the thing 1 post on here told me to do, it just came up with the cakes and stuff u get from thieving....i want to know how to change it so i recieve lower Gold Pieces....because heres an example You Thieve from general Stall....You Recieve a chocalate cake, and you recieve 100k coins...i want to lower the amount of coins...please help i really dont know this one...thanks
  20. hello, im trying to add thieving stalls to thieve for money on my server, but when i changed the items you get and stuff in ThievingStalls.java it doesn't give you ANYTHING when you click it... Any help please? Thanks
  21. Hey so I want to make my exp rates higher on one of my npcs, which is dwarf trader. At the moment its like 5k xp per thieve and thats way too slow is there a way to increase just this one npc thieving exp rate? I know the whole skills.java thing but if i take thieving out of the list it will be like 4m exp per thiev :/ please help :)
  22. How do you change the amount of money a thieving stall gives you?
  23. Hey guy's i wanna stop autoclicking on stalls i made the tsalls item's so they get coins for the stuff but they still continu with autoclicking. it dont even say's when bag is full how could i fix this problem?? greatings joeri <3
  24. [code] import com.rs2hd.model.Player; import com.rs2hd.model.Skills; /** * * @author Ethan R. Horner <[email protected]> * @version 1.0 * @since 2011 * */ public class Stalls { /** * Variables */ private StallDetails detail; private transient Player player; public enum StallDetails { BAKER(1, 16, new int[] { 1865, 2309, 1891, 1897 }), SILK(5, 24, new int[] { 950 }), FUR(15, 36, new int[] { 948, 958, 6814, 10093 }), SILVER(20, 54, new int[] { 442, 1796, 1798, 1804, 1806 }), GEM(30, 16, new int[] { 1617, 1619, 1621, 1623, 1625, 1629, 1631 }); /** * constructor * * @param level * @param exp * @param reward */ private StallDetails(int level, double exp, int[] reward) { this.level = level; this.exp = exp; this.reward = reward; } private int level; private double exp; private int[] reward; private int getLevel() { return level; } private double getXp() { return exp; } private int getReward() { return reward[(int) (Math.random() * reward.length)]; } } /** * starts thieving * * @param player * used to get information from the player class * @param detail * used to grab data from the StallDetails enum */ public void startThieving(Player player, StallDetails detail) { this.player = player; this.detail = detail; if(!checkAll(player)) { return; } this.process(player); } /** * checks multiple variables before letting player steal from stall * * @param player * used to get information from the player class * @return */ private boolean checkAll(Player player) { if(!hasThievingLevel(player)) { return false; } if(player.getInventory().getFreeSlots() == 0) { player.sm("You do not have any space left in your inventory."); return false; } return true; } /** * checks to see if that player has the correct thieving level * * @param player * used gets information from the player class * @return */ private boolean hasThievingLevel(Player player) { if(detail.getLevel() > player.getSkills().getLevel(Skills.THIEVING)) { player.sm("You do not have the level required to steal from this stall."); return false; } return true; } /** * starts thieving process * * @param player * used to get information from the player class */ private void process(Player player) { addRewards(player); player.animate(881); player.sm("You steal from the stall."); } /** * adds reward to player's xp and inventory * * @param player * used to get information from the player class */ private void addRewards(Player player) { player.getInventory().addItem(detail.getReward(), 1); player.getSkills().addXp(Skills.THIEVING, detail.getXp()); } }[/code] [B][COLOR="#FF0000"]Don't forget to declare this to ObjectPacketHandler.java instead of Object1PacketHandler.java. Obviously it's a different packet then for regular objects.[/COLOR][/B]
  25. Need Help setting up some thieving stalls. They are already set up in Ardougne but i cant seem to change their position. I found where they are in the code but the X and Y are not defined. Its like they are there but they are not? Need help. Update: I placed a new stall. But im having trouble making it work. When i right click it, it only has the option to examine and nothing else. How do i make it clickable?
×