Base: PI
Problem: I can alch just fine, but only if the item is in certain slots(i believe only slot 2 in the invy)
Errors: none
Other: Here is my case's for low+high, see of ya can find anything
Code:
case 1162: // low alch
if(System.currentTimeMillis() - c.alchDelay > 1000) {
if(c.getItems().playerHasItem(itemId, slot, 1)){
if(!c.getCombat().checkMagicReqs(49)) {
break;
}
if(itemId == 995) {
c.sendMessage("You can't alch coins.");
break;
}
if(c.getItems().playerHasItem(itemId, slot, 1)){
c.getItems().deleteItem(itemId, slot, 1);
c.getItems().addItem(995, c.getShops().getItemShopValue(itemId)/3);
c.startAnimation(c.MAGIC_SPELLS[49][2]);
c.gfx100(c.MAGIC_SPELLS[49][3]);
c.alchDelay = System.currentTimeMillis();
sendFrame106(6);
addSkillXP(c.MAGIC_SPELLS[49][7] * Config.MAGIC_EXP_RATE, 6);
refreshSkill(6);
}
}
}
break;
case 1178: // high alch
if(System.currentTimeMillis() - c.alchDelay > 2000) {
if(c.getItems().playerHasItem(itemId, slot, 1)){
if(!c.getCombat().checkMagicReqs(50)) {
break;
}
if(itemId == 995) {
c.sendMessage("You can't alch coins.");
break;
}
if(c.getItems().playerHasItem(itemId, slot, 1)){
c.getItems().deleteItem(itemId, slot, 1);
c.getItems().addItem(995, (int)(c.getShops().getItemShopValue(itemId)*.75));
c.startAnimation(c.MAGIC_SPELLS[50][2]);
c.gfx100(c.MAGIC_SPELLS[50][3]);
c.alchDelay = System.currentTimeMillis();
sendFrame106(6);
addSkillXP(c.MAGIC_SPELLS[50][7] * Config.MAGIC_EXP_RATE, 6);
refreshSkill(6);
}
}
}
break;
Wll Massivly rep+thank anyone who contributes to a fix