Is there a way to make my bot disconnect when it is slept? I know a status ID exists for being in the sleep state, but how do I get openkore to disconnect when that status is active?
Also, is there a way to make my bot stop completely (not disconnect, but clear the AI queue and switch to manual mode) if it gets slept? I read elsewhere, logging out when getting PM'ed by a GM will result in a ban. What I rather do is reply to the GM with hello and then have to bot completely stop whatever it is doing and remain in manual mode until I come back to manually start it again.
Make bot disconnect when slept
Moderator: Moderators
-
- Plain Yogurt
- Posts: 59
- Joined: 26 Aug 2011, 04:45
- Noob?: Yes
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: Make bot disconnect when slept
doCommand or macro.
-
- Plain Yogurt
- Posts: 59
- Joined: 26 Aug 2011, 04:45
- Noob?: Yes
Re: Make bot disconnect when slept
I was looking through the status txt file and could not find the code for "sleep" status. I can only find one for "deep sleep". The GM casted regular sleep on my bot, so how do I trigger for this type of sleep?
Here is the line in the log file when the GM started sleeping my bot randomly. I know none of the monsters in the zone I was botting can cast sleep and the GM started PM me shortly after a few random sleeps.
Here is the line in the log file when the GM started sleeping my bot randomly. I know none of the monsters in the zone I was botting can cast sleep and the GM started PM me shortly after a few random sleeps.
Code: Select all
[Jan 4 11:09:09 2012.41] You are now: state: Sleep
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: Make bot disconnect when slept
STATE_id_handle.txtguytwo wrote:You are now: state
statusnametable.txt
-
- Plain Yogurt
- Posts: 59
- Joined: 26 Aug 2011, 04:45
- Noob?: Yes
Re: Make bot disconnect when slept
So would the code be something like this?
Now how do I write a command to respond to any PM from someone with the words IRO GM in their name with a "hello"? Thanks.
Code: Select all
doCommand ai clear{
whenStatusActive bodystate_sleep}
doCommand ai off{
whenStatusActive bodystate_sleep}
-
- Plain Yogurt
- Posts: 59
- Joined: 26 Aug 2011, 04:45
- Noob?: Yes
Re: Make bot disconnect when slept
Is there a way to have openkore run a external batch file based on a trigger event of receiving a private GM chat?
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: Make bot disconnect when slept
OpenKore's Utils::launchApp or Perl's system.
-
- Plain Yogurt
- Posts: 59
- Joined: 26 Aug 2011, 04:45
- Noob?: Yes
Re: Make bot disconnect when slept
Actually, how do I change a config variable (like attackauto) using the above code block? Is there a do command that I use to change attackauto to 0 and reload the config file to make it active?guytwo wrote:So would the code be something like this?
Now how do I write a command to respond to any PM from someone with the words IRO GM in their name with a "hello"? Thanks.Code: Select all
doCommand ai clear{ whenStatusActive bodystate_sleep} doCommand ai off{ whenStatusActive bodystate_sleep}
-
- Spam Generator
- Posts: 499
- Joined: 04 Apr 2008, 09:30
- Noob?: No
- Location: Melbourne, City of beer and awful sushis
Re: Make bot disconnect when slept
1. if you want to disconnect (say relog), use:guytwo wrote:Actually, how do I change a config variable (like attackauto) using the above code block? Is there a do command that I use to change attackauto to 0 and reload the config file to make it active?guytwo wrote:So would the code be something like this?
Now how do I write a command to respond to any PM from someone with the words IRO GM in their name with a "hello"? Thanks.Code: Select all
doCommand ai clear{ whenStatusActive bodystate_sleep} doCommand ai off{ whenStatusActive bodystate_sleep}
Code: Select all
doCommand relog {
whenStatusActive sleep
}
Make Openkore Awesome. Join the team.