Results 1 to 11 of 11

Thread: Need testing for this close squeal of fortune proc.

  1. #1
    Join Date
    Dec 2011
    Location
    U.S.A.
    Posts
    635
    Mentioned
    5 Post(s)
    Quoted
    249 Post(s)

    Default Need testing for this close squeal of fortune proc.

    Simba Code:
    Procedure CloseSqueal;
    var
    x, y, squealDTM, SquealBitmap:integer;
    begin
      SquealDTM := DTMFromString('mwQAAAHic42RgYOhnguBeIJ4KxB1APAWIO6E0iO/LyMDgBsTBjBC2N5TtBsVBQPxthy3DipnTGEzVlRmi/bwZ8uKiGWwMdRkObFrLsH/jWgYXK1MGLqB9hDAjERgOAK3TFB0=');
      SquealBitmap := BitmapFromString(21, 20, 'meJyNlEtME1EUhl2oAcVXIyYuVKRaNYIvCtUyLY4FaUun2CmVzrQUylCBKQItFWl9IIIvCGoapbTgGxOlIWoh8QEJ0o2CxARWRjcu3bpxYSLxH4b4CGpMvtzMzPn/c+45M3dMVX3OE/Gi+hcitPs57Y5Rlf0GTgDXInhCVUQFuHsUdxdozEHGEzVV9ztbptjARLFvzOIdMx55rHd0z6egVCDfHtSV3kFaIX/53V/tjH/ccTQyEHsZ6ukP9US7Iv1dkYcC4QciodnbgSejdj5o4p8gCds0WFQ/VNX+vqT5nbluuPdObM1aYlWy5R8kr81GEn1pL1UZY7wCsDtbP5ir7x3zt0Ngddz8QfE8IGhoPKctbs21Bi31UbXek8+2YSVyHXzN8ZUSm94Y9LRGTt6Pu/3ddrYNWLl2puNxnt2PEATVfKNcWbgnmzVWdqm1btjJwgCRx1W4apFcoTxb1Rlrmv7GP5jWmVsQOtz7lhn5TPBhhbIVAlell6SO62xh9F7g7LE2DOPV5Fsv2hy1SRJTqqxhf14jfXXcNTljuPaGvPLq0OjXjKbB5BQGIQjYkhoNfYo0R2DXsR0YPlKp9T6zhVu+kpKs5mTSUqA4NaIdnyHjM7K6gWVJdOJCDUIQQAYxSXeg9wP0WRMXwRyytXUFlG1pogHdrV9jkaxgtnmfw6t69mVjWQjPYUcIFwVGG8Sw03V9aJzh+9CCytCgOUgvSRI0AF4YUVfqup0RmtzAXBZDWCEjtF7Rjs3j3eETUhsCRI4BUexznblT+ejTZk8MtcBGZ/f2M1GJvBwhCNSkUceeR1H0jiTw5lojWZr6TMX+JYkqaKBEBkwJG05YtA+WZJVraUqOYE9UQZal4WF0BoZ+jE5O1qbvVEAsVvwbEKSlZ+7YyxH6S6juaRtsufHeH/5QcXooU5m7YIE0YbGQ5M8sVkCwJyun2H2rLDBcdmYYpflL0zg1zubXKsqXtotIlcmlMnmqLFO65Sebts5dpO8myEM+3/WPcAn2qr7ylrnTWuQZPVhyS0k1Kw2n/wzVnGcPm/inEOPIYPOinfXH/x/Uwoofy2/2wMR8EJqP68IUdj6bSvjmMQSc+t8Rflw4C2wgLsKdHIcRIxIzwG6uicH+HVCh6UQ=');
      If FindDTM(SquealDTM, x, y, 1, 51, 759, 500, 30) then
      begin
        MMouse(x, y, 3, 3);
        if WaitUptext('elect', 300) then
        ClickMouse2(Mouse_Left);
      end else
      writeln('Did not find Squeal of Fortune DTM');
      If FindBitmapToleranceIn(SquealBitmap, x, y, 1, 51, 759, 500, 30) then
      begin
        MMouse(x, y, 3, 3);
        if WaitUptext('elect', 300) then
        ClickMouse2(Mouse_Left);
      end;
      FreeDTM(SquealDTM);
      FreeBitmap(SquealBitmap);
    end;
    Please inform me of the results. if it works, It should be pretty reliable.

  2. #2
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Wrong section, but looks good. Where is the DTM?
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  3. #3
    Join Date
    Dec 2011
    Location
    U.S.A.
    Posts
    635
    Mentioned
    5 Post(s)
    Quoted
    249 Post(s)

    Default

    The DTM is there, and this has worked for me a few times in a row now. It doesn't find the DTM though. It uses the Bitmap mostly.

  4. #4
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Doesn't FindNormalRandoms close it?

  5. #5
    Join Date
    Dec 2011
    Location
    U.S.A.
    Posts
    635
    Mentioned
    5 Post(s)
    Quoted
    249 Post(s)

    Default

    No, it doesn't. I believe it is broken, so I just made this for anyone looking for a temp fix.

  6. #6
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by Sawyer View Post
    No, it doesn't. I believe it is broken, so I just made this for anyone looking for a temp fix.
    Ok, I know it used to, if you get it working you could probably ask for your fix to be pushed to SRL

  7. #7
    Join Date
    Dec 2011
    Location
    U.S.A.
    Posts
    635
    Mentioned
    5 Post(s)
    Quoted
    249 Post(s)

    Default

    I'm not sure my code is up to the SRL Standards for that

  8. #8
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

    Default

    If it works great. Just be careful - since it searches the whole client for it, there is a higher chance of false positives. That's why I added the second check with the detection method. It was frustrating trying to figure out what was causing my mouse to go crazy at lrc back in the day

  9. #9
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Quote Originally Posted by Sawyer View Post
    The DTM is there, and this has worked for me a few times in a row now. It doesn't find the DTM though. It uses the Bitmap mostly.
    I meant what did you make a dtm of? The x button or what?
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  10. #10
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Element17 View Post
    I meant what did you make a dtm of? The x button or what?
    Looks like it. If you click anywhere else it opens up the spinning wheel.

  11. #11
    Join Date
    Dec 2011
    Location
    U.S.A.
    Posts
    635
    Mentioned
    5 Post(s)
    Quoted
    249 Post(s)

    Default

    Yes, the DTM is the x button. The bitmap works better though.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •