King
2012-12-05 20:33:20
I am working on a enchanter for rings of dueling (only really profitable one right now) I am wondering how I would create a For To Do Statement to enchant all of the inventory.
This is what I have so far
I want it to Send the key '1' to activate my spell on the action bar, then I want it to click the Inventory slots in order and then wait until the XP total is 37 more than it was before (how much exp is given from the spell). Is this right? Any ideas on a better way to do this?
This is what I have so far
Function Enchant:Boolean;
begin
if InvFull then
begin
for i:= 0 to 27 do
begin
SendKeys('1', 5, 5);
InvMouse(2,1);
GetXPBarTotal
repeat
wait(50);
until(GetXPBarTotal-GetXPBarTotal=37);
end;
end;
end;I want it to Send the key '1' to activate my spell on the action bar, then I want it to click the Inventory slots in order and then wait until the XP total is 37 more than it was before (how much exp is given from the spell). Is this right? Any ideas on a better way to do this?