Ruffski 3 Share Posted June 19, 2016 Hi, How do you access the parameters passed through via the quick start switch -params as referenced here: http://dreambot.org/forums/index.php/topic/2360-dreambots-quickstart%E2%84%A2/ Thanks in advance, Link to comment Share on other sites More sharing options...
Cardozz 45 Share Posted June 19, 2016 it's literally the whole post explaining how you access them lol. An example of usage for this is:java -jar C:\Users\Nezz\Dreambot\BotData\client.jar -proxy goldfarm1 -script "Pandemic's Fighter" -world 359 -username Nezz -password password1234 -account wc1 -params CowReplace "C:\Users\Nezz\Dreambot\BotData\client.jar" with the path to your client.jar"But what about limiting RAM!"You can add a RAM argument as well, -Xmx255M will limit the client to 255MB, or the equivalent of putting 255 in the field in our loader. You can change it to whatever number you want, as long as it's within your PC's capabilities.So the full cmd would look like:java -Xmx255M -jar C:\Users\Nezz\Dreambot\BotData\client.jar -proxy goldfarm1 -script "Pandemic's Fighter" -world 359 -username Nezz -password password1234 -account wc1 -params Cow Link to comment Share on other sites More sharing options...
Hopewelljnj 46 Share Posted June 20, 2016 I don't think many scripts actually take params. Actually to be honest I'm not sure how they are taken into scripts Link to comment Share on other sites More sharing options...
Dreamlicker 749 Share Posted June 20, 2016 it's literally the whole post explaining how you access them lol. An example of usage for this is: java -jar C:\Users\Nezz\Dreambot\BotData\client.jar -proxy goldfarm1 -script "Pandemic's Fighter" -world 359 -username Nezz -password password1234 -account wc1 -params Cow Replace "C:\Users\Nezz\Dreambot\BotData\client.jar" with the path to your client.jar "But what about limiting RAM!" You can add a RAM argument as well, -Xmx255M will limit the client to 255MB, or the equivalent of putting 255 in the field in our loader. You can change it to whatever number you want, as long as it's within your PC's capabilities. So the full cmd would look like: java -Xmx255M -jar C:\Users\Nezz\Dreambot\BotData\client.jar -proxy goldfarm1 -script "Pandemic's Fighter" -world 359 -username Nezz -password password1234 -account wc1 -params Cow That doesn't explain how you access them at all. The parameters are passed in to the script as an array. Each parameter is another index in the array. so if I did this... java -jar C:\Users\%username%\DreamBot\BotData\client.jar -proxy goldfarm1 -script "Pandemic's Fighter" -world 359 -username Nezz -password password1234 -account wc1 -params seers magic I'd access the things after -params with the array index of 0 and 1. (I think its an array, dont hurt me if not) Link to comment Share on other sites More sharing options...
Cardozz 45 Share Posted June 20, 2016 That doesn't explain how you access them at all. The parameters are passed in to the script as an array. Each parameter is another index in the array. so if I did this... java -jar C:\Users\%username%\DreamBot\BotData\client.jar -proxy goldfarm1 -script "Pandemic's Fighter" -world 359 -username Nezz -password password1234 -account wc1 -params seers magic I'd access the things after -params with the array index of 0 and 1. (I think its an array, dont hurt me if not) oh wait, i got the question wrong lol. Link to comment Share on other sites More sharing options...
Mad 86 Share Posted June 20, 2016 @Override public void onStart(String... strings) { super.onStart(strings); } I would assume thats the array of args Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.