Some web changes.
WorldObjectClickingScriptJobV2 which allows safe synchronized target changing.
WorldObjectClickingScriptJobV2 job = UberScriptUtils.startScriptJobClick2(final ColorSkeltonScriptable cs, final WorldObject wo, final Pattern toptext, final Pattern menuaction, final EnumSet<UberClickOptions> options)
while (!job.isDone()) {
//Logic// Lower cost target found / redirect
if(job.changeTarget(WorldObject wo)){
//target change accepted.
}else{
//script job is probably done
}
}
Some web fixes.
Grand Exchange item Values calculation fixes and updated values.
ATTACK_NPC_CONDITION_CHECKS broken up into 2 seperate flags for more control:
UberClickOptions.BREAK_IF_NPC_HPBARUP_INTERACTING_WITH_MYPLAYER
UberClickOptions.BREAK_IF_NPC_HPBARUP_INTERACTING_WITH_OTHERPLAYER
Using ATTACK_NPC_CONDITION_CHECKS will activate both the above flags, Same behavior as before.
UberClickOptions.BREAK_IF_NO_INVENTORY_ITEM_SELECTION
UberClickOptions.USE_MENU_BUT_DONT_SELECT - leaves the menu open