Advertisement
Tyluur

Untitled

Dec 25th, 2011
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. if (System.currentTimeMillis() - c.lastThieve < 2500)
  2. return;
  3. if (Misc.random(100) == 0) {
  4.  
  5. return;
  6. }
  7. if (c.playerLevel[c.playerThieving] >= level) {
  8. if (c.getItems().addItem(id, amount)) {
  9. c.startAnimation(832);
  10. c.getPA().addSkillXP(xp * Config.THIEVING_EXPERIENCE, c.playerThieving);
  11. c.lastThieve = System.currentTimeMillis();
  12. c.sendMessage("You receive "+amount+" Coins");
  13.  
  14. }
  15. } else {
  16. c.sendMessage("You must have a thieving level of " + level + " to thieve from this stall.");
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement