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
  • check the step of a quest


    mauricimoo

    Recommended Posts

    Posted

    hello everyone,

    i am trying to make a script for a few quests. it would be very nice if there was a way to check the text when you click on a quest. so you could say: if (questText = "blah blah") {do blah blah blah}. i know that you can check if a quest has started or not with getQuest(), but that isn't what i am looking for. while writing this i realise i could try to use widgets, but please comment your solution anyway.

    thanks

    Posted

    You can use playersettings to check your progress in a step :-)

    i read this: https://dreambot.org/forums/index.php/topic/3911-playersettings-bitwise-operations-and-bitmasks/ and the tutorial computor posted. i think i kinda get it how this works, but how do i use playersettings to check at which step of the quest the player is at? i think i'll look into some open source quest scripts to see how they did it.

    Posted

    using bitwise operations you can do things like

    if((getPlayerSettings().getConfig(yourQuestConfig)&someValue)==anotherValue){do something;}

     

    you can get the quest config by watching your player settings tab in your game debugger (in the client, tools->game debugger then click player settings tab)

    Then as you do the quest, the values will change. Write them down and what steps you had to take in order for it to change.

    Using bitwise calculations just cleans off any unnecessary bits in the config, as there are configs that share their values with other things in rs (or maybe not, who knows)

    Posted

    ^that and yes there are. For instance all the values for percentages of zeah house are in 2 player settings each a set of 10 bits

    Posted

    using bitwise operations you can do things like

    if((getPlayerSettings().getConfig(yourQuestConfig)&someValue)==anotherValue){do something;}

     

    you can get the quest config by watching your player settings tab in your game debugger (in the client, tools->game debugger then click player settings tab)

    Then as you do the quest, the values will change. Write them down and what steps you had to take in order for it to change.

    Using bitwise calculations just cleans off any unnecessary bits in the config, as there are configs that share their values with other things in rs (or maybe not, who knows)

    thanks! i was wondering how i had to get the questconfig IDs, but now i know. i think i should be able to make it working now.

    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.