Func II()
Global $LogicState;Душа бота
While WinActivate("$CurWin")
$Convo = FindAgentConversationWindow()
;~ Exit
$LogicState = GetLogicState()
ToolTip($LogicState, 0,0)
Select
Case $LogicState = "Agent Window Opened | View Mission | Loaded | Space | On | Есть | Не определено"
Sleep(5000)
Case $LogicState = "Agent Window | Close Window | Loaded | Space | On | Есть | Не определено"
Sleep(5000)
Case $LogicState = "Locate Character Agent | Mission Not Requested | Empty | Station | Off | Нету | Не определено"
ToDo("Locate Character Agent | Mission Not Requested", "Request Mission")
Case $LogicState = "Locate Character Agent | Mission Not Requested | Empty | Station | Off | Нету | Compleate Mission"
ToDo("Locate Character Agent | Mission Not Requested", "Request Mission")
Case $LogicState = "Locate Character Agent | Mission Allready Requested | Empty | Station | Off | Нету | Не определено"
ToDo("Locate Character Agent | Mission Allready Requested", "View Mission")
Case $LogicState = "Locate Character Agent | Mission Allready Requested | Empty | Station | Off | Есть | Не определено"
ToDo("Locate Character Agent | Mission Allready Requested", "View Mission")
Case $LogicState = "Viewing Mission | Mission Not Accepted | Empty | Station | Off | Нету | Не определено"
If CheckMission() Then ToDo("Viewing Mission | Mission Not Accepted", "Accept Mission")
Case $LogicState = "Viewing Mission | Mission Accepted | Empty | Station | Off | Нету | Не определено"
CheckMission()
Case $LogicState = "Viewing Mission | Mission Accepted | Loaded | Station | Off | Нету | Не определено"
CheckMission()
Case $LogicState = "Viewing Mission | Close Window | Loaded | Space | Off | Есть | Не определено"
CheckMission()
Case $LogicState = "Viewing Mission | Close Window | Loaded | Space | On | Есть | Не определено"
CheckMission()
Case $LogicState = "Viewing Mission | Close Window | Loaded | Space | Off | Нету | Не определено"
CheckMission()
Case $LogicState = "Viewing Mission | Mission Accepted | Empty | Station | Off | Есть | Не определено"
CheckMission()
Case $LogicState = "Viewing Mission | Close Window | Empty | Space | Off | Есть | Не определено"
CheckMission()
Case $LogicState = "Viewing Mission | Close Window | Empty | Space | Off | Нету | Не определено";Or $LogicState = "Viewing Mission | Close Window | Empty | Space | On | Есть | Не определено"
CheckMission()
Case $LogicState = "Agent Window | Close Window | Loaded | Space | Off | Нету | Не определено"
CheckMission()
Case $LogicState = "Agent Window Opened | View Mission | Loaded | Space | Off | Есть | Не определено"
ToDo("Agent Window Opened | View Mission", "View Mission")
Case $LogicState = "Agent Window Opened | View Mission | Loaded | Space | Off | Нету | Не определено"
ToDo("Agent Window Opened | View Mission", "View Mission")
Case $LogicState = "Agent Window Opened | View Mission | Empty | Space | Off | Есть | Не определено"
ToDo("Agent Window Opened | View Mission", "View Mission")
Case $LogicState = "Agent Window Opened | View Mission | Empty | Station | Off | Нету | Не определено"
ToDo("Agent Window Opened | View Mission", "View Mission")
Case $LogicState = "Agent Window | Close Window | Loaded | Space | Off | Есть | Не определено"
ToDo("Autopilot On")
;Агент => Дроп Офф => Агент
Case $LogicState = "Viewing Mission | Mission Accepted | Empty | Station | Off | Нету | Агент => Дроп Офф => Агент"
ToDo("Load Cargo")
Case $LogicState = "Viewing Mission | Mission Accepted | Empty | Station | Off | Есть | Агент => Дроп Офф => Агент"
ToDo("Load Cargo")
Case $LogicState = "Viewing Mission | Mission Accepted | Loaded | Station | Off | Есть | Агент => Дроп Офф => Агент"
ToDo("Undock")
Case $LogicState = "Viewing Mission | Mission Accepted | Loaded | Station | Off | Есть | Не определено"
ToDo("Undock")
Case $LogicState = "Agent Window Opened | View Mission | Loaded | Space | Off | Есть | Агент => Дроп Офф => Агент"
ToDo("Autopilot On")
Case $LogicState = "Viewing Mission | Close Window | Loaded | Space | Off | Есть | Агент => Дроп Офф => Агент"
ToDo("Autopilot On")
Case $LogicState = "Viewing Mission | Close Window | Loaded | Space | On | Есть | Агент => Дроп Офф => Агент"
Sleep(5000)
Case $LogicState = "Agent Window Opened | View Mission | Loaded | Space | On | Есть | Агент => Дроп Офф => Агент"
Sleep(5000)
Case $LogicState = "Viewing Mission | Close Window | Loaded | Space | Off | Нету | Агент => Дроп Офф => Агент"
ToDo("Dock")
Case $LogicState = "Agent Window Opened | View Mission | Loaded | Station | Off | Нету | Не определено"
ToDo("Agent Window Opened | View Mission", "View Mission")
Case $LogicState = "Agent Window Opened | View Mission | Loaded | Station | Off | Нету | Агент => Дроп Офф => Агент"
ToDo("Agent Window Opened | View Mission", "View Mission")
Case $LogicState = "Agent Window Opened | View Mission | Loaded | Space | Off | Нету | Агент => Дроп Офф => Агент"
ToDo("Agent Window Opened | View Mission", "View Mission")
;Агент => Пикап => Дроп Офф => Агент
Case $LogicState = "Viewing Mission | Mission Accepted | Empty | Station | Off | Нету | Агент => Пикап => Дроп Офф => Агент"
ToDo("Move to Pickup")
Case $LogicState = "Viewing Mission | Close Window | Empty | Space | Off | Есть | Агент => Пикап => Дроп Офф => Агент"
ToDo("Move to Pickup")
ToDo("Autopilot On")
Case $LogicState = "Viewing Mission | Mission Accepted | Empty | Station | Off | Есть | Агент => Пикап => Дроп Офф => Агент"
ToDo("Undock")
Case $LogicState = "Viewing Mission | Close Window | Empty | Space | On | Есть | Агент => Пикап => Дроп Офф => Агент"
Sleep(5000)
Case $LogicState = "Viewing Mission | Close Window | Empty | Space | Off | Нету | Агент => Пикап => Дроп Офф => Агент"
ToDo("Dock Pickup")
Case $LogicState = "Agent Window Opened | View Mission | Empty | Space | Off | Нету | Агент => Пикап => Дроп Офф => Агент"
ToDo("Autopilot On")
Case $LogicState = "Agent Window Opened | View Mission | Empty | Space | On | Нету | Агент => Пикап => Дроп Офф => Агент"
Sleep(5000)
Case $LogicState = "Agent Window Opened | View Mission | Empty | Station | Off | Нету | Агент => Пикап => Дроп Офф => Агент"
ToDo("Load Cargo")
Case $LogicState = "Agent Window Opened | View Mission | Empty | Station | Off | Есть | Агент => Пикап => Дроп Офф => Агент"
ToDo("Load Cargo")
Case $LogicState = ""
Case $LogicState = ""
;Завершение миссии
Case $LogicState = "Viewing Mission | Mission Accepted | Loaded | Station | Off | Нету | Compleate Mission"
ToDo("Viewing Mission | Mission Accepted", "Complete Mission")
Case $LogicState = "Viewing Mission | Mission Not Accepted | Empty | Station | Off | Нету | Compleate Mission"
ToDo("Return Back to Agent")
ToDo("Undock")
Case $LogicState = "Agent Window | Close Window | Empty | Station | Off | Нету | Compleate Mission"
ToDo("Return Back to Agent")
ToDo("Undock")
Case $LogicState = "Agent Window | Close Window | Empty | Station | Off | Нету | Не определено"
ToDo("Return Back to Agent")
ToDo("Undock")
Case $LogicState = "Viewing Mission | Mission Not Accepted | Empty | Station | Off | Нету | Агент => Дроп Офф => Агент"
ToDo("Return Back to Agent")
ToDo("Undock")
Case $LogicState = "Agent Window | Close Window | Empty | Space | Off | Есть | Агент => Дроп Офф => Агент"
ToDo("Autopilot On")
Case $LogicState = "Agent Window | Close Window | Empty | Space | Off | Есть | Не определено"
ToDO("AutoPilot On")
Case $LogicState = "Agent Window | Close Window | Empty | Space | Off | Есть | Compleate Mission"
ToDO("AutoPilot On")
Case $LogicState = "Agent Window | Close Window | Empty | Space | On | Есть | Не определено"
Sleep(5000)
Case $LogicState = "Agent Window | Close Window | Empty | Space | On | Есть | Compleate Mission"
Sleep(5000)
Case $LogicState = "Agent Window | Close Window | Empty | Space | On | Есть | Агент => Дроп Офф => Агент"
Sleep(5000)
Case $LogicState = "Agent Window | Close Window | Empty | Space | Off | Нету | Не определено"
ToDo("Dock to Agent")
Case $LogicState = "Viewing Mission | Mission Accepted | Loaded | Station | Off | Нету | Агент => Дроп Офф => Агент"
;~ MsgBox(0,"","Баг был тут")
;~ ToDo("Check Mission")
CheckMission()
;~ Case $LogicState = "Тип Окна Агента не определен | Loaded | Station | Off | Есть | Агент => Пикап => Дроп Офф => Агент"
;~ ToDo("Undock")
Case $LogicState = "Agent Window | Close Window | Empty | Space | Off | Нету | Compleate Mission"
ToDo("Dock to Agent")
Case $LogicState = "Agent Window | Close Window | Empty | Space | Off | Нету | Агент => Дроп Офф => Агент"
ToDo("Dock to Agent")
Case $LogicState = ""
Case $LogicState = ""
Case $LogicState = ""
Case $LogicState = ""
Case Else
ClipPut(""&$LogicState&"")
TestMsg("Незаданное условие"&@CR&$LogicState)
;~ Exit
Sleep(5000)
EndSelect
Sleep(3000)
WEnd
EndFunc