Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void stealFromStall(int id, int ammount, int id2, int ammount2, int xp, int level) {
- if (System.currentTimeMillis() - c.lastThieve < 2500)
- return;
- if (Misc.random(100) == 0) {
- return;
- }
- if (c.playerLevel[c.playerThieving] >= level) {
- if (c.getItems().addItem(id, ammount) && c.getItems().addItem(id2, ammount2)) {
- c.startAnimation(832);
- c.getPA().addSkillXP(xp * Config.THIEVING_EXPERIENCE, c.playerThieving);
- c.lastThieve = System.currentTimeMillis();
- c.sendMessage("You steal a " + server.model.items.Item.getItemName(id) + ".");
- c.sendMessage("And some 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