SRL Archive - General Botting Help

Finding Tanner


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:
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
end

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.

cosmasjdz

2014-12-28 07:42:15

From: nicerman1
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:
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
end

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.


Tanner photo could be helpfull. I quess it is in canifis? cause dont think in other locations you see tanner while standing in a bank. You can always use custom tpa/atpa functions. Filter them by lenghts, heights, widths, search using nearby colors. or stuff like tpa inside tpa. There is alot of ways but no photo is no way to help, especially when my accounts dont have access to canifis :)

nicerman1

2014-12-28 09:40:11

yea sorry, i should have included a picture:
[ATTACH=CONFIG]24675[/ATTACH]
so i'm in al kharid and i extended my minimap so i can see both the tanner icon and the bank icon on the minimap. And the bot can just find the icons and go to it. So the bot finds the tanner icon and goes to the house. The bot is in the house, but how could i find the tanner herself? All the colors look the same and i don't know what to do. And the tanner keeps moving so i can't go to a fixed spot…. :(

cosmasjdz

2014-12-28 09:51:46

From: nicerman1
yea sorry, i should have included a picture:
[ATTACH=CONFIG]24675[/ATTACH]
so i'm in al kharid and i extended my minimap so i can see both the tanner icon and the bank icon on the minimap. And the bot can just find the icons and go to it. So the bot finds the tanner icon and goes to the house. The bot is in the house, but how could i find the tanner herself? All the colors look the same and i don't know what to do. And the tanner keeps moving so i can't go to a fixed spot…. :(


First mistake is you on high graphics. everything is much more dificult than in the lowest graphic settings. Also i think its boots look different You can try use autocolor aid tool to make custom functions using colors. Link is here https://villavu.com/forum/showthread.php?t=26944&highlight=auto+color+aid

nicerman1

2014-12-28 11:16:23

ok so i changed it and i'm now playing around with the auto color tool

nicerman1

2014-12-28 11:47:14

Haven't had succes yet, even with changing my graphics. I'm really annoyed because the rest of the script works well but if the hides don't get tanned it isn't really usefull :/ . Is there btw a good guide for this autocolor aid? As said, i'm really new to this

cosmasjdz

2014-12-28 11:56:25

From: nicerman1
ok so i changed it and i'm now playing around with the auto color tool


Ok i am going try to make some working function. It is small challenge and i like challenges :)

try searching some tpa/ atpa guides in this forum, functrions like findcolorspiraltolerance() use aca generated color numbers and hue, sat modifiers.

cosmasjdz

2014-12-28 13:00:54

From: nicerman1
Haven't had succes yet, even with changing my graphics. I'm really annoyed because the rest of the script works well but if the hides don't get tanned it isn't really usefull :/ . Is there btw a good guide for this autocolor aid? As said, i'm really new to this


First function locates closest yellow dot on the map so it can narrow the search area, making searching way faster, second one counts the search area and paints it, thid one looks for tanner head 16 times and tries to click. Functions quits if it selects tanning screen, or fails 16 times in a row, returns the result false if didnt found and true if everything ok.

function nusitaiko():tpoint; // founds closest yellow don on the minimap and returns its position
var
x, y,i : integer;
TPA: TPointArray;
ATPA: T2DPointArray;
t: tpoint;
k,m: extended;
xv,yv,ml: integer;
begin
result:=point(-1,-1);
findColorsSpiralTolerance(x, y, TPA, 518375, minimap.getbounds(), 8, colorSetting(2,0.23, 0.74));
if length(TPA) < 1 then exit;
ATPA := TPA.toATPA(2, 2);
ATPA.sortFromMidPoint(minimap.getCenterPoint());
t:=minimap.getCenterPoint();
if high(tpa)=-1 then
begin
writeln('No such type dots found on the minimap, quiting procedure');
exit;
end;
SortTPAFrom(TPA, t);
result:=tpa[0];
smartimage.drawCross(tpa[0],5,255);
end;
function elis():tbox;
begin
smartimage.drawbox(inttobox(minimap.pointtomainscreen(nusitaiko()).x-35,minimap.pointtomainscreen(nusitaiko()).y-35,minimap.pointtomainscreen(nusitaiko()).x+35,minimap.pointtomainscreen(nusitaiko()).y+35),255);
result:=inttobox(minimap.pointtomainscreen(nusitaiko()).x-35,minimap.pointtomainscreen(nusitaiko()).y-35,minimap.pointtomainscreen(nusitaiko()).x+35,minimap.pointtomainscreen(nusitaiko()).y+35);
end;
function surastigalva():boolean;
var
x,y:integer;
TPA: TPointArray;
ATPA: T2DPointArray;
i: integer;
begin
result:=false;
for i:=0 to 15 do
begin
wait(350);
findcolorsspiraltolerance(x,y,tpa,3622482,elis(),8,colorSetting(2,0.63, 1.45));
if length(TPA) < 1 then continue;
atpa:= clustertpa(tpa, 4);
atpa.filterBetween(0, 15);
if length(atpa)<1 then continue;
smartImage.debugTPA(TPA,true);
SmartImage.debugATPA(atpa);
mouse(middleTPA(ATPA[0]).x,middleTPA(ATPA[0]).y,mouse_move);
if (isMouseOverText(['Talk','Ellis','llis'], 500))then fastclick(mouse_right);
if chooseoption.optionsexist(['Tan hide','hide']) then
begin
chooseoption.select(['Tan hide','hide']);
result:=true;
exit;
end;
end;
writeln('failed to find tanner');
end;

