FoxGaming
2014-12-13 14:09:23
Hey everyone,
So I'm definitely not new to botting, but I'm definitely new to the Simba Scene.
Been working on creating a Combat Script to kill Lesser Demons in the Karamja Volcano Resource dungeon.
I'm having trouble though, mostly because I'm a lower level than the lesser demons. So I've not really figured out how to detect when my mouse is over them or not. I was thinking with my ATPA box I could then detect if my mouse was within those bounds? So a conditional wait until the ATPA box around the found demon contained my mouse, which I could then right click and select attack.
I'm also working on my own include library to store functions, like a check for combat, and healthPCT etc. So any tips on that will also be appreciated.
Here is what I have so far…which is basically just following TheMayor's tutorial.
So I'm definitely not new to botting, but I'm definitely new to the Simba Scene.
Been working on creating a Combat Script to kill Lesser Demons in the Karamja Volcano Resource dungeon.
I'm having trouble though, mostly because I'm a lower level than the lesser demons. So I've not really figured out how to detect when my mouse is over them or not. I was thinking with my ATPA box I could then detect if my mouse was within those bounds? So a conditional wait until the ATPA box around the found demon contained my mouse, which I could then right click and select attack.
I'm also working on my own include library to store functions, like a check for combat, and healthPCT etc. So any tips on that will also be appreciated.
Here is what I have so far…which is basically just following TheMayor's tutorial.
program demonSlayer;
{$DEFINE SMART} // Always have this to load smart
{$I SRL-6/SRL.simba} // To load the SRL include files
{$I SPS/lib/SPS-RS3.Simba} // To load the SPS include files
procedure declarePlayers();
begin
setLength(players, 1);
with players[0] do
begin
loginName := '*******';
password := '*********';
isActive := true;
isMember := true;
end
currentPlayer := 0;
end;
procedure getDemons();
var
x, y, i: integer;
TPA: TPointArray;
ATPA: T2DPointArray;
begin
if not isLoggedIn() then
exit;
findColorsSpiralTolerance(x, y, TPA, 3823248, mainScreen.getBounds(), 9, colorSetting(2, 0.12, 0.03));
if (Length(TPA) < 1) then
exit;
ATPA := TPA.toATPA(30, 30);
ATPA.sortFromMidPoint(mainScreen.playerPoint);
smartImage.debugATPA(ATPA);
end
procedure attackDemon()
begin
if not isLoggedIn() then
exit
end
procedure eatFood()
begin
//eat food
end
procedure useAbilities()
begin
//make this faster.
end
procedure lootItems()
begin
//loot crap
end
// main loop
begin
clearDebug(); // Clear the debug box
smartEnableDrawing := true; // So we can draw on SMART
setupSRL(); // Load the SRL include files
declarePlayers();
// Set up your username/pass
if not isLoggedIn() then // If player isn't logged in then
begin
players[currentPlayer].login(); // Log them in
exitSquealOfFortune(); // Exit squeal if found
minimap.setAngle(MM_DIRECTION_NORTH); // Make compass north and angle high
mainScreen.setAngle(MS_ANGLE_HIGH);
end;
getDemons();
end.