Code: Select all
function OnLoad()
PlayerInput:Console("/select Moterinerk");
-- PlayerInput:Console("/select Mezirinerk");
end
function OnRun()
if not DialogList:GetDialog( "dlg_dialog" ):IsVisible() then
PlayerInput:Console( "/Attack" );
Timer = Time() + 400;
return false;
end
if Timer ~= nil and Timer >= Time() then
return false;
elseif Step == 0 or Step == nil then
DialogList:GetDialog( "dlg_dialog/html_view/1" ):Click();
Step = 1;
Timer = Time() + 400;
return false;
else
if Step == 1 then
DialogList:GetDialog( "dlg_dialog/accept_simple" ):Click();
Step = 2;
Timer = Time() + 400;
return false;
elseif Step == 2 then
DialogList:GetDialog( "dlg_dialog/html_view/1" ):Click();
Step = 3;
Timer = Time() + 400;
return false;
elseif Step == 3 then
DialogList:GetDialog( "dlg_dialog/html_view/1" ):Click();
Step = 4;
Timer = Time() + 400;
return false;
elseif Step == 4 then
DialogList:GetDialog( "dlg_dialog/ok" ):Click();
Step = 0;
Timer = Time() + 400;
return false;
end
end
end