you must have smartEnableDrawing := True; somewhere before these functions after declaring smart maybe to draw debug.

the setting i used was zoomed all the way out, camera high angle and lowest detail mode. Open GL. Mostly opens in first try and quite quick.

[ATTACH=CONFIG]24679[/ATTACH]

nicerman1

2014-12-28 13:04:02

thanks a lot mate will try ASAP :)

nicerman1

2014-12-28 13:24:32

err i'm asshamed to ask but i get an error on the function line, how do i fix this?

cosmasjdz

2014-12-28 13:28:38

From: nicerman1
err i'm asshamed to ask but i get an error on the function line, how do i fix this?


which error which function?

nicerman1

2014-12-28 13:33:44

with the first function, but i think it's just a really stupid error on my part, it gives an error with the word function. I'll give you my code with yours added (maybe/probably i did it wrong)
program DragonHideTanner;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}


procedure MinimapBanking()
var
MinimapBox: TBox;
LocationBank: TPoint;
LocationTannerIcon: TPoint;

x1,y1,x2,y2 : Integer;
begin
smartEnableDrawing := True;
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, 3953697, 10, ['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));

function nusitaiko():tpoint; // founds closest yellow don on the minimap and returns its position
var
x, y,i : integer;
TPA: TPointArray;
ATPA: T2DPointArray;
t: tpoint;
k,m: extended;
xv,yv,ml: integer;
begin
result:=point(-1,-1);
findColorsSpiralTolerance(x, y, TPA, 518375, minimap.getbounds(), 8, colorSetting(2,0.23, 0.74));
if length(TPA) < 1 then exit;
ATPA := TPA.toATPA(2, 2);
ATPA.sortFromMidPoint(minimap.getCenterPoint());
t:=minimap.getCenterPoint();
if high(tpa)=-1 then
begin
writeln('No such type dots found on the minimap, quiting procedure');
exit;
end;
SortTPAFrom(TPA, t);
result:=tpa[0];
smartimage.drawCross(tpa[0],5,255);
end;
function elis():tbox;
begin
smartimage.drawbox(inttobox(minimap.pointtomainscreen(nusitaiko()).x-35,minimap.pointtomainscreen(nusitaiko()).y-35,minimap.pointtomainscreen(nusitaiko()).x+35,minimap.pointtomainscreen(nusitaiko()).y+35),255);
result:=inttobox(minimap.pointtomainscreen(nusitaiko()).x-35,minimap.pointtomainscreen(nusitaiko()).y-35,minimap.pointtomainscreen(nusitaiko()).x+35,minimap.pointtomainscreen(nusitaiko()).y+35);
end;
function surastigalva():boolean;
var
x,y:integer;
TPA: TPointArray;
ATPA: T2DPointArray;
i: integer;
begin
result:=false;
for i:=0 to 15 do
begin
wait(350);
findcolorsspiraltolerance(x,y,tpa,3622482,elis(),8,colorSetting(2,0.63, 1.45));
if length(TPA) < 1 then continue;
atpa:= clustertpa(tpa, 4);
atpa.filterBetween(0, 15);
if length(atpa)<1 then continue;
smartImage.debugTPA(TPA,true);
SmartImage.debugATPA(atpa);
mouse(middleTPA(ATPA[0]).x,middleTPA(ATPA[0]).y,mouse_move);
if (isMouseOverText(['Talk','Ellis','llis'], 500))then fastclick(mouse_right);
if chooseoption.optionsexist(['Tan hide','hide']) then
begin
chooseoption.select(['Tan hide','hide']);
result:=true;
exit;
end;
end;
writeln('failed to find tanner');
end;
// mainscreen.findObject(x2, y2, 3627709, 18, ['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
end

cosmasjdz

2014-12-28 13:38:48

From: nicerman1
with the first function, but i think it's just a really stupid error on my part, it gives an error with the word function. I'll give you my code with yours added (maybe/probably i did it wrong)
program DragonHideTanner;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}


procedure MinimapBanking()
var
MinimapBox: TBox;
LocationBank: TPoint;
LocationTannerIcon: TPoint;

