Any way to log out when using disconnect options w xkore 1?

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
link
Noob
Noob
Posts: 10
Joined: 17 Apr 2014, 22:51
Noob?: No

Any way to log out when using disconnect options w xkore 1?

#1 Post by link »

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?

User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

Re: Any way to log out when using disconnect options w xkore 1?

#2 Post by 4epT »

Use the macro and command charselect
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

link
Noob
Noob
Posts: 10
Joined: 17 Apr 2014, 22:51
Noob?: No

Re: Any way to log out when using disconnect options w xkore 1?

#3 Post by link »

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.

User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

Re: Any way to log out when using disconnect options w xkore 1?

#4 Post by 4epT »

open file \src\AI\CoreLogic.pm
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();
	}
}
and paste the line: "$messageSender->sendQuit();"
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();
}
}
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

Locked