nicerman1
2014-12-28 06:52:18
Hello
This is my first post and i'm kinda new to scripting. So i wanted to make a simple tanner bot.
Just walk to bank,
deposit all stuff,
get dragonhides,
walk to tanner,
find tanner
trade tanner
and repeat the proces
all this is done in al kharid
I've covered everything except finding the tanner: the problem is the tanner is moving constantly. I tried to track her with colors but they are all so similar. If i can find her succesfully, the rest works perfectly but just the finding tanner part is really unreliable, like somtimes it does find her, but not always.
Here is my code:
So could someone please help me?
Greetings Nicerman1
P.S: I know my code probably isn't efficient and i don't have failsafes, but this was just a concept i wanted to try and i'm not planning to release this for public use, just personal use. Also english isn't my native language so excuse me for language errors.
This is my first post and i'm kinda new to scripting. So i wanted to make a simple tanner bot.
Just walk to bank,
deposit all stuff,
get dragonhides,
walk to tanner,
find tanner
trade tanner
and repeat the proces
all this is done in al kharid
I've covered everything except finding the tanner: the problem is the tanner is moving constantly. I tried to track her with colors but they are all so similar. If i can find her succesfully, the rest works perfectly but just the finding tanner part is really unreliable, like somtimes it does find her, but not always.
Here is my code:
program DragonHideTanner;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}
procedure MinimapBanking()
var
MinimapBox: TBox;
LocationBank: TPoint;
LocationTannerIcon: TPoint;
x1,y1,x2,y2 : Integer;
begin
MinimapBox:= intToBox(474,12, 797,200);
minimap.findSymbol( LocationBank, MM_SYMBOL_BANK, MinimapBox);
mouse(LocationBank,MOUSE_LEFT);
wait(randomRange(25000,26500));
mainscreen.findObject(x1, y1, 1843477, 11, ['ank'], MOUSE_RIGHT);
chooseOption.select(['ank']);
wait(randomRange(1500,3000));
bankScreen.quickDeposit(QUICK_DEPOSIT_INVENTORY);
wait(randomRange(1000,1750));
bankScreen.withdraw(1, 28, ['reen']) ;
wait(randomRange(500,1000));
bankScreen.close();
wait(randomRange(500,1000));
minimap.findSymbol(LocationTannerIcon ,MM_SYMBOL_TANNER,MinimapBox);
mouse(LocationTannerIcon,MOUSE_LEFT);
wait(randomRange(25000,26500));
mainscreen.findObject(x2, y2, 3756451, 10, ['llis'], MOUSE_RIGHT);
wait(randomRange(500,1000));
chooseOption.select(['an']);
wait(randomRange(500,1250));
productionscreen.clickStart(true);
wait(randomRange(500,2000));
end
begin
clearDebug();
setupSRL();
repeat
MinimapBanking();
until false
endSo could someone please help me?
Greetings Nicerman1
P.S: I know my code probably isn't efficient and i don't have failsafes, but this was just a concept i wanted to try and i'm not planning to release this for public use, just personal use. Also english isn't my native language so excuse me for language errors.