x1,y1,x2,y2 : Integer;
begin
smartEnableDrawing := True;
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, 3953697, 10, ['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));

function nusitaiko():tpoint; // founds closest yellow don on the minimap and returns its position
var
x, y,i : integer;
TPA: TPointArray;
ATPA: T2DPointArray;
t: tpoint;
k,m: extended;
xv,yv,ml: integer;
begin
result:=point(-1,-1);
findColorsSpiralTolerance(x, y, TPA, 518375, minimap.getbounds(), 8, colorSetting(2,0.23, 0.74));
if length(TPA) < 1 then exit;
ATPA := TPA.toATPA(2, 2);
ATPA.sortFromMidPoint(minimap.getCenterPoint());
t:=minimap.getCenterPoint();
if high(tpa)=-1 then
begin
writeln('No such type dots found on the minimap, quiting procedure');
exit;
end;
SortTPAFrom(TPA, t);
result:=tpa[0];
smartimage.drawCross(tpa[0],5,255);
end;
function elis():tbox;
begin
smartimage.drawbox(inttobox(minimap.pointtomainscreen(nusitaiko()).x-35,minimap.pointtomainscreen(nusitaiko()).y-35,minimap.pointtomainscreen(nusitaiko()).x+35,minimap.pointtomainscreen(nusitaiko()).y+35),255);
result:=inttobox(minimap.pointtomainscreen(nusitaiko()).x-35,minimap.pointtomainscreen(nusitaiko()).y-35,minimap.pointtomainscreen(nusitaiko()).x+35,minimap.pointtomainscreen(nusitaiko()).y+35);
end;
function surastigalva():boolean;
var
x,y:integer;
TPA: TPointArray;
ATPA: T2DPointArray;
i: integer;
begin
result:=false;
for i:=0 to 15 do
begin
wait(350);
findcolorsspiraltolerance(x,y,tpa,3622482,elis(),8,colorSetting(2,0.63, 1.45));
if length(TPA) < 1 then continue;
atpa:= clustertpa(tpa, 4);
atpa.filterBetween(0, 15);
if length(atpa)<1 then continue;
smartImage.debugTPA(TPA,true);
SmartImage.debugATPA(atpa);
mouse(middleTPA(ATPA[0]).x,middleTPA(ATPA[0]).y,mouse_move);
if (isMouseOverText(['Talk','Ellis','llis'], 500))then fastclick(mouse_right);
if chooseoption.optionsexist(['Tan hide','hide']) then
begin
chooseoption.select(['Tan hide','hide']);
result:=true;
exit;
end;
end;
writeln('failed to find tanner');
end;
// mainscreen.findObject(x2, y2, 3627709, 18, ['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
end



Wrong use of functions it should be like this:
program DragonHideTanner;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}
function nusitaiko():tpoint; // founds closest yellow don on the minimap and returns its position
var
x, y,i : integer;
TPA: TPointArray;
ATPA: T2DPointArray;
t: tpoint;
k,m: extended;
xv,yv,ml: integer;
begin
result:=point(-1,-1);
findColorsSpiralTolerance(x, y, TPA, 518375, minimap.getbounds(), 8, colorSetting(2,0.23, 0.74));
if length(TPA) < 1 then exit;
ATPA := TPA.toATPA(2, 2);
ATPA.sortFromMidPoint(minimap.getCenterPoint());
t:=minimap.getCenterPoint();
if high(tpa)=-1 then
begin
writeln('No such type dots found on the minimap, quiting procedure');
exit;
end;
SortTPAFrom(TPA, t);
result:=tpa[0];
smartimage.drawCross(tpa[0],5,255);
end;
function elis():tbox;
begin
smartimage.drawbox(inttobox(minimap.pointtomainscreen(nusitaiko()).x-35,minimap.pointtomainscreen(nusitaiko()).y-35,minimap.pointtomainscreen(nusitaiko()).x+35,minimap.pointtomainscreen(nusitaiko()).y+35),255);
result:=inttobox(minimap.pointtomainscreen(nusitaiko()).x-35,minimap.pointtomainscreen(nusitaiko()).y-35,minimap.pointtomainscreen(nusitaiko()).x+35,minimap.pointtomainscreen(nusitaiko()).y+35);
end;
function surastigalva():boolean;
var
x,y:integer;
TPA: TPointArray;
ATPA: T2DPointArray;
i: integer;
begin
result:=false;
for i:=0 to 15 do
begin
wait(350);
findcolorsspiraltolerance(x,y,tpa,3622482,elis(),8,colorSetting(2,0.63, 1.45));
if length(TPA) < 1 then continue;
atpa:= clustertpa(tpa, 4);
atpa.filterBetween(0, 15);
if length(atpa)<1 then continue;
smartImage.debugTPA(TPA,true);
SmartImage.debugATPA(atpa);
mouse(middleTPA(ATPA[0]).x,middleTPA(ATPA[0]).y,mouse_move);
if (isMouseOverText(['Talk','Ellis','llis'], 500))then fastclick(mouse_right);
if chooseoption.optionsexist(['Tan hide','hide']) then
begin
chooseoption.select(['Tan hide','hide']);
result:=true;
exit;
end;
end;
writeln('failed to find tanner');
end;

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, 3953697, 10, ['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));

surastigalva();

// mainscreen.findObject(x2, y2, 3627709, 18, ['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();
smartEnableDrawing := True;
repeat
MinimapBanking();
until false
end

Also since your map is huge minimap.getbounds may not work or some similar functions…. but we can sort it out. Basicly 2of them are helpers functions and you dont declare functions or procedures in any loop, you need write functions before the loop you are using them inside, and just use them like i did just wrote one line, because the function i wrote uses other 2 itself.

For walking you can use SPS. https://villavu.com/forum/showthread.php?t=71461&highlight=sps+guide
And i suggest to use standart simba botting settings because otherwise most of the functions wont work. So youll need to write ones yourself like tabbackpack.count() and other ones. Simba standart settings: https://villavu.com/forum/showthread.php?t=47714&highlight=setup+simba

nicerman1

2014-12-28 13:42:24

i'm testing it now, but you are really cool mate, really supportive and you respond quickly :D

nicerman1

2014-12-28 13:48:32

Error: The Points you passed to DrawATPA exceed the bitmap's bounds at line 113 (self.drawTPA(tpa, color);)
Execution failed.

this error came up when i was in the tanner's house. How could we fix this?

cosmasjdz

2014-12-28 13:53:01

From: nicerman1
Error: The Points you passed to DrawATPA exceed the bitmap's bounds at line 113 (self.drawTPA(tpa, color);)
Execution failed.

this error came up when i was in the tanner's house. How could we fix this?


get rid of huge minimap ?:D Basicly what it says is the quare didnt fit into the screen. there are other ways also.

Cound substitute Elis() function with this
function elis():tbox;
begin
result:=inttobox(0,0,400,300);
if pointinbox((minimap.pointtomainscreen(nusitaiko())),mainscreen.getbounds()) then begin
smartimage.drawbox(inttobox(minimap.pointtomainscreen(nusitaiko()).x-35,minimap.pointtomainscreen(nusitaiko()).y-35,minimap.pointtomainscreen(nusitaiko()).x+35,minimap.pointtomainscreen(nusitaiko()).y+35),255);
result:=inttobox(minimap.pointtomainscreen(nusitaiko()).x-35,minimap.pointtomainscreen(nusitaiko()).y-35,minimap.pointtomainscreen(nusitaiko()).x+35,minimap.pointtomainscreen(nusitaiko()).y+35);
end;
end;

on the other hand if the issue is with minimap then it wont fix it.

nicerman1

2014-12-28 14:04:27

yea, i thought my minimap was too big, but i can't make it smaller, cause i use use the minimap for my moving between bank and the tanner

cosmasjdz

2014-12-28 14:05:39

From: nicerman1
yea, i thought my minimap was too big, but i can't make it smaller, cause i use use the minimap for my moving between bank and the tanner


you can use other methods like sps walking :) because making unstandart interfaces messes whole srl6 include.

