I don't get why I can't theive these stalls it's so easy to do yet it's not working.
I looked in an old backup when it WAS working, and the code was exactly the same.
Maybe it's something I did in theiving.java ?
Code:
/* Theiving Stalls */
case 4876:
c.getThieving().stealFromStall(1607, 100, 1);
break;
case 4875:
c.getThieving().stealFromStall(1603, 150, 25);
break;
case 4874:
c.getThieving().stealFromStall(1601, 200, 50);
break;
case 4877:
c.getThieving().stealFromStall(1615, 250, 75);
break;
case 4878:
c.getThieving().stealFromStall(6573, 300, 90);
Code:
public void stealFromStall(int id, 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,1)) {
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) + ".");
}
} else {
c.sendMessage("You must have a thieving level of " + level + " to thieve from this stall.");
}
}