Originally Posted by
Owner Spikey
None of you guys have understand the question I'm asking why is it like that in the CODE? What can I do to find it in the code to make it click every monster no matter what level.
buildAtNPCMenu:
Code:
if (configuration.getNpcAttackOption() != RightClickAttackOption.HIDDEN) {
if (npcDefinition.options != null) {
for (int i1 = 4; i1 >= 0; i1--)
if (npcDefinition.options[i1] != null && npcDefinition.options[i1].equalsIgnoreCase("attack")) {
int add = 0;
switch (configuration.getNpcAttackOption()) {
case DEPENDS_ON_COMBAT:
if (npcDefinition.combatLevel > localPlayer.getCombatLevel()) {
add = 2000;
}
break;
case LEFT_CLICK:
add = 0;
break;
case RIGHT_CLICK:
add = 2000;
break;
default:
break;
}
menuActionText[menuActionRow] = npcDefinition.options[i1] + " @yel@" + s;
if (i1 == 0)
menuActionTypes[menuActionRow] = 20 + add;
if (i1 == 1)
menuActionTypes[menuActionRow] = 412 + add;
if (i1 == 2)
menuActionTypes[menuActionRow] = 225 + add;
if (i1 == 3)
menuActionTypes[menuActionRow] = 965 + add;
if (i1 == 4)
menuActionTypes[menuActionRow] = 478 + add;
menuActionCmd1[menuActionRow] = i;
menuActionCmd2[menuActionRow] = k;
secondMenuAction[menuActionRow] = j;
menuActionRow++;
}
}
}
And buildAtPlayerMenu:
Code:
for (int l = 4; l >= 0; l--)
if (playerOptions[l] != null) {
if (playerOptions[l].equalsIgnoreCase("attack")
&& configuration.getPlayerAttackOption() == RightClickAttackOption.HIDDEN) {
continue;
}
menuActionText[menuActionRow] = playerOptions[l] + " @whi@" + name;
int add = 0;
if (playerOptions[l].equalsIgnoreCase("attack")) {
switch (configuration.getPlayerAttackOption()) {
case DEPENDS_ON_COMBAT:
if (player.getCombatLevel() > localPlayer.getCombatLevel())
add = 2000;
if (localPlayer.team != 0 && player.team != 0)
if (localPlayer.team == player.team)
add = 2000;
else
add = 0;
break;
case LEFT_CLICK:
add = 0;
break;
case RIGHT_CLICK:
add = 2000;
break;
default:
break;
}
} else if (playerOptions[l].equalsIgnoreCase("fight")) {
add = 0;
} else if (playerOptionsHighPriority[l]) {
add = 2000;
}
if (l == 0)
menuActionTypes[menuActionRow] = 561 + add;
if (l == 1)
menuActionTypes[menuActionRow] = 779 + add;
if (l == 2)
menuActionTypes[menuActionRow] = 27 + add;
if (l == 3)
menuActionTypes[menuActionRow] = 577 + add;
if (l == 4)
menuActionTypes[menuActionRow] = 729 + add;
menuActionCmd1[menuActionRow] = j;
menuActionCmd2[menuActionRow] = i;
secondMenuAction[menuActionRow] = k;
menuActionRow++;
}
}
Look @ similarities, this is for OSRS option based btw.