I need somebody to help me with getting the information from checking your task with the gem, it should work but when it grabs the line the string is something like this
Y. o. u.'re assigneH. to K. il.l. H. il.l. giants'. onl.y V-.V- more to go.
Also, when I try grabbing the line with reflection it returns nothing
Here is the code I'm using
Simba Code:
function SetCurrentTask: Boolean;
var
slayGem: TReflectInvItem;
lastMessage: String;
i: Integer;
taskInfo: TStringArray;
messageNull: Boolean;
begin
if not slayGem.Find('Enchanted gem') then
begin
Result := false;
end else
begin
Reflect.Mouse.Move(slayGem.GetPoint, 1, 1);
wait(randomRange(50,150));
Reflect.Mouse.Click(mouse_right);
wait(randomRange(30,60));
Reflect.Text.ChooseOption('Chec');
wait(randomRange(200,300));
messageNull := true;
for i:=1 to 8 do
begin
//writeln(getChatBoxText(i, clBlack)); debug
if FindChatBoxText('assigned', i, clBlack) then
begin
messageNull := false;
lastMessage := getChatBoxText(i, clBlack);
end
end
//writeln(lastMessage); debug
if not messageNull then
begin
//writeln('here'); debug
lastMessage := ReplaceRegExpr('''', lastMessage, '"', True);
lastMessage := ReplaceRegExpr(lastMessage, 'You"re assigned to kill ', '', True);
lastMessage := ReplaceRegExpr(lastMessage, ' only ', '', True);
lastMessage := ReplaceRegExpr(lastMessage, ' more to go.', '', True);
taskInfo := SplitRegExprEx(';', lastMessage);
writeln(ToStr(taskInfo[0]));
writeln(ToStr(taskInfo[1]));
Result := True;
end
end
end