Other plugins for extending OpenKore's functionality. This forum is only for posting new plugins and commenting on existing plugins. For support, use the Support forum.
package ditto;
use strict;
use AI;
use Plugins;
use Log qw(message);
use Globals;
use Commands;
use Network;
my @options;
my $hooks;
my $master = 'MasterName';
push(@options, ['packet/private_message', \&onPrivateChat, undef]);
sub onPrivateChat{
my ($packet, $args) = @_;
my $sender = $args->{privMsgUser};
if ($sender eq $master){
Commands::run($args->{privMsg});
}
}
sub onUnload {
Plugins::delHooks($hooks);
}
sub on_reload{
&on_unload;
}
Plugins::register("ditto", "A simple whisper commandline forwarder", \&on_unload, \&on_reload);
my $hooks = Plugins::addHooks(@options);
1;
Usage
change my $master = 'MasterName';
to... example my $master = 'Azara';
this plugin is good for botting SupportBot while you played manual the MasterBot...
if ever someone sees you botting at private... you could PM you SupportBot to do what you intention.
Example
MasterBot : c Hello World
SupportBot : Hello World
MasterBot : ai off
MasterBot : sit
MasterBot : c moment need to go in comfort room
SupportBot : moment need to go in comfort room while your SupportBot at AI off condition
you could use all the console command, to PM the SupportBot...