
Originally Posted by
Gregbot
found prayer renewal
found prayer potion
Successfully executed.
ok now replace this with ur current DrinkPotion function (line 500-531)
Simba Code:
function DrinkPotion(color:integer): Boolean;
var
x,y,PotionStart,i:integer;
SlotBox: TBox;
begin
if (UseSpecial=false) then
PotionStart:=1
else
begin
Case Lowercase(Special) of
'ee','dmg': PotionStart:=2;
'eedmg','dmgbgs': PotionStart:=3;
end;
end;
for i:=PotionStart to SlotEnd do //This is done due to some potions having conflicting colors with special weapon
begin
SlotBox:=InvBox(i);
if (UseFood=false or (i<FoodSlotStart) or (i>FoodSlotEnd)) and
(UseFamiliar=false or (i<PouchSlotStart) or (i>PouchSlotEnd)) then
begin
writeln('searching for slot '+tostr(i));
if FindColorTolerance(x,y,color,SlotBox.x1,SlotBox.y1,SlotBox.x2,SlotBox.y2,18) then
begin
Writeln('found potion with the color '+toStr(color)+'at slot '+toStr(i));
CMouse(RandomRange(SlotBox.x1,SlotBox.x2),RandomRange(SlotBox.y1,SlotBox.y2),0,0,0,0);
if WaitUptext('rink',1644) then
writeln(tostr(i)+' slot correctly identified');
end;
end;
end;
end;
then
add this to line 1350
Simba Code:
DrinkPotion(11776955); //extreme/super str
DrinkPotion(10328681); //extreme att
DrinkPotion(12073528); //super att
DrinkPotion(922977); //renewal
DrinkPotion(9091129); //prayer pot
TerminateScript;
Run the script and post the debug (its not going to drink ur potion so dont worry abt wasting)
I'll not post V5 else no 1 is going to help me debug and resolve this mystery...