mauricimoo 2 Posted September 15, 2016 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
Stormscythe 263 Posted September 15, 2016 You can use playersettings to check your progress in a step :-)
mauricimoo 2 Author Posted September 15, 2016 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.
Nuclear Nezz 2094 Posted September 15, 2016 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)
Hopewelljnj 46 Posted September 15, 2016 ^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
mauricimoo 2 Author Posted September 16, 2016 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.