AI on startup

This section is created for developers and non-developers who think that he/she has a good (and realistic) idea that might contribute to the OpenKore community.

Moderator: Moderators

Message
Author
Silence
Human
Human
Posts: 26
Joined: 17 Aug 2008, 01:20
Noob?: No

AI on startup

#1 Post by Silence »

I would like to have a function that when I log in that it sets the AI to what ever it is set to.

I often play on Xkore 1 and use kore as a way of moving around and auto use pots but sometimes when I start it up I don't want the bot to start running about. When this happens it can take a while to get it under control.

aiOnStartup
Nothing is automatic
0 = automatic
1 = manual
2 = off

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: AI on startup

#2 Post by EternalHarvest »

Easy to implement with a plugin:

Code: Select all

package ai;
use strict;
use Globals;
Plugins::addHook(start3 => sub { $AI = $config{ai} if $config{ai} ne '' });
"ai" option with internal conventions, where 0 is off and 1 is manual.

Silence
Human
Human
Posts: 26
Joined: 17 Aug 2008, 01:20
Noob?: No

Re: AI on startup

#3 Post by Silence »

thanks, it works.

Though this should be added to kore and it seems like a easy mod

Post Reply