Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Repeated crafter for ClickCraft
- //Allows you to set up the recipe ones and then reuse it.
- function moreCraft(count) {
- var _store=[tabl[0].slice(0),tabl[1].slice(0),tabl[2].slice(0)];
- var lastClick=-1;
- function select(i) {
- if ( lastClick==i) return;
- lastClick = i;
- $('#inv'+i).click();
- }
- select(4);
- select(17);
- craft();
- for (var i=0; i<3; i++) {
- for (var j=0; j<3; j++) {
- if (_store[i][j]!=0) {
- select(_store[i][j]);
- $( '#' + (i+1) + '_' + (j+1) ).click();
- }
- }
- }
- if (count!== undefined && count>1) {
- setTimeout(function(){moreCraft(count-1);}, 100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement