SRL Archive - Help

Superior Banking Method?


KFC

2012-01-01 13:38:40

Im new to this whole "scripting thing" and i was wondering if someone could recommend a better banking method than the one i have now? It messes up sometimes and is at soul wars bank. it clicks the silver rim of the chest.





Procedure StartScript;

Var
store, x, y, a, b: Integer;

Begin

store := DTMFromString('mAAEAAHic42FgYBADYgEgFmKAACUg5gdiXiCWBmI5qBpuJFoQqpYLiFmAmBGI+aA0DxALAzE7VE2isSADCwsTGMMAjM/NxQnHMDERBtIAI4kYGQAA2DICrg==');

FindObj(x, y, 'se', 12303564, 1);
StatsGuise('Found Bank.')
Case Random(4) Of

0:Begin

Mouse(x, y, 0, 0, true);
Wait(500);

End;

1:Begin

Mouse(x, y, 0, 0, true);
Wait(500);
End;

2:Begin

Mouse(x, y, 0, 0, false);
WaitOption('se', 500+Random(132));
Wait(500);

End;

3:Begin

Mouse(x, y, 0, 0, true);
Wait(500);

End;

End;

Begin

Wait(500);
WriteLn('');
FindDTM(store, a, b, MSX1, MSY1, MSX2, MSY2);
StatsGuise('Opened Bank, Depositing Items.');
Mouse(a, b, 6, 6, true);
Wait(1000+Random(421));
Mouse(491, 35, 3, 3, true);
Wait(1500+Random(323));
End;

FreeDTM(store);

End;



store is the Deposit All Button in the bank.

Kyle Undefined

2012-01-01 13:42:38

What bank are you using? Look in bank.scar and see if the bank is supported.

KFC

2012-01-01 13:45:30

From: Kyle Undefined
What bank are you using? Look in bank.scar and see if the bank is supported.


From: KFC
is at soul wars bank.

:thumbsup:

Kyle Undefined

2012-01-01 13:49:23

Haha oops, sorry, eyes jumped to the code first :p

You could do a FindColorSpiralTolerance() and that would be easier.

KFC

2012-01-01 13:56:06

From: Kyle Undefined
Haha oops, sorry, eyes jumped to the code first :p

You could do a FindColorSpiralTolerance() and that would be easier.


yeah but then if it finds a different thing (i dont know how to check uptext other than when its included in the code like findobj Q_Q, if i did, you my good sir would be my hero)

And also the problem is it misses the chest sometimes. and whenever i pick a different color and stuff it moves the mouse around because alot of nearby things are similar in color.

Failure

2012-01-01 14:00:09

If IsUpTextEx('se', 'use' 'ank') then
GetMousePos(x, y);

Not sure about it, could also be UpChars?

http://docs.villavu.com/srl-5/srlref.html

http://docs.villavu.com/srl-5/text.html

Kyle Undefined

2012-01-01 14:03:32

You could do something like this: http://puu.sh/c7WC

I used auto color to get a color of an object, then used that color to make a TPA of colors found. Then, I sort them by the ones closest to my character, loop through the points, get the middle of the point and move my mouse over the object.

Then you could use uptext to make sure that's the right object.

shnk

2012-01-01 17:01:17

if your not rotating your camera then you could use findobjex :D

KFC

2012-01-02 02:38:38

thanks all, ill try all of these and see which works best :D

Heya69

2012-01-02 08:56:55

From: Kyle Undefined
What bank are you using? Look in bank.scar and see if the bank is supported.


Where is bank.scar?

WT-Fakawi

2012-01-02 09:01:12

From: Heya69
Where is bank.scar?


SRL/Core/