tk8878
2011-11-20 11:52:12
I want to make my bot bank at a chest in soulwars I can only get it to bank at a npc.
2011-11-20 11:52:12
2011-11-20 13:02:37
function FindChest: Boolean;
var mX, mY, Tries : Integer;
begin
if (not(LoggedIn)) then Exit;
FindNormalRandoms;
if FindObjEx(mX, mY, ['ank', 'hest'], ['0000000', '0000000'], 0, 50, MSX1,
MSY1, MSX2, MSY2) then
begin
Mouse(mX, mY, 0, 0, True);
Wait(Random(1000));
// Add more stuff here like checking for the bank screen and such:
end;
end; 2011-11-20 13:15:20
2011-11-20 13:28:16
From: [Nathan]
TPAs are nice and all, and definitely have a useful purpose, but for something as static as a chest, completely unnecessary. i've used something similar to what you've posted for ~ 30 hours (not in a single run) without a single messup of the openBank method. Just because something is simple doesn't make it bad. Though I tend to feel an anti-simple sentiment on these forums…
2011-11-20 13:51:09
From: RISK
I don't agree. I believe that if you understand something more advanced than what you previously knew, why not use it to your advantage? Practice makes perfect.
Yes, sometimes simplicity is better. But TPAs are just more accurate and efficient than normal methods. But to each their own, I suppose.
Thank you for sharing your opinion.