Code: Select all
function OnLoad()
timer=0
wait=250
end
function OnRun()
if Time() > timer then
for ID, Entity in DictionaryIterator( EntityList:GetList()) do
local mobRange = Player:GetPosition():DistanceToPosition( Entity:GetPosition());
local dist = Entity:GetPosition():DistanceToPosition( Player:GetPosition());
if Entity ~= nil and Entity:GetId() ~= Player:GetID() and mobRange <= dist and Entity:GetName() == "Kreus" and not Player:IsBusy() then
PlayerInput:Console("/select Kreus");
end
if Entity ~= nil and Entity:GetName() == "Kreus" then
if not DialogList:GetDialog( "dlg_dialog" ):IsVisible() then
PlayerInput:Console( "/Attack" );
elseif DialogList:GetDialog( "dlg_dialog/html_view/1" ):Click() then
end
if DialogList:GetDialog( "airline_service_dialog" ):IsVisible() then
DialogList:GetDialog( "airline_service_dialog/map_image/airport482" ):Click()
end
end
end
end
timer=Time() + wait
end
481,442 sea of life
467, 480,441 plateau retribution
479,440 cursed gorge