Or other methods of searching tanner. Since it moves making search area as smaller as possible like i did is nearly a must. Because to find it isnt eazy job, of course could write complex functions but the time is crucial. So dont think that minimizing search area using it position on the minimap isnt good idea. Well other ways is to search his head, torso and apron atpas then search if they by some distance to one another….basicly it is toocomplex for a beginner. You either should try making something else for your first script, or get more practice :) I know someone in jr+ member forums made function to find this tanner but wont leak it :) He used the other aproach i told if i remmeber correctly. Searching few different colors and checking if they by some distance between each other.

nicerman1

2014-12-28 14:13:18

i made my minimap a bit smaller (still a little bit bigger then the standard minimap) but it gives an error in the drawing file on self.drawTPA(tpa, color); with the error "Error: Access violation at line 113" .
Execution failed.

cosmasjdz

2014-12-28 14:18:43

From: nicerman1
i made my minimap a bit smaller (still a little bit bigger then the standard minimap) but it gives an error in the drawing file on self.drawTPA(tpa, color); with the error "Error: Access violation at line 113" .
Execution failed.


And what the main script shows? which line? cause 113 line is in another tab :) For me it works fine. Make sure you zoomed out to the max and camera angle at high.

Maybe even mainscreen.getbounds() fails cause of bad interface customization :)

nicerman1

2014-12-28 14:33:31

i understand that you won't leak someone others code, but when exactly does your code work? I'll change my script to let it work. I need it to work to make money in RS for membership :/