Any way to log out when using disconnect options w xkore 1?
Moderators: Moderators, Documentation Writers
Any way to log out when using disconnect options w xkore 1?
I'm using xkore 1 and when I set the options to disconnect when I run out of items or whatever, it leave my character logged in and just closes the bot program. Is there any way to make it log out before the bot program closes?
Re: Any way to log out when using disconnect options w xkore 1?
Use the macro and command charselect
Re: Any way to log out when using disconnect options w xkore 1?
Thanks, but can you help me with the macro? Actually I'm trying to use it with dcOnPlayer, and from a skim of the macro guide I'm not sure if that's even possible. The "player" command looks like it only works if you specify names.
Re: Any way to log out when using disconnect options w xkore 1?
open file \src\AI\CoreLogic.pm
find function:
and paste the line: "$messageSender->sendQuit();"
find function:
Code: Select all
sub processDcOnPlayer {
# Disconnect when a player is detected
if (!$field->isCity && !AI::inQueue("storageAuto", "buyAuto") && $config{dcOnPlayer}
&& ($config{'lockMap'} eq "" || $field->baseName eq $config{'lockMap'})
&& !isSafe() && timeOut($AI::Temp::Teleport_allPlayers, 0.75)) {
error T("Auto disconnecting on Player!\n");
chatLog("k", T("*** Nearby is another player, auto disconnect! ***\n"));
quit();
}
}
sub processDcOnPlayer {
# Disconnect when a player is detected
if (!$field->isCity && !AI::inQueue("storageAuto", "buyAuto") && $config{dcOnPlayer}
&& ($config{'lockMap'} eq "" || $field->baseName eq $config{'lockMap'})
&& !isSafe() && timeOut($AI::Temp::Teleport_allPlayers, 0.75)) {
$messageSender->sendQuit();
error T("Auto disconnecting on Player!\n");
chatLog("k", T("*** Nearby is another player, auto disconnect! ***\n"));
quit();
}
}