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

Recommended change from commented out to the uncommented. Writing this out because github seems to mangle my commits for idk what reason. This should be the only code change to the commit.

//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;
}