|
|
@ -231,6 +231,9 @@ class Server |
|
|
|
long lastFrame=System.currentTimeMillis(); |
|
|
|
long lastFrame=System.currentTimeMillis(); |
|
|
|
|
|
|
|
|
|
|
|
void Heal(Target target){ |
|
|
|
void Heal(Target target){ |
|
|
|
|
|
|
|
if (target==Target.AYA){ |
|
|
|
|
|
|
|
allowedToAetherflow=true; |
|
|
|
|
|
|
|
} |
|
|
|
if (aetherflowStacks>0){ |
|
|
|
if (aetherflowStacks>0){ |
|
|
|
PressKey(KeyEvent.VK_C); |
|
|
|
PressKey(KeyEvent.VK_C); |
|
|
|
aetherflowStacks--; |
|
|
|
aetherflowStacks--; |
|
|
@ -343,57 +346,57 @@ class Server |
|
|
|
nextActionTimer=1000; |
|
|
|
nextActionTimer=1000; |
|
|
|
break fightLoop; |
|
|
|
break fightLoop; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (allowedToAetherflow&&aetherflowTimer==0){ |
|
|
|
if (allowedToAetherflow&&aetherflowTimer==0){ |
|
|
|
PressKeyWithModifier(KeyEvent.VK_ALT, KeyEvent.VK_2); |
|
|
|
PressKeyWithModifier(KeyEvent.VK_ALT, KeyEvent.VK_2); |
|
|
|
|
|
|
|
nextActionTimer=1000; |
|
|
|
|
|
|
|
aetherflowStacks=3; |
|
|
|
|
|
|
|
break fightLoop; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
float ayaHealth=GetAyaHealth(); |
|
|
|
|
|
|
|
float mythraHealth=GetMythraHealth(); |
|
|
|
|
|
|
|
if (ayaHealth<0.4){ |
|
|
|
|
|
|
|
PressKey(KeyEvent.VK_F2); |
|
|
|
|
|
|
|
Heal(Target.AYA); |
|
|
|
|
|
|
|
break fightLoop; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (ayaHealth<0.6){ |
|
|
|
|
|
|
|
if (whisperingDawnTimer==0&&feyIlluminationTimer<60000){ |
|
|
|
|
|
|
|
PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_C); |
|
|
|
|
|
|
|
whisperingDawnTimer=60000; |
|
|
|
|
|
|
|
nextActionTimer=1000; |
|
|
|
nextActionTimer=1000; |
|
|
|
|
|
|
|
aetherflowStacks=3; |
|
|
|
break fightLoop; |
|
|
|
break fightLoop; |
|
|
|
} else |
|
|
|
} |
|
|
|
if (feyIlluminationTimer==0&&whisperingDawnTimer<30000){ |
|
|
|
float ayaHealth=GetAyaHealth(); |
|
|
|
PressKey(KeyEvent.VK_X); |
|
|
|
float mythraHealth=GetMythraHealth(); |
|
|
|
feyIlluminationTimer=120000; |
|
|
|
if (ayaHealth<0.4){ |
|
|
|
nextActionTimer=1000; |
|
|
|
PressKey(KeyEvent.VK_F2); |
|
|
|
|
|
|
|
Heal(Target.AYA); |
|
|
|
break fightLoop; |
|
|
|
break fightLoop; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (ayaHealth<0.6){ |
|
|
|
if (mythraHealth<0.4){ |
|
|
|
if (whisperingDawnTimer==0&&feyIlluminationTimer<60000){ |
|
|
|
PressKey(KeyEvent.VK_F1); |
|
|
|
PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_C); |
|
|
|
Heal(Target.MYTHRA); |
|
|
|
whisperingDawnTimer=60000; |
|
|
|
break fightLoop; |
|
|
|
nextActionTimer=1000; |
|
|
|
} |
|
|
|
break fightLoop; |
|
|
|
//Looks like we're attacking.
|
|
|
|
} else |
|
|
|
PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_8); |
|
|
|
if (feyIlluminationTimer==0&&whisperingDawnTimer<30000){ |
|
|
|
float targetHealth=GetTargetHealth(); |
|
|
|
PressKey(KeyEvent.VK_X); |
|
|
|
if (!MultipleTargets()){ |
|
|
|
feyIlluminationTimer=120000; |
|
|
|
if (targetHealth>50&&bioTimer==0){ |
|
|
|
nextActionTimer=1000; |
|
|
|
PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_2); |
|
|
|
break fightLoop; |
|
|
|
bioTimer=30000; |
|
|
|
} |
|
|
|
nextActionTimer=2500; |
|
|
|
} |
|
|
|
|
|
|
|
if (mythraHealth<0.4){ |
|
|
|
|
|
|
|
PressKey(KeyEvent.VK_F1); |
|
|
|
|
|
|
|
Heal(Target.MYTHRA); |
|
|
|
break fightLoop; |
|
|
|
break fightLoop; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//Looks like we're attacking.
|
|
|
|
|
|
|
|
PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_8); |
|
|
|
|
|
|
|
float targetHealth=GetTargetHealth(); |
|
|
|
|
|
|
|
if (!MultipleTargets()){ |
|
|
|
|
|
|
|
if (targetHealth>50&&bioTimer==0){ |
|
|
|
|
|
|
|
PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_2); |
|
|
|
|
|
|
|
bioTimer=30000; |
|
|
|
|
|
|
|
nextActionTimer=2500; |
|
|
|
|
|
|
|
break fightLoop; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_1); |
|
|
|
|
|
|
|
nextActionTimer=2500; |
|
|
|
|
|
|
|
break fightLoop; |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_1); |
|
|
|
PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_Z); |
|
|
|
nextActionTimer=2500; |
|
|
|
nextActionTimer=2500; |
|
|
|
break fightLoop; |
|
|
|
break fightLoop; |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
|
|
|
|
PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_Z); |
|
|
|
|
|
|
|
nextActionTimer=2500; |
|
|
|
|
|
|
|
break fightLoop; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break fightLoop; |
|
|
|
break fightLoop; |
|
|
|