Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1.     public void stealFromStall(int id, int ammount, int id2, int ammount2, int xp, int level) {
  2.         if (System.currentTimeMillis() - c.lastThieve < 2500)
  3.             return;
  4.         if (Misc.random(100) == 0) {
  5.            
  6.             return;
  7.         }
  8.         if (c.playerLevel[c.playerThieving] >= level) {
  9.             if (c.getItems().addItem(id, ammount) && c.getItems().addItem(id2, ammount2)) {
  10.                 c.startAnimation(832);
  11.                 c.getPA().addSkillXP(xp * Config.THIEVING_EXPERIENCE, c.playerThieving);
  12.                 c.lastThieve = System.currentTimeMillis();
  13.                 c.sendMessage("You steal a " + server.model.items.Item.getItemName(id) + ".");
  14.                 c.sendMessage("And some coins.");
  15.             }      
  16.         } else {
  17.             c.sendMessage("You must have a thieving level of " + level + " to thieve from this stall.");
  18.         }
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement