Wanted Posted November 25, 2011 Share Posted November 25, 2011 (edited) https://github.com/OSI1/OSI1/commit/207e28482eb9a5cbd199922607be0a297ef0b235 Edited Mouse/DragItem to return true if item exists New Drop functions: * function GetDropPattern(Which: Integer): TIntegerArray; By: Wanted * function DropItem(Slot: Integer): Boolean; By: Wanted * function DropAllExcludeEx(Exclude, Pattern: TIntegerArray): Integer; By: Wanted * function DropAllExclude(Exclude: TIntegerArray): Integer; By: Wanted * function DropItemsEx(Slots, Pattern: TIntegerArray): Integer; By: Wanted * function DropItems(Slots: TIntegerArrary): Integer; By: Wanted * function DropAll: Integer; By: Wanted Here's the drop patterns / Inv slot visuals: Nothing conclusive in the benchmark (normal mouse speed) program New; {$DEFINE RS2} {$DEFINE OSI_Color_Anti_Randoms} //{$DEFINE SMART} // Comment out to disable SMART {$I OSI\OSI.scar} procedure ScriptTerminate; begin FreeOSI; end; var T: LongInt; begin SetUpOSI; T := GetSystemTime; //WriteLn(DropAllExcludeEx([], GetDropPattern(0))); // 24258 //WriteLn(DropAllExcludeEx([], GetDropPattern(1))); // 24102 //WriteLn(DropAllExcludeEx([], GetDropPattern(2))); // 25896 //WriteLn(DropAllExcludeEx([], GetDropPattern(3))); // 24258 //WriteLn(DropAllExcludeEx([], GetDropPattern(4))); // 23993 WriteLn(DropAllExcludeEx([], GetDropPattern(5))); // 24929 WriteLn(GetSystemTime - T); end. Those all will probably average out to 24 seconds (at normal mouse speed) I've set the default drop pattern to 2 (don't worry it shows slowest, but not by much and the average should theoretically be higher, also note that this drop pattern requires the less work for a human to do is I believe its the most commonly used) but feel free to use which ever you want or post feedback concerning that... and you can always use custom patterns. Enjoy Edited November 25, 2011 by Wanted Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted November 25, 2011 Share Posted November 25, 2011 Nice job. Now that I think about it I use #4 legit. Guess I'm being inefficient? Edit: Wait! That one came out the fastest. Damn I'm good. Quote Link to comment Share on other sites More sharing options...
Wanted Posted November 25, 2011 Author Share Posted November 25, 2011 Nice job. Now that I think about it I use #4 legit. Guess I'm being inefficient? Not with your time, maybe just your stress on your hand I use that one normally too. ---------- Post added at 09:39 PM ---------- Previous post was at 09:26 PM ---------- Don't get too excited, they'll all probably average out to about 24 seconds, they're less than 1 second difference with just that 1 run, but I'm sure that will even out even more once they are extensively benchmarked. Quote Link to comment Share on other sites More sharing options...
Amberleaf Posted November 26, 2011 Share Posted November 26, 2011 Very nice indeed, I'll be using this for my wood cutting script ;D Quote Link to comment Share on other sites More sharing options...
slacky Posted January 7, 2012 Share Posted January 7, 2012 (edited) I'm just waiting for the fix, so I can drop at all... Can't get the latest update from GitHub- So what's the point of using GitHub, ehn I cant Clone the latest..? Edited January 9, 2012 by slacky Quote Link to comment Share on other sites More sharing options...