I know people want to alch constantly etc.
And I don't want to sound harsh.
But you need atleast some randomness to the task especially cause all you are doing is casting a spell, you aren't even banking.
Think about checking your skill level, taking a break to rest your poor bots fingers, stuff like that, because otherwise (IMHO) this is a script that will get you banned.
Also:
Simba Code:
if IsUpText(ALCH_ITEM) then
begin
AlchSlot := i;
end;
You don't need a begin/end. Just:
Simba Code:
if IsUpText(ALCH_ITEM) then
AlchSlot := i;
And that whole procedure:
Simba Code:
procedure iFindTheSlot;
var i:integer;
begin
for i := 1 to 28 do
begin
InvMouse(i, 3);
if IsUpText(ALCH_ITEM) then
begin
AlchSlot := i;
end;
end;
end;
You want to break out of the loop if you find the uptext, so make use of "Break".
And why not use a DTM or BMP or some sort?
Would save moving your mouse to each inventory slot until you find it (if you find it)
And what happens if you don't find it?
An infinite loop of this will occur:
Simba Code:
procedure iAlchStuff;
begin
repeat
TypeSendEx('1', False);
InvMouse(AlchSlot, mouse_Left);
Wait(2000+RandomRange(-500, 600)); //Got this timing from tehq.
until InvCount = 0;
end;
You have no failsafes anywhere
-Boom