Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (System.currentTimeMillis() - c.lastThieve < 2500)
- return;
- if (Misc.random(100) == 0) {
- return;
- }
- if (c.playerLevel[c.playerThieving] >= level) {
- if (c.getItems().addItem(id, amount)) {
- c.startAnimation(832);
- c.getPA().addSkillXP(xp * Config.THIEVING_EXPERIENCE, c.playerThieving);
- c.lastThieve = System.currentTimeMillis();
- c.sendMessage("You receive "+amount+" Coins");
- }
- } else {
- c.sendMessage("You must have a thieving level of " + level + " to thieve from this stall.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement