Kramnik Posted April 17, 2019 Share Posted April 17, 2019 (edited) Hello, trying to make a very simple progressive fight which would get me base 10s or 20s combat stats, found my older script when I tried to make it but some how its not working. After getting 5 Str and swithing to attack he keeps on training attack. Am I missing else if logic here? I am pretty sure it I put everything under one if with else it would work, but I thought else ifs would look more tidy {if (str < 5) { getTabs().open(Tab.ATTACK); sleep(1000); if (config != 1) { modeStr.interact("Lunge"); sleep(random(3000, 7000)); return 500; } } else if (atk < 5) { getTabs().open(Tab.ATTACK); sleep(1000); if (config != 0){ modeAtk.interact("Stab"); sleep(random(3000, 7000)); } } else if (str < 10) { getTabs().open(Tab.ATTACK); sleep(1000); if (config != 1) { modeAtk.interact("Lunge"); sleep(random(3000, 7000)); } } else if (atk < 10) { getTabs().open(Tab.ATTACK); sleep(1000); if (config != 0){ modeAtk.interact("Stab"); sleep(random(3000, 7000)); } } else if (def < 10) { getTabs().open(Tab.ATTACK); sleep(1000); if (config != 3) { modeDef.interact("Block"); sleep(random(3000, 7000)); } } else { getTabs().open(Tab.ATTACK); sleep(1000); if (config != 1) { modeStr.interact("Stab"); sleep(random(3000, 7000)); } Edited April 17, 2019 by kramnik Quote Link to comment Share on other sites More sharing options...