Jump to content

API Question


Isolate

Recommended Posts

Here a little snippet:

	ArrayList<Integer> configs = new ArrayList<Integer>();	

        @Override
	public int onLoop() throws InterruptedException {		
                if(configs.size() == 0) {
			log("Start! Now click the pause button!");
			for(int index = 0; index < 2000; index++) {
				int config = client.getConfig(index);
				configs.add(config);
			}
		} else {
			for(int index = 0; index < 2000; index++) {
				int config = client.getConfig(index);
				int sConfig = configs.get(index);
				if(config != sConfig) {
					log(index + " = " + sConfig  + " : " + config);
				}
			}
			log("End!");
			configs = new ArrayList<Integer>();
		}
		
		return 3000;
	}

With this snippet you can get the changing config numbers and values.

Start the script wait until you can see Start! in the log then click instantly pause script.

Then you must change anything for example you activate running. After that you click on continue script and the script will

give you an output with the numbers. 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...