Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Withdrawing Food From The Bank


    Flying Low

    Recommended Posts

    My goal is to withdraw food from the bank. Is there a way that I can simply identify which items are food? (Other than creating a long array of every food name in the game, and checking each item name.)

    Link to comment
    Share on other sites

    Found this on another forum:

    private int foodIDs[] = {315, 316, 319, 320, 325, 326, 329, 330, 333, 334,
     339, 340, 345, 346, 347, 348, 351, 352, 355, 356, 361, 362, 365,
     366, 373, 374, 379, 385, 386, 391, 392, 397, 398, 1552, 1553, 1865,
     1866, 1867, 1868, 1891, 1892, 1893, 1894, 1895, 1896, 1897, 1898,1899,
     1900, 2140, 2141, 2142, 2143, 2289, 2290, 2291, 2292, 2293, 2294, 2295,
     2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2307, 2308, 2309,
     2310, 2323, 2324, 2325, 2326, 2327, 2328, 2331, 2332, 2333, 2334, 2335,
     2336, 2343, 2344, 2878, 2879, 3144, 3145, 3146, 3147, 3228, 3229, 3381,
     3382, 4291, 4292, 4293, 4294, 6703, 6704, 6705, 6706, 7060, 7061, 7068,
     7069, 7086, 7087, 7164, 7164, 7165, 7166, 7167, 7168, 7169, 7170, 7171,
     7172, 7172, 7173, 7173, 7174, 7174, 7175, 7175, 7176, 7177, 7178, 7178,
     7179, 7179, 7180, 7180, 7181, 7181, 7182, 7183, 7184, 7188, 7189, 7190,
     7191, 7192, 7193, 7194, 7195, 7196, 7197, 7198, 7199, 7200, 7201, 7202,
     7203, 7204, 7205, 7208, 7209, 7210, 7211, 7212, 7213, 7214, 7215, 7216,
     7217, 7218, 7219, 7220, 7221, 7228, 7229, 7512, 7515, 7521, 7522, 7523,
     7524, 7525, 7526, 7528, 7530, 7542, 7568, 7569, 7580, 7919, 7920, 7942,
     7943, 7946, 7947, 7989, 7990, 8951, 9475, 9476, 10841, 11328, 11329,
     11330, 11331, 13433, 13714, 14540, 14543, 14825, 14831, 15266, 15267,
     15272, 18111, 18112, 18131, 18132, 18151, 18152, 18171, 18172, 19948,
     19949, 20111, 20112, 20113, 20179, 20181, 20182, 20205, 20206, 20207,
     23060, 23061, 23062, 23063, 23075, 75273};
    
    

    I don't think you can check if the item is a food or not by just checking the name in the bank. Normally you'd filter out the foods by the action "Eat", but since that action doesn't exist in the bank you'll be left blank on that one.

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.