Auto relog when GM found

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Message
Author
zykesphere
Noob
Noob
Posts: 7
Joined: 17 Sep 2014, 03:35
Noob?: Yes

Auto relog when GM found

#1 Post by zykesphere »

The server I'm playing have a @whogm command, what I want to do is check every 20 minutes if there is a GM then logout and log-in again after 5 minutes. I'm really having a hard time on making this to work., Thanks hopefully someone can solve this :)

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: Auto relog when GM found

#2 Post by SkylorD »

What have you done about this?
"I'm really having a hard time on making this to work."

Tried something?
Learn rules

zykesphere
Noob
Noob
Posts: 7
Joined: 17 Sep 2014, 03:35
Noob?: Yes

Re: Auto relog when GM found

#3 Post by zykesphere »

SkylorD wrote:What have you done about this?
"I'm really having a hard time on making this to work."

Tried something?

ummm actually, I have'nt started it yet. Just trying to think on how then later I have realized that it will not work... :? But I know that this can be doable...


ok, I tried making one but I don't know if it will work fine. this is just me trying to make one xD

Code: Select all

automacro gmrelog {
do c @whogm
GM >= 1
call gmrelog2 
timeout 2000
}

macro gmrelog2 {
do relog 1800
release gmrelog
}

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: Auto relog when GM found

#4 Post by SkylorD »

You have 2 main options and a lot others.

1st -Macros.txt

GM Checker Macro - every 60seconds and if the specified GMs are online the bot automatically disconnects

2nd - Config.txt

Code: Select all

AvoidGM_talk
AvoidGM_near
AvoidGM_near inTown
AvoidGM_reconnect
http://wiki.openkore.com/index.php/Category:Config.txt

Read about.

You need change to 1 :

Code: Select all

AvoidGM_talk 1
AvoidGM_near 1
AvoidGM_near inTown 1
And here the time to reconnect :

Code: Select all

AvoidGM_reconnect

And pray to disconnect when GM is found.
But be careful with avoidGM_talk. You can't leave during a talk.

Next time, use the search. :D
Learn rules

zykesphere
Noob
Noob
Posts: 7
Joined: 17 Sep 2014, 03:35
Noob?: Yes

Re: Auto relog when GM found

#5 Post by zykesphere »

SkylorD wrote:You have 2 main options and a lot others.

1st -Macros.txt

GM Checker Macro - every 60seconds and if the specified GMs are online the bot automatically disconnects

2nd - Config.txt

Code: Select all

AvoidGM_talk
AvoidGM_near
AvoidGM_near inTown
AvoidGM_reconnect
http://wiki.openkore.com/index.php/Category:Config.txt

Read about.

You need change to 1 :

Code: Select all

AvoidGM_talk 1
AvoidGM_near 1
AvoidGM_near inTown 1
And here the time to reconnect :

Code: Select all

AvoidGM_reconnect

And pray to disconnect when GM is found.
But be careful with avoidGM_talk. You can't leave during a talk.

Next time, use the search. :D

I already know that... :geek: what I want is if I check if there is a GM it will automatically disconnect then relog after 10-15 minutes.

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: Auto relog when GM found

#6 Post by SkylorD »

automacro gmrelog {
do c @whogm
GM >= 1

call gmrelog2
timeout 2000
}

macro gmrelog2 {
do relog 1800
release gmrelog
}
There isn't a condition to check this. "GM >= 1"

You need to create 2 automacros, one for type c @whogm and another to check the message.

Check this :

http://forums.openkore.com/viewtopic.php?f=33&t=11126

Here :
automacro checkgm {
location not #savemap
call checkgm2
timeout 60
}

macro checkgm2 {
do c @whogm
}

automacro gmdetected {
console "1 GM found."
call {
do quit
}
}
Change the do quit command to relog.

http://wiki.openkore.com/index.php/Relog

http://wiki.openkore.com/index.php/Macro_plugin
http://wiki.openkore.com/index.php/Macr ... n#Syntax_3

Read about this.
Learn rules

zykesphere
Noob
Noob
Posts: 7
Joined: 17 Sep 2014, 03:35
Noob?: Yes

Re: Auto relog when GM found

#7 Post by zykesphere »

SkylorD wrote:
automacro gmrelog {
do c @whogm
GM >= 1

call gmrelog2
timeout 2000
}

macro gmrelog2 {
do relog 1800
release gmrelog
}
There isn't a condition to check this. "GM >= 1"

You need to create 2 automacros, one for type c @whogm and another to check the message.

Check this :

http://forums.openkore.com/viewtopic.php?f=33&t=11126

Here :
automacro checkgm {
location not #savemap
call checkgm2
timeout 60
}

macro checkgm2 {
do c @whogm
}

automacro gmdetected {
console "1 GM found."
call {
do quit
}
}
Change the do quit command to relog.

http://wiki.openkore.com/index.php/Relog

http://wiki.openkore.com/index.php/Macro_plugin
http://wiki.openkore.com/index.php/Macr ... n#Syntax_3

Read about this.
Thanks for this., but can it check for every 15-20 minutes?

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: Auto relog when GM found

#8 Post by SkylorD »

timeout <n>
Waits at least for <n> seconds before this automacro can be triggered again.
May be used only once per automacro block.
Learn rules

zykesphere
Noob
Noob
Posts: 7
Joined: 17 Sep 2014, 03:35
Noob?: Yes

Re: Auto relog when GM found

#9 Post by zykesphere »

SkylorD wrote:timeout <n>
Waits at least for <n> seconds before this automacro can be triggered again.
May be used only once per automacro block.

Thanks Sky! :D

Post Reply