Problem:
The problem is when openkore trying to teleport using an accessory with creamy card.
Hypothetical situation: the bot is working normally, he walks, attacks, and when need to teleport for the first time he equip the acessory as in the line "teleportAuto_equip_rightAccessory Clip [Creamy Card] [1]", and when back to attack the monsters (after teleport) him removes creamy and equip the usual accessory, so far so normal. The problem occurs when the teleporter is required again, it just hangs there and does not teleport, and will not appear on the error console. That happens because he doesn't equip Clip again.
I made many tests, he did not need to attack to present the problem if you give the command to teleport and then unequip the tab and send teleport again it crashes.
Solution:
Problem solved, after much rummaging through the code, I found where the problem was and corrected.
What was happening was that after equip creamy Kore understood that he had the ability to "teleport" as fixed, he made no assumption that he could lose this activity when changing accessories.
In src/Misc.pm we have the useTeleport function:
Code: Select all
if ($char->{skills}{AL_TELEPORT}) {
$sk_lvl = $char->{skills}{AL_TELEPORT}{lv};
}
Code: Select all
if ($char->{skills}{AL_TELEPORT} && !Actor::Item::scanConfigAndCheck('teleportAuto_equip')) {
$sk_lvl = $char->{skills}{AL_TELEPORT}{lv};
}
I want to thanks for Alzerbaijao for finding and fixing this bug, everything i wrote up here was quotes from his question/solution. He also said that this was a bug added by a weekly maintenance, which is very strange.
Please add this to the source.