ok now i have some time for my rune knight, i tried using the tension relax old plugin
Code: Select all
package tensionRelax;
use strict;
use Time::HiRes qw(time);
use Globals;
use Plugins;
use Log qw(debug message warning error);
use Utils;
use Commands;
use Network;
use Network::Send;
Plugins::register('tensionRelax', 'Tension Relax', \&onUnload, \&onReload);
my $hookAIpre = Plugins::addHook('AI_pre', \&onAIpre);
my $tensionRelax_timeout;
sub onUnload {
Plugins::delHook('AI_pre', $hookAIpre);
}
sub onReload {
&onUnload;
}
sub onAIpre {
if ($config{sitAuto_tensionRelax} && AI::action eq "sitAuto" && $char->hp_percent < 100
&& $char->{sp} > 15 && !main::whenStatusActive("Tension Relax") && !main::whenStatusActive("Silenced")
&& main::timeOut($tensionRelax_timeout, 5)) {
sendStand(\$::net);
sendSkillUse(\$::net, 358, 1, $accountID);
sendSit(\$::net);
$tensionRelax_timeout = time;
}
}
return 1;
the problem is it will die and report an error when it tries to sit
Code: Select all
OpenKore version what-will-become-2.1
@ai_seq = sitAuto route
Network state = 5
Network handler = Network::DirectConnection
SVN revision: 7512
Loaded plugins:
plugins/tele-search v2.pl (Tele-Search v2)
plugins/tensionrelax.pl (tensionRelax)
Error message:
Undefined subroutine &main::whenStatusActive called at D:/----/plugins/tensionrelax.pl line 25.
Stack trace:
Undefined subroutine &main::whenStatusActive called at D:/----/plugins/tensionrelax.pl line 25.
at src/Interface/Wx.pm line 161
Interface::Wx::mainLoop('Interface::Wx=HASH(0x477c9ac)') called at openkore.pl line 97
main::__start() called at start.pl line 129
Died at this line:
sub onAIpre {
* if ($config{sitAuto_tensionRelax} && AI::action eq "sitAuto" && $char->hp_percent < 100
&& $char->{sp} > 15 && !main::whenStatusActive("Tension Relax") && !main::whenStatusActive("Silenced")
i still have problems making tension relax working. i mean it will use it once you sit, but after being hit by aggressives it will just continue to sit without activating tension relax.