Log in

View Full Version : Superior Banking Method?



KFC
01-01-2012, 06:38 PM
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('mAAEAAHic42FgYBADYgEgFmKAACUg5gdiXi CWBmI5qBpuJFoQqpYLiFmAmBGI+aA0DxALAzE7VE2isSADCwsT GMMAjM/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
01-01-2012, 06:42 PM
What bank are you using? Look in bank.scar and see if the bank is supported.

KFC
01-01-2012, 06:45 PM
What bank are you using? Look in bank.scar and see if the bank is supported.


is at soul wars bank.

:thumbsup:

Kyle Undefined
01-01-2012, 06:49 PM
Haha oops, sorry, eyes jumped to the code first :p

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

KFC
01-01-2012, 06:56 PM
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
01-01-2012, 07:00 PM
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
01-01-2012, 07:03 PM
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
01-01-2012, 10:01 PM
if your not rotating your camera then you could use findobjex :D

KFC
01-02-2012, 07:38 AM
thanks all, ill try all of these and see which works best :D

Heya69
01-02-2012, 01:56 PM
What bank are you using? Look in bank.scar and see if the bank is supported.

Where is bank.scar?

WT-Fakawi
01-02-2012, 02:01 PM
Where is bank.scar?

SRL/Core/