Hello!
I've just started to learn how to make some scripts but need help.
I wanted to make the bot use the door at the house and climb down the stair to Hill Giants close to varrock.
And i looked at the public script JOEbotsGiants to see how to make that.
I just wanted to have this part of the script but can't make it work:.
Simba Code:
program new;
{$DEFINE SMART}
{$i SRL\SRL.simba}
procedure EnterHillG;
var
myPath:TPointArray;
DTM,x,y, cx, cy, Door, LadderIn, Entrance, Dwalk: Integer;
GetIt: Extended;
begin
Door := DTMFromString('mggAAAHicY2NgYIhiZGAoBmIbILYDYg9GiFg0lO0LxEFAbA/FigoSDIoqEgyWFpYMEhISDJoaimAxZqBZ2DAjDgwBADFoBkc=');
if FindDTMRotated(Door, x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, GetIt) then
begin
mouse(x,y,1,1,False);
ChooseOption('pen')
end;
begin // Ladder Enterer
LadderIn := DTMFromString('mrAAAAHic42BgYOAHYm4GCGCEYkEgVoRiMSDmgGJxIFaBYn6oHnUBVgYfSyUGDzN5BhV+VgZeXl4wdjUVZYhwlmYgBBgJYBgAALFlBF8=');
if FindDTMRotated(LadderIn, x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, GetIt) then
begin
mouse(x,y,1,1,False);
ChooseOption('limb-down')
end;
end;
FreeDTM(Door);
FreeDTM(LadderIn);
end;
begin
SetupSRL;
EnterHillG;
end.
I know there is some variables that i do not use, MyPath and so on. But when i took them away i got errors. So i just let them be. But it would be nice if i could get some help with that aswell.
I wanted to try to learn how DTM works so the Ladder DTM code i've changed to one of my own. But i havent gotten that far when i tried it so i do not know if it works either.
You start it just outside of the Brass-key-house door and then it should open the door and go downstairs.
Thanks!
Dear // Jannemus!