Richard
2009-07-19 03:04:10
Newer version of what I had before:
This only works in theory, there is no way to check if the opening of auto cast setup works, or any of the spells works as of yet. Could someone with the spells active please do this?
Thanks
Procedure SetupAutoCast(Spell: String; Defensive: Boolean);
Var
SpellNames: Array [0..1] of Array [0..3] of String;
TSA: TStringArray;
i, x, y, xb, yb: Integer;
ii, SpellInt, Colours: TIntegerArray;
Begin
if not GameTab(1) then Exit;
SpellNames[0] := ['wind', 'water', 'earth', 'fire'];
SpellNames[1] := ['strike', 'bolt', 'blast', 'wave'];
Colours := [];
Mouse(655, ((Integer(not(Defensive)) * 33) + 253), 50, 25, True);
TSA := srl_Explode(Spell, ' ');
For i := 0 to 1 do
For ii[i] := 0 to 3 do
If (TSA[ii[i]] = SpellNames[i][ii[i]]) then
SpellInt[i] := ii[i];
xb := ((SpellInt[0] * 40) + 503)
yb := ((SpellInt[1] * 61) + 124)
If FindColorTolerance(x, y, Colours[SpellInt[0] * SpellInt[1]], xb + 5, yb + 5, xb - 5, yb - 5, 20) then
Mouse(xb, yb, 3, 3, True);
end;This only works in theory, there is no way to check if the opening of auto cast setup works, or any of the spells works as of yet. Could someone with the spells active please do this?
Thanks