Hallo, es geht um das Spiel Seafight.
Und zwar soll das Schiff wenn es keinen Maat Stufe 5 hat in die Ecke fahren und reppen. Leider drückt der Bot in stehender Positin reppen, anstatt erst in die Ecke fahren .
Hoffe ihr versteht mein Anliegen. Hier mal der Teil:
Func _g_Repair()
_m_Out("Repairing")
If $bRM5 And Not _t_Color($coRBX, $coRBY, 0xFF800C) Then _t_Click($coRBX + 15, $coRBY + 15)
$tmpCt = TimerInit()
If $bROC Then _g_Corner()
Do
If $bRM5 And Not $bROC Then ExitLoop
If Sleep(2500) And Not _t_Color($coRBX, $coRBY, 0xFF800C) Then _t_Click($coRBX + 15, $coRBY + 15)
Until _t_Color($coRBX, $coRBY, 0x8E5B28) Or _g_ifSunk() Or TimerDiff($tmpCt) > 600000 ;10 Minuten
EndFunc ;==>_g_Repair
Und zwar soll das Schiff wenn es keinen Maat Stufe 5 hat in die Ecke fahren und reppen. Leider drückt der Bot in stehender Positin reppen, anstatt erst in die Ecke fahren .
Hoffe ihr versteht mein Anliegen. Hier mal der Teil:
Func _g_Repair()
_m_Out("Repairing")
If $bRM5 And Not _t_Color($coRBX, $coRBY, 0xFF800C) Then _t_Click($coRBX + 15, $coRBY + 15)
$tmpCt = TimerInit()
If $bROC Then _g_Corner()
Do
If $bRM5 And Not $bROC Then ExitLoop
If Sleep(2500) And Not _t_Color($coRBX, $coRBY, 0xFF800C) Then _t_Click($coRBX + 15, $coRBY + 15)
Until _t_Color($coRBX, $coRBY, 0x8E5B28) Or _g_ifSunk() Or TimerDiff($tmpCt) > 600000 ;10 Minuten
EndFunc ;==>_g_Repair