Isolate Posted May 11, 2014 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....
NotoriousPP Posted May 11, 2014 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
Extreme Scripts Posted May 11, 2014 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 ==
Isolate Posted May 11, 2014 Author 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
TheScrub Posted May 11, 2014 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/