Jump to content
Wanted

OSI Additions 12/8/11 MMDot, bmp/dtmInv functions and more!

Recommended Posts

https://github.com/OSI1/OSI1/commit/0269fc870ead19eb025ce27d729cc0571b11a533

https://github.com/OSI1/OSI1/commit/a8b7bd4e42a2399d2a7e4cea1a7ed8e3ef6aa23c

 

Horay for a productive day and I still have another 5 hours to do more productive things for OSI!

 

We now have plenty of MM Dot functions that work super accurate!

 

Here's a test:

 

21al9uu.png

 

(43ms even on world 2 GE)

 

and if that's not good enough for you there's one that accounts for some (very very rare) overlapping in Extended\Map.scar (x2 as slow but still! :D)

 

List of new Map.scar stuff

 

 * function FindMMDotsEx(ColorDiffs: TIntegerArray): T2DPointArray;
    By: Wanted
* function FindMMDots(cldDot: Integer): TPointArray;
    By: Wanted
* function CountMMDotsEx2(ColorDiffs: TIntegerArray): TIntegerArray;
    By: Wanted
* function CountMMDotsEx(ColorDiffs: TIntegerArray): Integer;
    By: Wanted
* function CountMMDots(cldDot: Integer): Integer;
    By: Wanted

 

+ The Overlap one in Extended.

 

Here's the globals you can use with them

 

  cldWhiteDot     = 1907997;      // December 8, 2011    Wanted          688
 cldYellowDot    = 4369;         // December 8, 2011    Wanted          688
 cldRedDot       = 23;           // December 8, 2011    Wanted          688
 cldGreenDot     = 5376;         // December 8, 2011    Wanted          688
//cldBlueDot      = 1907997;      // December 8, 2011    Wanted          688    // FIX
//cldPurpleDot    = 1907997;      // December 8, 2011    Wanted          688    // FIX

 

or your own custom numbers xD. I still need to collect the data for Blue and purple dot =/ ... but who uses those xD?

 

For those of you who like to use ClickMouse or ClickMouseMid in SMART you now can thanks to the added wrappers I put in there.

 

Lastly, here are some dtm/bmp inventory functions

 

 * function FindInvItemsDTM(dtm: Integer): TIntegerArray;
    By: Wanted
* function CountInvItemsDTM(dtm: Integer): Integer;
    By: Wanted
* function FindInvItemsBMP(bmp, Tol: Integer): TIntegerArray;
    By: Wanted
* function CountInvItemsBMP(bmp, Tol: Integer): Integer;
    By: Wanted

 

These return slot index(es) so you can use them easily with things like DepositExclude, DropItems(FindInvItemsDTM(....)) etc.. this is a new very powerful structure for script writing I have been planning for quite some time :)

 

Enjoy all these updates and more like it soon to follow!

 

Now working on some object and bank stuff.

Edited by Wanted
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...