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
  • Try asking for help in the chatbox
  • How do I pickup noted items only?


    Krugiztar
     Share

    Recommended Posts

    So how do I pickup noted items only?

    I tried using the GroundItem class and doing get closest but after I inizialize the instance of that class, can I use that to check for noted items?

     

    Example

    GroundItems loot = getGroundItems().closest()

    if(loot.Noted)?

    Link to comment
    Share on other sites

    GroundItems loot = getGroundItems().closest(i -> i != null && i.isNoted());
    
    if(loot != null){
       // a noted item was found
    }else{
       // nothing found
    }

    don't feel like it would be needed to have a else here since i assume there will be no other action he wants to perform on a non noted item just seems like unneeded code

     

    also since you already check if i != null the loot != null would also be unneeded

    Edited by TheMcPker
    Link to comment
    Share on other sites

    don't feel like it would be needed to have a else here since i assume there will be no other action he wants to perform on a non noted item just seems like unneeded code

     

    also since you already check if i != null the loot != null would also be unneeded

     

    just added the else so he understands. Even if you null check in the filter you still need to null check the item comming off the function otherwise there might not be anything around you and it will return something (which is null)

    Link to comment
    Share on other sites

    don't feel like it would be needed to have a else here since i assume there will be no other action he wants to perform on a non noted item just seems like unneeded code

     

    also since you already check if i != null the loot != null would also be unneeded

    loot can still be null even though you null check the filter

    Link to comment
    Share on other sites

    What kind of items don't?

    Item 272 certed form id is 2478
    Item 273 certed form id is 2479
    Item 600 certed form id is 11655
    Item 1724 certed form id is 3852
    Item 2025 certed form id is 9565
    Item 2164 certed form id is 9585
    Item 2165 certed form id is 9586
    Item 2166 certed form id is 9587
    Item 2202 certed form id is 9588
    Item 2997 certed form id is 3048
    Item 3053 certed form id is 3055
    Item 3054 certed form id is 3056
    Item 3095 certed form id is 3115
    Item 3096 certed form id is 3116
    Item 3097 certed form id is 3117
    Item 3098 certed form id is 3118
    Item 3099 certed form id is 3119
    Item 3100 certed form id is 3120
    Item 3101 certed form id is 3121
    Item 3122 certed form id is 3134
    Item 3472 certed form id is 3668
    Item 3473 certed form id is 3669
    Item 3474 certed form id is 3670
    Item 3475 certed form id is 3671
    Item 3476 certed form id is 3672
    Item 3477 certed form id is 3673
    Item 3478 certed form id is 3674
    Item 3479 certed form id is 3675
    Item 3480 certed form id is 3676
    Item 3485 certed form id is 3677
    Item 4224 certed form id is 4235
    Item 4600 certed form id is 4612
    Item 5001 certed form id is 5005
    Item 5002 certed form id is 5006
    Item 5003 certed form id is 5007
    Item 5075 certed form id is 20783
    Item 5370 certed form id is 12941
    Item 5371 certed form id is 12942
    Item 5372 certed form id is 12943
    Item 5373 certed form id is 12944
    Item 5374 certed form id is 12945
    Item 5496 certed form id is 12946
    Item 5497 certed form id is 12947
    Item 5498 certed form id is 12948
    Item 5499 certed form id is 12949
    Item 5500 certed form id is 12950
    Item 5501 certed form id is 12951
    Item 5502 certed form id is 12952
    Item 5503 certed form id is 12953
    Item 5574 certed form id is 5611
    Item 5575 certed form id is 5612
    Item 5576 certed form id is 5613
    Item 5732 certed form id is 6060
    Item 5935 certed form id is 6124
    Item 6128 certed form id is 6175
    Item 6129 certed form id is 6176
    Item 6130 certed form id is 6177
    Item 6332 certed form id is 8836
    Item 6523 certed form id is 6535
    Item 6524 certed form id is 6536
    Item 6525 certed form id is 6537
    Item 6526 certed form id is 6538
    Item 6527 certed form id is 6539
    Item 6528 certed form id is 6540
    Item 6562 certed form id is 6726
    Item 6563 certed form id is 6727
    Item 6667 certed form id is 6723
    Item 6809 certed form id is 6813
    Item 6812 certed form id is 6816
    Item 6962 certed form id is 6968
    Item 7158 certed form id is 7407
    Item 7159 certed form id is 7161
    Item 7222 certed form id is 7231
    Item 7223 certed form id is 7232
    Item 7224 certed form id is 7233
    Item 7225 certed form id is 7234
    Item 7230 certed form id is 7235
    Item 7398 certed form id is 7401
    Item 7399 certed form id is 7402
    Item 7400 certed form id is 7403
    Item 8924 certed form id is 8998
    Item 8925 certed form id is 8999
    Item 8926 certed form id is 9000
    Item 8927 certed form id is 9001
    Item 8928 certed form id is 9002
    Item 9003 certed form id is 9014
    Item 9004 certed form id is 9015
    Item 9418 certed form id is 11275
    Item 9419 certed form id is 11276
    Item 9665 certed form id is 9701
    Item 9735 certed form id is 9738
    Item 9843 certed form id is 9868
    Item 9844 certed form id is 9869
    Item 9845 certed form id is 9870
    Item 9846 certed form id is 9871
    Item 9847 certed form id is 9872
    Item 9848 certed form id is 9873
    Item 9849 certed form id is 9874
    Item 9850 certed form id is 9875
    Item 9851 certed form id is 9876
    Item 9852 certed form id is 9877
    Item 9853 certed form id is 9878
    Item 9854 certed form id is 9879
    Item 9855 certed form id is 9880
    Item 9856 certed form id is 9881
    Item 9857 certed form id is 9882
    Item 9858 certed form id is 9883
    Item 9859 certed form id is 9884
    Item 9860 certed form id is 9885
    Item 9861 certed form id is 9886
    Item 9862 certed form id is 9887
    Item 9863 certed form id is 9888
    Item 9864 certed form id is 9889
    Item 9865 certed form id is 9890
    Item 9866 certed form id is 9891
    Item 9867 certed form id is 9892
    Item 10146 certed form id is 10160
    Item 10147 certed form id is 10161
    Item 10148 certed form id is 10162
    Item 10149 certed form id is 10163
    Item 10828 certed form id is 10843
    Item 11061 certed form id is 11064
    Item 11928 certed form id is 11945
    Item 11929 certed form id is 11946
    Item 11930 certed form id is 11947
    Item 11931 certed form id is 11948
    Item 11932 certed form id is 11949
    Item 11933 certed form id is 11950
    Item 13652 certed form id is 20848
    
    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    ×
    ×
    • 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.