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 arrowCraft;
#
# This plugin is licensed under the GNU GPL
# Copyright 2005 by kaliwanagan
# Fixed for OpenKore 2.0.5+
# --------------------------------------------------
#
# How to install this thing..:
#
# in control\config.txt add:
#
#arrowCraft Zargon {
# delay 3 # specify number of seconds to wait before crafting another arrow; defaults to 1
# inInventory Silver Arrow <10
# onAction attack
#}
use strict;
use Plugins;
use Globals;
use Log qw(message warning error debug);
use AI;
use Misc;
use Network;
use Network::Send;
Plugins::register('arrowCraft', 'use arrow craft without SP', \&Unload);
my $hook = Plugins::addHook('AI_pre', \&cast);
sub Unload {
Plugins::delHook('AI_pre', $hook);
}
my %delay;
sub cast {
my $prefix = "arrowCraft_";
my $i = 0;
while (exists $config{$prefix.$i}) {
my $item = $char->inventory->getByName($config{$prefix.$i});
$delay{'timeout'} = $config{$prefix.$i."_delay"} || 1;
if ((@{$char->{inventory}->getItems()}) &&
(main::timeOut(\%delay)) &&
($item->{'amount'} > 0) &&
(main::checkSelfCondition($prefix.$i)))
{
#Remove the comment bellow if you play on eathena server
#Commands::run('arrowcraft use');
sendArrowCraft($messageSender,$item->{'nameID'});
message ("You use Arrow Craft on item: " . $item->{'name'} . "\n", "selfSkill");
$delay{'time'} = time;
}
$i++;
}
}
return 1;
Red Blood 1
Live Coal 1
Burning Hair 1
Buning Heart 1
this configuration only just work when kore log-in... but while on the actual botting in the mid attack on the monster or in the route AI... kore just ignored this configuration...
automacro arrowCraft {
eval AI::action eq "attack" # when ai seq is attack
inventory "Silver Arrow" < 10 # when silver arrow less than 10
delay 3 # delay before call
call {
do ss 147 1 # here your skill Arrow Crafting
}
}