SRL Archive - OSR Help

Find the ExitSquealOfFortune not working?


Sawyer

2013-03-21 07:16:27

Title. It seems to not work for me.

litoris

2013-03-21 07:18:11

Seems like most SOF-related functions are broken… It can't claim a SOF ticket, for example, which screws up my script when banking.

Sawyer

2013-03-21 07:19:15

Ah. Maybe I should make my own then…

litoris

2013-03-21 07:23:25

If you make your own, make sure you post it somewhere, it could be committed into the include.

Sawyer

2013-03-21 07:24:26

Alright. I gotta wait until i get more spins first then :p

Justin

2013-03-21 07:24:38

Are you able to post some images?

xtrapsp

2013-03-21 07:57:29

Doesn't the DTM just need changing?

kyleinkman

2013-03-21 08:03:04

im sure you could just check for the color of the green guy and if you see the color you could just click the x, somthing simple like
var
a,b:integer;
if FindColorTolerance(a,b,(squeel color),x-(where you wanna look for him),y-(where you wanna look for him),x+(where you wanna look for him),y+(where you wanna look for him),15) then
begin
mousebox(#,#-50 ,#,#-50 ,mouse_left); //the coords for the little x
end else
(rest of script)

(ps this is just a cheap and dirty way to do it if you dont know how to use dtms or bmps ect)

xtrapsp

2013-03-21 09:32:02

From: kyleinkman
im sure you could just check for the color of the green guy and if you see the color you could just click the x, somthing simple like
var
a,b:integer;
if FindColorTolerance(a,b,(squeel color),x-(where you wanna look for him),y-(where you wanna look for him),x+(where you wanna look for him),y+(where you wanna look for him),15) then
begin
mousebox(#,#-50 ,#,#-50 ,mouse_left); //the coords for the little x
end else
(rest of script)

(ps this is just a cheap and dirty way to do it if you dont know how to use dtms or bmps ect)


Problem with this is that he can appear anywhere on the screen… so if something else has a similar colour that'l be clicked instead… Maybe a DTM or Bitmap?

Ashaman88

2013-03-21 09:37:51

From: xtrapsp
Problem with this is that he can appear anywhere on the screen… so if something else has a similar colour that'l be clicked instead… Maybe a DTM or Bitmap?


Yeah the way it worked before was fine - Are we 100% sure it isn't working for everyone?

Sawyer

2013-03-21 09:37:53

I'm thinking about making my own using DTMs and Bitmaps.

Kevin

2013-03-21 09:58:12

Right now it works ~60% of the time for me and 40% of the time it will fail.

xtrapsp

2013-03-21 10:44:01

From: Ashaman88
Yeah the way it worked before was fine - Are we 100% sure it isn't working for everyone?


I've noticed it not working recently but I just ignored it haha

kyleinkman

2013-03-21 16:04:24

From: xtrapsp
Problem with this is that he can appear anywhere on the screen… so if something else has a similar colour that'l be clicked instead… Maybe a DTM or Bitmap?


wierd he always shows up in my inventory when i get him.

xtrapsp

2013-03-21 16:17:10

From: kyleinkman
wierd he always shows up in my inventory when i get him.


Drag it somewhere log out and back in

Element17

2013-03-21 20:25:19

DTM := DTMFromString('mbQAAAHicY2VgYJjBxMAwCYjnAvE8KPsQIwPDbig+DsQngPj7TluGg5vXMezftI7BwcyIwcZQl+E/UD8XGmbEgsEAAC6zD28=');

DTM I made of the x button…not sure if that was what you guys needed.

Sawyer

2013-03-21 22:16:24

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;
This works for me.

The Mayor

2013-03-21 23:07:45

ExitSquealOfFortune(); seems to work for me just fine.

Sawyer

2013-03-23 13:08:13

Maybe I am doing it wrong.