|
That's my problem.
Code:public void cook(int id, int slot, int amount) { for (int j = 0; j < 1; j++) { if (c.getItems().playerHasItem(id,amount)) { if (c.playerLevel[c.playerCooking] >= cookingItems[slot][3]) { if (Misc.random(c.playerLevel[c.playerCooking] + 3 - cookingItems[slot][3]) == 1) { c.sendMessage("You accidently burn the fish."); c.getItems().deleteItem(id, c.getItems().getItemSlot(id), amount); c.getItems().addItem(cookingItems[slot][2], amount); } else { c.getItems().deleteItem(id, c.getItems().getItemSlot(id), amount); c.startAnimation(883); c.getItems().addItem(cookingItems[slot][1], amount); c.getPA().addSkillXP(cookingItems[slot][4] * Config.COOKING_EXPERIENCE, c.playerCooking); } } else { c.sendMessage("You need a cooking level of " + cookingItems[slot][3] + " to cook this fish."); break; } } else { break; } } }
L, post removed.
Didn't you say that you program better than I do? *cough* fucktard *cough*Code:public void cook(int id, int slot, int amount) { for (int j = 0; j < amount; j++) { if (c.getItems().playerHasItem(id, 1)) { if (c.playerLevel[c.playerCooking] >= cookingItems[slot][3]) { if (Misc.random(c.playerLevel[c.playerCooking] + 3 - cookingItems[slot][3]) == 1) { c.sendMessage("You accidently burn the fish."); c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1); c.getItems().addItem(cookingItems[slot][2], 1); } else { c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1); c.startAnimation(883); c.getItems().addItem(cookingItems[slot][1], 1); c.getPA().addSkillXP(cookingItems[slot][4] * Config.COOKING_EXPERIENCE, c.playerCooking); } } else { c.sendMessage("You need a cooking level of " + cookingItems[slot][3] + " to cook this fish."); break; } } else { break; } } }
why not just rip insanitys....
same thing anyway...Code:public void cookFish(int id, int slot) { for (int j = 0; j < 28; j++) { if (c.getItems().playerHasItem(id,1)) { if (c.playerLevel[c.playerCooking] >= cookingItems[slot][3]) { if (Misc.random(c.playerLevel[c.playerCooking] + 3 - cookingItems[slot][3]) == 1) { c.sendMessage("You accidently burn the fish."); c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1); c.getItems().addItem(cookingItems[slot][2], 1); } else { c.getItems().deleteItem(id, c.getItems().getItemSlot(id), 1); c.getItems().addItem(cookingItems[slot][1], 1); c.getPA().addSkillXP(cookingItems[slot][4] * Config.COOKING_EXPERIENCE, c.playerCooking); } } else { c.sendMessage("You need a cooking level of " + cookingItems[slot][3] + " to cook this fish."); break; } } else { break; } } }
lol riotscape uses python for cooking
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |