Jump to content

Search the Community

Showing results for tags 'food'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 16 results

  1. i have my food folder already when i got the server but when im in game i cant eat anything it just does nothing when i click on it what do i do can someone help ive tryed some tutorials off this website and some of google i have found but i get like 23 or more errors everytime? thanks =)
  2. I'm using Zenith Source 667, When i try to eat food, drink a potion,dig with a spade It says that i can wield that i looked in the inventoryHandler , i couldn't find nothing looking but i probably over looked something ,if someone could help would love it
  3. When I click on food it doesn't do anything. No heal or even eat it.
  4. Brycie

    [RS2HD] Eating Food

    When I eat a piece of food in my inventory, the first piece is eaten instead of the one that I clicked on. Example - I have 4 sharks in the first 4 slots of my inventory. I click on the 3rd shark, but the 1st shark is eaten. How do I fix this so that the food I click on is eaten?
  5. Hash

    Food eating

    Once again, this is for rs2hd, but easy to convert for any other source. In com.rs2hd.content, create a class named Foods and paste this in it: [code]package com.rs2hd.server.content; import com.rs2hd.content.Effects.FoodEffects; import com.rs2hd.model.Item; import com.rs2hd.model.Player; import com.rs2hd.util.Misc; public class Foods { private static Food getFood(int id) { for (Food food : Food.values()) if (id == food.getFoodId()) return food; return null; } public static enum Food { CRAYFISH(319, 2), ANCHOVIE(319, 1), SHRIMP(315, 3), SARDINE(325, 3), POISON_KARAMBWANJI(3146, 0), KARAMBWANI(3144, 18), SLIMY_EEL(3381, 7 + Misc.random(2)), RAINBOW_FISH(10136, 11), CAVE_EEL(5003, 8 + Misc.random(2)), LAVA_EEL(2149, 7 + Misc.random(2)), HERRING(347, 5), MACKEREL(335, 6), TROUT(339, 7), COD(333, 7), PIKE(351, 8), SALMON(329, 9), TUNA(361, 10), LOBSTER(379, 12), BASS(365, 13), SWORDFISH(373, 14), MONKFISH(7946, 16), SHARK(385, 20), TURTLE(397, 21), MANTA_RAY(391, 22), CAVEFISH(15266, 20), ROCKTAIL(15272, 23), CHICKEN(2140, 3), MEAT(2142, 3), RABBIT(3228, 5), ROASTED_RABBIT(7223, 7), ROASTED_BIRD_MEAT(9980, 6), CRAB_MEAT(7521, 10), ROASTED_BEAST_MEAT(9988, 8), CHOMPY(2878, 10), JUBBLY(7568, 15), OOMMILE(2343, 14), REDBERRY_FULL_PIE(2325, 5, 2333), REDBERRY_HALF_PIE(2333, 5, 2313), MEAT_FULL_PIE(2327, 6, 2331), MEAT_HALF_PIE(2331, 6, 2313), APPLE_FULL_PIE(2323, 7, 2335), APPLE_HALF_PIE(2335, 7, 2313), GARDEN_FULL_PIE(7178, 6, 7180), GARDEN_HALF_PIE(7180, 6, 2313), FISH_FULL_PIE(7188, 6, 7190), FISH_HALF_PIE(7188, 6, 2313), ADMIRAL_FULL_PIE(7198, 8, 7200), ADMIRAL_HALF_PIE(7200, 8, 2313), WILD_FULL_PIE(7208, 110, 7210), WILD_HALF_PIE(7210, 110, 2313), SUMMER_FULL_PIE(7218, 11, 7220), SUMMER_HALF_PIE(7220, 11, 2313), STEW(2003, 11, 1923), SPICY_STEW(7513, 11, 1923), CURRY(2011, 19, 1923), PLAIN_FULL_PIZZA(2289, 7, 2291), PLAIN_HALF_PIZZA(2291, 7), MEAT_FULL_PIZZA(2293, 8, 2295), MEAT_HALF_PIZZA(2295, 8), ANCHOVIE_FULL_PIZZA(2297, 9, 2299), ANCHOVIE_HALF_PIE(2299, 9), PINEAPPLE_FULL_PIZZA(2301, 11, 2303), PINEAPPLE_HALF_PIE(2303, 11), SPICY_SAUCE(7072, 2, 1923), CHILI_CON_CARNE(7062, 14, 1923), SCRAMBLES_EGGS(7078, 5, 1923), EGGS_AND_TOMATO(7064, 8, 1923), FRIED_ONIONS(7084, 9, 1923), MUSHROOM_AND_ONIONS(7066, 11, 1923), FRIED_MUSHROOMS(7082, 5, 1923), TUNA_AND_CORN(7068, 13, 1923), BAKED_POTATO(6701, 4), POTATO_WITH_BUTTER(6703, 14), CHILI_POTATO(7054, 14), POTATO_WITH_CHEESE(6705, 16), EGG_POTATO(7056, 16), MUSHROOMS_AND_ONION_POTATO(7058, 20), TUNA_POTATO(7060, 24), TOAD_CRUNCHIES(2217, 8), SPICY_CRUNCHIES(2213, 7), WORM_CRUNCHIES(2205, 8), CHOCOCHIP_CRUNCHIES(9544, 7), FRUIT_BATTA(2277, 11), TOAD_BATTA(2255, 11), WORM_BATTA(2253, 11), VEGETABLE_BATTA(2281, 11), CHEESE_AND_TOMATO_BATTA(9535, 11), WORM_HOLE(2191, 12), VEG_BALL(2195, 12), PRE_MADE_VEG_BALL(2235, 12), TANGLED_TOAD_LEGS(2187, 15), CHOCOLATE_BOMB(2185, 15), CAKE(1891, 4, 1893), TWO_THIRD_CAKE(1893, 4, 1896), SLICE_OF_CAKE(1896, 4), CHOCOLATE_CAKE(1897, 4, 1899), TWO_THIRDS_CHOCOLATE_CAKE(1899, 4, 1901), CHOCOLATE_SLICE(1901, 4), FISH_CAKE(7530, 11), BREAD(2309, 5), CABBAGE(1965, 1), ONION(1957, 1), EVIL_TURNIP(12134, 1), POT_OF_CREAM(2130, 1), CHEESE_WHEEL(18789, 2), THIN_SNAIL_MEAT(3369, 5 + Misc.random(2)), LEAN_SNAIL_MEAT(3371, 8), FAT_SNAIL_MEAT(3373, 8 + Misc.random(2)); private int foodId; private int eatenFoodId; private int healAmount; private Food(int foodId, int healAmount, int eatenFoodId) { this.foodId = foodId; this.eatenFoodId = eatenFoodId; this.healAmount = healAmount; } private Food(int foodId, int healAmount) { this(foodId, healAmount, -1); } public int getFoodId() { return foodId; } public int getEatenFoodId() { return eatenFoodId; } public int getHealAmount() { return healAmount; } public void eat(Player player, int slot) { Item item = player.getInventory().get(slot); String def = item.getDefinition().getName(); Food food = getFood(item.getId()); if (player.getFoodDelay() > System.currentTimeMillis()) return; player.getActionSender().sendMessage("You eat the " + def.toLowerCase() + "."); player.addFoodDelay(1800); player.animate(829); player.getInventory().getContainer() .set(slot, (food.getEatenFoodId()) == -1 ? null : new Item(food.getEatenFoodId(), 1)); player.getInventory().refresh(); int hitpoints = player.getSkills().getLevel(3); player.heal(food.getHealAmount()); if (player.getSkills().getLevel(3) > hitpoints) player.getActionSender().sendMessage("It heals some health."); FoodEffects.applyFoodEffect(player, food); } } }[/code] ----------------------------------------------------------------------------------------------------------------------------- In Player.java, add this: [code]public void addFoodDelay(long time) { foodDelay = time + System.currentTimeMillis(); } public long getFoodDelay() { return foodDelay; }[/code] If not already added with my other snippets, add this with the other variables at top: [code]private transient long foodDelay;[/code] ------------------------------------------------------------------------------------------------------------------------------------ In ItemPacketHandler.java, find [code]private void itemSelect(final Player player, final Packet packet) {[/code] and under [code]if (interfaceId == 149) {[/code] add [code]for(Food food : Food.values()) { if(food != null && id == food.getFoodId()) food.eat(player, slot); }[/code] and import this [code]import com.rs2hd.content.Foods.Food;[/code] -------------------------------------------------------------------------------------------------- If you haven't added it from my Potion drinking snippet, create a class named Effects in com.rs2hd.content and paste this: [code]package com.rs2hd.content; import com.rs2hd.GameEngine; import com.rs2hd.content.Foods.Food; import com.rs2hd.content.PotionDrinking.Potions; import com.rs2hd.model.Player; import com.rs2hd.model.Skills; public class Effects { /** * Class to handle the effects of potions/food when a player drinks/eats it. * [MENTION=52317]auth[/MENTION]or Guillaume (Hash - RuneLocus ; ByteValue - Rune-Server) * */ /* Use only if the boost is added to the current level */ private static boolean differentBoost; /** * Gets the player's level after adding the boost to the real level or current level. * @return currentLevel + boost * else * @return realLevel + boost */ public static int getCurrentLevel(int realLevel, int currentLevel, double boost) { if (differentBoost) return (int) (currentLevel + boost); else return (int) (realLevel + boost); } /** * Applies a boost to more than 1 skill * */ public static void getCurrentLevels(Player player, int[] skills, int realLevel, int currentLevel, double boost) { for (int i = 0; i < skills.length; i++) player.getSkills().set(skills[i], (int) (realLevel + boost)); } static class PotionEffects { /** * Applies effects to the player's skills after drinking the potion. * */ public static void applyPotionEffects(Player player, Potions potion) { int skill = 0; int currentLevel = player.getSkills().getLevel(skill); int realLevel = player.getSkills().getLevelForXp(skill); double boost = 0; double normalBoost = 3.0 + (realLevel * 0.10); double superBoost = 5.0 + (realLevel * 0.15); double extremeBoost = 5.0 + (realLevel * 0.22); switch(potion.getPotionId()) { /************************************ * COMBAT POTIONS * ************************************/ case 125: // Attack potions case 123: case 121: case 2428: skill = Skills.ATTACK; boost = normalBoost; GameEngine.poison.startPoison(player, 6); player.getSkills().drain(Skills.PRAYER, 50); break; case 145: // Super attack potions case 147: case 149: case 2436: skill = Skills.ATTACK; boost = superBoost; break; case 15308: // Extreme attack potions case 15309: case 15310: case 15311: skill = Skills.ATTACK; boost = extremeBoost; break; case 113: // Strength potions case 115: case 117: case 119: skill = Skills.STRENGTH; boost = normalBoost; break; case 157: // Super strength potions case 159: case 161: case 2440: skill = Skills.STRENGTH; boost = superBoost; break; case 15312: // Extreme strength potions case 15313: case 15314: case 15315: skill = Skills.STRENGTH; boost = extremeBoost; break; case 133: // Defence potions case 135: case 137: case 2432: skill = Skills.DEFENCE; boost = normalBoost; break; case 163: // Super defence potions case 165: case 167: case 2442: skill = Skills.DEFENCE; boost = superBoost; break; case 15316: // Extreme defence potions case 15317: case 15318: case 15319: skill = Skills.DEFENCE; boost = extremeBoost; break; case 9739: // Combat potions case 9741: case 9743: case 9745: boost = normalBoost; getCurrentLevels(player, new int[] {0, 2}, realLevel, currentLevel, boost); break; case 139: // Prayer potions case 141: case 143: case 2434: skill = Skills.PRAYER; differentBoost = true; boost = 7.0 + (0.25 * realLevel); if (currentLevel + boost > realLevel) boost = 0; break; case 175: case 177: case 179: case 2446: GameEngine.poison.curePoison(player); if (player.getPoisonImmunity() < System.currentTimeMillis()) player.getActionSender().sendMessage("You are now immune to poison."); player.addImmunityToPoison(0x15f90); break; case 181: case 183: case 185: case 2448: GameEngine.poison.curePoison(player); if (player.getPoisonImmunity() < System.currentTimeMillis()) player.getActionSender().sendMessage("You are now immune to poison."); player.addImmunityToPoison(0x57e40); break; /************************************ * SKILLS POTIONS * ************************************/ case 3032: // Agility potions case 3034: case 3036: case 3038: differentBoost = true; skill = Skills.AGILITY; boost = 2 + (Math.random() * ((3 - 2) + 1)); break; } player.getSkills().set(skill, getCurrentLevel(realLevel, currentLevel, boost)); } } /** * Handles the effects of the food when a player eats it. * [MENTION=52317]auth[/MENTION]or Guillaume * */ static class FoodEffects { public static void applyFoodEffect(Player player, Food food) { int skill = 0; int currentLevel = player.getSkills().getLevel(skill); int realLevel = player.getSkills().getLevelForXp(skill); double boost = 0; switch (food.getFoodId()) { case 7218: case 7220: skill = Skills.AGILITY; player.setRunEnergy((int)(player.getRunEnergy() + (double) player.getRunEnergy() * (20 / 100))); boost = 5; break; case 7178: case 7180: skill = Skills.FARMING; boost = 3; } player.getSkills().set(skill, getCurrentLevel(realLevel, currentLevel, boost)); } } }[/code] If you have any questions, feel free to ask!
  6. Joshua, a 9-year-old who lives with a disease called eosinophilic esophagitis, is allergic to nearly all foods. Pizza, hot dogs, you name it, and Joshua likely cannot eat it, or even be allowed to taste it or smell it. Joshua gets most of his nutrients through a formula prescribed by his doctor, and through a feeding tube in his stomach. Because of his disease, Joshua is homeschooled by his mother, and needs to live his life with extra caution. Cara and Brant, Joshua's parents, show what a day is like in the life of a boy who cannot eat. Source Link With Videos: [url]http://shine.yahoo.com/anderson-cooper/boy-allergic-food-203300932.html?fb_action_ids=2529924027162%2C366119703419254%2C327530323968205%2C366119526752605&fb_action_types=news.reads&fb_source=other_multiline&code=AQAU698kEqJ5ODboftZSRlGOmfMMHATbSkaB95b8iiHnZQy5IPWmGx2JlONqgc6Xr9P4wB-2gWrgjxZ6kj_8bNw-qtmPbV6Z8w8Mbfca2vRDexd_UEhIXk625NzvhobLxxKVNhUo7B9ssnjcR5lkfyamxiTeyOTrGDFLaF-o8wWT0cnhq2EyHzziUISL1T_3T9JVTcdOdQhA6MTEeTxjrpBR#_=_[/url]
  7. So basically, please post your answer to the question. My favourite type of food out of the ones I added to the poll is chinese. I like their meats and noodles. :) The weirdest food I've ever tasted is thai prawn crackers. They sort of tasted of wood with chillies, peanuts and for some odd reason, chocolate.
  8. [CENTER][IMG]http://www.onlineschools.org/blog/everything-fast-food/fastfood.gif[/IMG] [/CENTER]
  9. Of the following: McDonalds Burger King Wendys I choose Wendy's because here they actually put everything together right in front of you and you witness the fresh ingredients they put in. As for mcdonalds it's good but it has chemicals in there food so... yeah.
  10. Sethy

    Food Industries

    Our food industries are nothing like they used to be. They're designed entirely for maximum efficiency, and when mishaps occur they don't take the time to fix it, they just discover something else to mask the previous problem. Livestock are now raised in factories instead of farms. Our foods are genetically engineered instead of naturally grown. As a result, we're noticing a lot of harmful bacteria in our foods, as well as unethical treatment of livestock. What are your views on today's food industry?
  11. i was was watching the food channel and it made me hungry lol so im wondering whats your favorite food lol
  12. iRepo

    Raw Food Troll

    [video=youtube;uRyG91Szjk4]http://www.youtube.com/watch?v=uRyG91Szjk4&feature=relmfu[/video] Skip to 1:08.
  13. Scotticus

    Weird Food

    Well here we go.. I will start it off with these: [IMG]http://www.mysupermarket.co.uk/Images/ExternalImages/ProductsDetailed/62/114662.jpg?ts=634098173482[/IMG]
  14. [SIZE="3"][COLOR="DarkGreen"]Purpose: [/COLOR] Add Food and Item Select packet. [COLOR="Green"]Difficulty: 2/10[/COLOR] [COLOR="SeaGreen"]Assumed Knowledge: [/COLOR] Copy paste and search skills. [COLOR="Lime"]Classes Modified:[/COLOR] com.rs.net.decoders.WorldPacketDecoder.java, com.rs.game.player.Player [COLOR="PaleGreen"]Tested On(if it applies):[/COLOR] RuneEscape v1.2 (still under desevolpment) [/SIZE] Btw do not forget to add this snipet to fix hp(its realy simple, i doubt you need a tutorial for this): [url]http://www.runelocus.com/forums/showthread.php?49955-RuneEscape-562-Fixing-heal-on-players[/url] First of all lets add select item packet. Step1: Open com.rs.net.decoders.WorldPacketDecoder.java class and look for: [B]private final static int ITEM_DROP_PACKET = 248;[/B] Before or after it add: [CODE] private final static int ITEM_SELECT_PACKET = 66; [/CODE] Step2: Now look for [B]PACKET_SIZES[ITEM_DROP_PACKET] = 8;[/B] Before or after it add: [CODE] PACKET_SIZES[ITEM_SELECT_PACKET] = 8; [/CODE] Step3: Now look for [B]}else if (packetId == ITEM_DROP_PACKET) {[/B] Before it add: [CODE] }else if (packetId == ITEM_SELECT_PACKET) { if(!clicked) { //hack, or server error or client error //player.getSession().getChannel().close(); return; } clicked = false; int interfaceId = stream.readUnsignedShort(); if(player.isDead() || Utils.getInterfaceDefinitionsSize() <= interfaceId) { //hack, or server error or client error //player.getSession().getChannel().close(); return; } if(player.getStopDelay() > System.currentTimeMillis()) return; if(!player.getInterfaceManager().containsInterface(interfaceId)) return; int componentId = stream.readUnsignedShort(); if(componentId == 65535) componentId = -1; if(componentId != -1 && Utils.getInterfaceDefinitionsComponentsSize(interfaceId) <= componentId) { //hack, or server error or client error //player.getSession().getChannel().close(); return; } int itemId = stream.readUnsignedShort(); int slotId = stream.readUnsignedShort128(); if(interfaceId == 149 && componentId == 0) { if(slotId >= 28 || player.getInterfaceManager().containsInventoryInter()) return; Item item = player.getInventory().getItem(slotId); if(item == null || item.getId() != itemId) return; player.stopAll(); if(Foods.eat(player, item, slotId)) return; } [/CODE] Step 4: Before any import or after add: [CODE] import com.rs.game.player.content.Foods; [/CODE] Save the class and close it. Step5: Now open com.rs.game.Player.java class and add: [CODE] private transient long foodDelay;[/CODE]It can be added example after [B]private transient long musicDelay;[/B] Step6: Add these method on end of the file before the last } : [CODE] public void addFoodDelay(long time) { foodDelay = time+System.currentTimeMillis(); } public long getFoodDelay() { return foodDelay; } [/CODE] Step 7: Look for [B]public void reset() {[/B] method and inside it after the bracket({) add: [CODE]foodDelay = 0;[/CODE] Save the class and close it. Step8: Now at package com.rs.game.player.content create a new File called Foods.java Step9: Open it and copy this inside: [CODE] package com.rs.game.player.content; import com.rs.game.Animation; import com.rs.game.item.Item; import com.rs.game.player.Player; public final class Foods { private static enum Food { CRAYFISH(13433, 20), ANCHOVIE(319, 10), SHRIMP(315, 30), SARDINE(325, 40), CHICKEN(2140, 30), MEAT(2142, 30), CAKE(1891, 40, 1893), HALF_CAKE(1893, 40, 1895), BREAD(2309, 50), HERRING(347, 50), MACKEREL(355, 50), TROUT(333, 70), COD(339, 70), PIKE(351, 80), SALMON(329, 90), TUNA(361, 100), LOBSTER(379, 120), BASS(365, 130), SWORDFISH(373, 140), POTATO_WITH_CHEESE(6705, 160), MONKFISH(7946, 160), ANCHOVY_PIZZA(2297, 90, 2299), HALF_ANC_PIZZA(2299, 90), SHARK(385, 200), CAVEFISH(15226, 200), TURTLE(397, 21), PINEAPPLE_PIZZA(2301, 110, 2303), HALF_PINE_PIZZA(2303, 110), MANTA(391, 22), TUNA_POTATO(7060, 160), WILD_PIE(7208, 110, 7210), HALF_WILD_PIE(7210, 110), ROCKTAIL(15272, 230), GARDEN_PIE(7178, 60, 7180), HALF_GARDEN_PIE(7180, 60, 2313), REDBERRY_PIE_FULL(2325, 40, 2333), REDBERRY_PIE_HALF(2333, 40, 2313), MEAT_PIE_FULL(2327, 60, 2331), MEAT_PIE_HALF(2331, 60, 2313), APPLE_PIE_FULL(2323, 70, 2335), APPLE_PIE_HALF(2335, 70, 2313), ADMIRAL_PIE_FULL(7198, 80, 7200), ADMIRAL_PIE_HALF(7200, 80, 2313), SUMMER_PIE_FULL(7218, 110, 7220), SUMMER_PIE_HALF(7220, 110, 2313); private int id, heal, toId; private Food(int id, int heal) { this(id, heal, -1); } private Food(int id, int heal, int toId) { this.id = id; this.heal = heal; this.toId = toId; } } private static Food getFood(int id) { for(Food food : Food.values()) if(id == food.id) return food; return null; } public static boolean eat(Player player, Item item, int slot) { Food food = getFood(item.getId()); if(food == null) return false; if(player.getFoodDelay() > System.currentTimeMillis()) return false; player.addFoodDelay(2250); player.getSkillExecutor().addSkillDelay(4); player.getInventory().getItems().set(slot, food.toId == -1 ? null : new Item(food.toId, 1)); player.getInventory().refresh(slot); int hitpoints = player.getHitpoints(); player.heal(food.heal); player.setNextAnimation(new Animation(829)); player.getPackets().sendGameMessage("You eat the "+item.getDefinitions().getName()+".", true); if(hitpoints < player.getHitpoints()) player.getPackets().sendGameMessage(""It heals some health.", true); return true; } private Foods() { } } [/CODE] Save the class and close it. Step10: Theres no step10. You're done with tutorial. Compile your source and enjoy.
  15. Havoxscape

    Food Eating

    I'm running TKOscape 562 and when I'm attacking an npc and I eat, there's no break in the attack. I'm thinking there's no timer or delay timer or something like that after eating but I really don't know what I would do to fix that. Any help? And was there ever a fix to the item/shop glitch where if you have 10 free spots and the correct amount of money you can get the 10 items for free?
×