Isolate Posted May 11, 2014 Share Posted May 11, 2014 can someone give me a quick line of how to use configs, i assumed: if(client.getConfig(int).getValue(int) == int){ //do } but that doesnt exist.... Link to comment Share on other sites More sharing options...
NotoriousPP Posted May 11, 2014 Share Posted May 11, 2014 can someone give me a quick line of how to use configs, i assumed: if(client.getConfig(int).getValue(int) == int){ //do } but that doesnt exist.... You almost had it! if(client.getConfig(index) == int){ //Do amazing shit } getConfig returns a int, so you just need a == 1 Link to comment Share on other sites More sharing options...
Extreme Scripts Posted May 11, 2014 Share Posted May 11, 2014 You almost had it! if(client.getConfig(index) == int){ //Do amazing shit } getConfig returns a int, so you just need a == Link to comment Share on other sites More sharing options...
Isolate Posted May 11, 2014 Author Share Posted May 11, 2014 You almost had it! if(client.getConfig(index) == int){ //Do amazing shit } getConfig returns a int, so you just need a == yay no i can finish my quest thanks Link to comment Share on other sites More sharing options...
TheScrub Posted May 11, 2014 Share Posted May 11, 2014 if((client.getConfig(index) & BITMASK ) == x){// most configs will use a bitmask look at some of my snippets on the forum} this class uses configs to determine how many of item is inside the leprechaun http://osbot.org/forum/topic/45485-farming-leprechaun-toolshed/ Link to comment Share on other sites More sharing options...