kolton/d2bot-with-kolbot — pull request #72 by frickaline (2014-03-27 21:15:37+00:00)
Title: Update Storage.js

Sorry, meant this, ignore the other CI, and please let me know why github screws up my checkins. All those diffs aren't mine ><

//Item already on the cursor.
if (me.itemoncursor && item.mode !== 4) {
return false;
}

//Pick to cursor if not already.
//item.toCursor();

//Loop five times to try and pick up the item.
for (n = 0; n < 5; n += 1) {
if (me.itemoncursor) break;
item.toCursor();
}

// return false if we could not pick up the item
if (!me.itemoncursor) {
return false;
}