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
  • Checking a player's armor


    TheMcPker

    Recommended Posts

    Hey i have a few small questions about Player's 

     

    1. is it possible to check what armor someone else is wearing? and if so how?

     

    2. How do i check for example what item (string/Id) is in a certain equipment slot

     

     

     

    any help is greatly appriciated  :)

    Link to comment
    Share on other sites

    this is not your thread, are you themcpker, multilogger? wtf ban :johncena:

     

    I'm just confused why you thought he was writing a looter cause he asked how to check what people are wearing.

    Link to comment
    Share on other sites

    If you keep track of what ppl loose on death and their death time/tile you can probably increase profit p/h rather than just looting what you see

    idk if time lost waiting when you could be gathering and who is to say the killer did not pick up all items.

    Link to comment
    Share on other sites

    you can set a timer to when loot will appear and stick arround that area if potential loot value is high

    Yeah that is true but the downside of that is a lot of people pick up valuable items.  Although just getting the food sometimes is a good 10-15k.

    Link to comment
    Share on other sites

    Hey i have a few small questions about Player's 

     

    1. is it possible to check what armor someone else is wearing? and if so how?

     

    2. How do i check for example what item (string/Id) is in a certain equipment slot

     

     

     

    any help is greatly appriciated   :)

     

    Snippet needs some work.

     

    Sample

    private List<String> getOthersEquipment(Player p) {
            List<String> equipmentList = new LinkedList<String>();
            if(p != null) {
                int[] equipment = p.getComposite().getApperance();
                for (int i = 0; i < equipment.length; i++) {
                    if (equipment[i] - 512 > 0)
                        equipmentList.add(ItemDefinition.forId(equipment[i] - 512).getName());
                }
            }
            return equipmentList;
        }
    

    ItemDefinition is from a different api so u will need to find a workround in this API. i cba rlly. Found off-site enjoy

     

     

    Data

    int[] equipment = p.getComposite().getApperance();
    

    Index Order:

    [0] = helmet

    [1] = cape

    [2] = necklace

    [3] = weapon

    [4] = chest

    [5] = shield

    [7] = legs

    [9] = gloves

    [10] = boots

    - Can only grab visible items (no ring or ammo, etc.)

    - Each value from getAppearance() needs to have 512 subtracted from it in order to get the item id

    let me know if it helps :)

    Link to comment
    Share on other sites

    Snippet needs some work.

     

    Sample

    private List<String> getOthersEquipment(Player p) {
            List<String> equipmentList = new LinkedList<String>();
            if(p != null) {
                int[] equipment = p.getComposite().getApperance();
                for (int i = 0; i < equipment.length; i++) {
                    if (equipment[i] - 512 > 0)
                        equipmentList.add(ItemDefinition.forId(equipment[i] - 512).getName());
                }
            }
            return equipmentList;
        }
    

    ItemDefinition is from a different api so u will need to find a workround in this API. i cba rlly. Found off-site enjoy

     

     

    Data

    int[] equipment = p.getComposite().getApperance();
    

    Index Order:

    [0] = helmet

    [1] = cape

    [2] = necklace

    [3] = weapon

    [4] = chest

    [5] = shield

    [7] = legs

    [9] = gloves

    [10] = boots

    - Can only grab visible items (no ring or ammo, etc.)

    - Each value from getAppearance() needs to have 512 subtracted from it in order to get the item id

    let me know if it helps :)

    Nice.

    You could try to use

    new Item(id - 512).getName()

    The Item constructor had 2 other params but I can't remember them and I'm on mobile so :shrug:.

    Link to comment
    Share on other sites

    Nice.

    You could try to use

    new Item(id - 512).getName()

    The Item constructor had 2 other params but I can't remember them and I'm on mobile so :shrug:.

    Item(int itemId, int stack, org.dreambot.core.Instance instance) 

    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.