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
  • new frustrated scripter searching for help


    zezima247

    Recommended Posts

    On 4/13/2020 at 7:54 PM, AsBakedAsCake said:

      Sorry, may be a bit brutal - but..          

    if(getBank().isOpen()) {
        getBank().open();
    ^
    Basically here, you're saying if the bank IS open, open bank. Why would you want to open the bank if it was already open?

    You're also not null checking the NPC and looks like you're missing brackets.

    Also why are you using interact.ForceRight? All you need is thegunner.interact("Pickpocket); - no reason to add a forced right click.

    With that being said, looks like you need to look into more scripting tutorials. I feel as if you could use some work on your if/else statements.

    yes is already noticed that, i forgot the "!" symbol. im new on osrs scripting so im still figuring out how if / else is working. java is alot more sensitive then for example PHP in my opinion, because in PHP i can just throw it and it will work. but java in my opinion is alot more structured so i indeed need to work more on if/else.

    i use force right because i thought maybe its smart to use other methodes then the default ones, maybe it will make a difference in ban rate. maybe its stupid but i want to learn everything in the API so use different methodes is not a bad thing right?

    Link to comment
    Share on other sites

    3 hours ago, zezima247 said:

    yes is already noticed that, i forgot the "!" symbol. im new on osrs scripting so im still figuring out how if / else is working. java is alot more sensitive then for example PHP in my opinion, because in PHP i can just throw it and it will work. but java in my opinion is alot more structured so i indeed need to work more on if/else.

    i use force right because i thought maybe its smart to use other methodes then the default ones, maybe it will make a difference in ban rate. maybe its stupid but i want to learn everything in the API so use different methodes is not a bad thing right?

    Don't get me wrong, experimenting with other methods is great. I just didn't see a point in using the forced right click :P

    Is the gunner an attackable NPC? If this is the case, you could just have the script set NPC/Player attack options to hidden. This would make the left click option "Pickpocket".

     

    Link to comment
    Share on other sites

    2 hours ago, AsBakedAsCake said:

    Don't get me wrong, experimenting with other methods is great. I just didn't see a point in using the forced right click :P

    Is the gunner an attackable NPC? If this is the case, you could just have the script set NPC/Player attack options to hidden. This would make the left click option "Pickpocket".

     

    I know bro I didnt take it wrong, im open for any type of help, maybe you can learn me some extra stuff if you have time? And No you can not attack the npc,  only talk and pickpocket.

    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.