begginer
2012-01-29 15:51:33
How to make a simple one. That eats, lobsters. Just eating by text not color or can be eating by color too. Any suggestion.
2012-01-29 15:51:33
2012-01-29 15:54:17
2012-01-29 15:58:47
2012-01-29 16:04:57
var
MMColor: string;
GetMMLevels('hp', MMColor);
if (MMColor = 'Red') then
repeat
//eat something
GetMMLevels('hp', MMColor)
until((MMColor = 'Green') or {find no food})2012-01-29 16:09:28
2012-01-29 16:13:57
From: begginer
Error] (90:3): Duplicate identifier 'GetMMLevels' at line 89
What's wrong
procedure EatIfLow;
var
MMColor: string;
begin
GetMMLevels('hp', MMColor);
if (MMColor = 'Red') then
repeat
//eat something
GetMMLevels('hp', MMColor)
until((MMColor = 'Green') or {find no food})
end; 2012-01-29 16:24:40
begin
GetMMLevels('hp', MMColor);
if (MMColor = 'Red') then
repeat
begin
InvMouse(I, 3);
if IsUpText('Eat Lobster') then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
Exit;
end else
Continue;
end; 2012-01-29 16:27:25
From: begginer
thanks, but what's wrong here
begin
GetMMLevels('hp', MMColor);
if (MMColor = 'Red') then
repeat
begin
InvMouse(I, 3);
if IsUpText('Eat Lobster') then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
Exit;
end else
Continue;
end;
This error : ** Warning in InvMouse: Inventory slot #0 is not a valid slot**
2012-01-29 16:34:43
procedure EatIfLow;
var
MMColor: string;
I: Integer;
begin
GetMMLevels('hp', MMColor);
if (MMColor = 'Red') then
repeat
begin
InvMouse(I, 3);
if IsUpText('Eat Lobster') then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
Exit;
end else
Continue;
end;
GetMMLevels('hp', MMColor)
until((MMColor = 'Green'))
end;
2012-01-29 16:40:59
From: begginer
procedure EatIfLow;
var
MMColor: string;
I: Integer;
begin
GetMMLevels('hp', MMColor);
if (MMColor = 'Red') then
repeat
begin
InvMouse(I, 3);
if IsUpText('Eat Lobster') then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
Exit;
end else
Continue;
end;
GetMMLevels('hp', MMColor)
until((MMColor = 'Green'))
end;
procedure EatIfLow;
var
MMColor: string;
I: Integer;
begin
GetMMLevels('hp', MMColor);
if (MMColor = 'Red') then
repeat
if FindDTM({dtm}, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
InvMouse(CoordsToItem(x, y), 3);
if WaitUpText('Eat Lobster', 1000) then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
end;
end else
Break;
GetMMLevels('hp', MMColor)
until((MMColor = 'Green'))
end; 2012-01-30 01:15:38
for i := 1 to 28 do2012-01-30 17:36:27
procedure EatIfLow;
var
MMColor: string;
x, y, Lobster: Integer;
begin
Lobster := DTMFromString('mggAAAHicY2NgYMhhYmAoAuIyIM4G4iQgjgXi2YwMDBOBeBIQrwDiZYwQsU2RUgxLgyQYNkRIMmyNlgKawMTQ4ybCgAsw4sAQAADyqwur');
end;
begin
GetMMLevels('hp', MMColor);
if (MMColor = 'Red') then
repeat
if FindDTM(Lobster, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
InvMouse(CoordsToItem(x, y), 3);
if WaitUpText('Eat Lobster', 1000) then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
end;
end else
Break;
GetMMLevels('hp', MMColor)
until((MMColor = 'Green'))
end;
2012-01-30 18:01:37
if not(EatIfLow) then Logout2012-01-31 03:04:08
2012-01-31 03:06:37
2012-01-31 03:09:15
2012-01-31 03:21:15
This is error [Error] (93:21): Unknown identifier 'MMColor' at line 92
Compiling failed.
2012-01-31 03:27:49
procedure EatIfLow;
var
MMColor: string;
x, y, Lobster: Integer;
begin
Lobster := DTMFromString('mggAAAHicY2NgYMhhYmAoAuIyIM4G4iQgjgXi2YwMDBOBeBIQrwDiZYwQsU2RUgxLgyQYNkRIMmyNlgKawMTQ4ybCgAsw4sAQAADyqwur');
begin
GetMMLevels('hp', MMColor);
if (MMColor = 'Red') then
repeat
if FindDTM(Lobster, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
InvMouse(CoordsToItem(x, y), 3);
if WaitUpText('Eat Lobster', 1000) then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
end;
end else
Break;
GetMMLevels('hp', MMColor)
until((MMColor = 'Green'))
end;
end;
This is the script. I get this error The following DTMs were not freed: [2]
2012-01-31 03:35:24
2012-01-31 04:20:25
From: begginer
This is the script. I get this error The following DTMs were not freed: [2]procedure EatIfLow;
var
MMColor: string;
x, y, Lobster: Integer;
begin
Lobster := DTMFromString('mggAAAHicY2NgYMhhYmAoAuIyIM4G4iQgjgXi2YwMDBOBeBIQrwDiZYwQsU2RUgxLgyQYNkRIMmyNlgKawMTQ4ybCgAsw4sAQAADyqwur');
begin
GetMMLevels('hp', MMColor);
if (MMColor = 'Red') then
repeat
if FindDTM(Lobster, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
InvMouse(CoordsToItem(x, y), 3);
if WaitUpText('Eat Lobster', 1000) then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
end;
end else
Break;
GetMMLevels('hp', MMColor)
until((MMColor = 'Green'))
end;
end;
2012-01-31 05:45:06
2012-01-31 05:56:16
Function LowHPLetsEat(What: String): Boolean;
var
I, x, y: Integer;
begin
Result := (HPPercent < 50) and (LoggedIn); // 50 is hp percentage, change that if you wish it any lower or higher
If(not(Result)) then
Exit;
if Result then
If InvEmpty then // If no more food failsafe, you need another failsafe in case there's no food named lobster for ex.
begin
Logout;
TerminateScript;
end
else
for i := 1 to 28 do
begin
InvMouse(I, 3);
Wait(RandomRange(250, 300));
if WaitUpText(What, RandomRange(250, 400)) then
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
Exit;
end else
Continue;
end;
end;
2012-01-31 06:00:02
2012-01-31 10:07:43
From: DemiseScythe
What if the script loots something Ticky?
2012-02-06 17:00:01
Function LowHPLetsEat: Boolean;
var
I, x, y: Integer;
begin
Result := (HPPercent < 50) and (LoggedIn); // 50 is hp percentage, change that if you wish it any lower or higher
If(not(Result)) then
Exit;
if Result then
If InvEmpty then // If no more food failsafe, you need another failsafe in case there's no food named lobster for ex.
begin
Logout;
TerminateScript;
end
else
for i := 1 to 28 do
begin
InvMouse(I, 3);
Wait(RandomRange(250, 300));
if WaitUpText('Lobster', RandomRange(250, 400)) then
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
Exit;
end else
Continue;
end;
end;
2012-02-06 18:08:30