yeah we both have the same problem

Moderators: waferbaron, Moderators
Code: Select all
automacro tensionrelax {
console /You are sitting./i
sp > 15%
status not Silenced
call {
do ss 358
}
timeout 2
}
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 {
return if (!$char->{skills}{LK_TENSIONRELAX} || $char->{skills}{LK_TENSIONRELAX}{lv} < 1);
if ($config{sitAuto_tensionRelax} && AI::action eq "sitAuto" && $char->hp_percent < 100
&& $char->{sp} > 15 && !$char->statusActive("Tension Relax") && !$char->statusActive("Silenced")
&& main::timeOut($tensionRelax_timeout, 5)) {
Commands::stand() if $char->{sitting};
$messageSender->sendSkillUse(358, $char->{skills}{LK_TENSIONRELAX}{lv}, $accountID);
$tensionRelax_timeout = time;
}
}
1;
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/macro/macro.pl (macro)
plugins/tele-search v2.pl (Tele-Search v2)
plugins/tensionrelax.pl (tensionRelax)
Error message:
Undefined subroutine &tensionRelax::stand called at D:/----/plugins/tensionrelax.pl line 30.
Stack trace:
Undefined subroutine &tensionRelax::stand called at D:/----/plugins/tensionrelax.pl line 30.
at src/Interface/Wx.pm line 161
Interface::Wx::mainLoop('Interface::Wx=HASH(0x4b0c9ac)') called at openkore.pl line 97
main::__start() called at start.pl line 129
Died at this line:
&& main::timeOut($tensionRelax_timeout, 5)) {
* stand();
$messageSender->sendSkillUse(358, $char->{skills}{LK_TENSIONRELAX}{lv}, $accountID);
change stand(); to Commands::stand() if $char->{sitting};ultragun wrote:no errors loading the plugin however it did have an error when it tries to sit down.
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/macro/macro.pl (macro) plugins/tele-search v2.pl (Tele-Search v2) plugins/tensionrelax.pl (tensionRelax) Error message: Undefined subroutine &tensionRelax::stand called at D:/----/plugins/tensionrelax.pl line 30. Stack trace: Undefined subroutine &tensionRelax::stand called at D:/----/plugins/tensionrelax.pl line 30. at src/Interface/Wx.pm line 161 Interface::Wx::mainLoop('Interface::Wx=HASH(0x4b0c9ac)') called at openkore.pl line 97 main::__start() called at start.pl line 129 Died at this line: && main::timeOut($tensionRelax_timeout, 5)) { * stand(); $messageSender->sendSkillUse(358, $char->{skills}{LK_TENSIONRELAX}{lv}, $accountID);
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 {
return if (!$char->{skills}{LK_TENSIONRELAX} || $char->{skills}{LK_TENSIONRELAX}{lv} < 1);
if ($config{sitAuto_tensionRelax} && AI::action eq "sitAuto" && $char->hp_percent < 100
&& $char->{sp} > 15 && !$char->statusActive("Tension Relax") && !$char->statusActive("Silenced")
&& main::timeOut($tensionRelax_timeout, 5)) {
Commands::stand() if $char->{sitting};
$messageSender->sendSkillUse(358, $char->{skills}{LK_TENSIONRELAX}{lv}, $accountID);
$tensionRelax_timeout = time;
}
}
1;
Code: Select all
sitAuto_tensionRelax 1
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 {
return if (!$char->{skills}{LK_TENSIONRELAX} || $char->{skills}{LK_TENSIONRELAX}{lv} < 1);
if ($config{sitAuto_tensionRelax} && AI::action eq "sitAuto" && $char->hp_percent < 100
&& $char->{sp} > 15 && !$char->statusActive("Tension Relax") && !$char->statusActive("Silenced")
&& main::timeOut($tensionRelax_timeout, 5)) {
Commands::stand() if $char->{sitting};
$messageSender->sendSkillUse(358, $char->{skills}{LK_TENSIONRELAX}{lv}, $accountID);
$tensionRelax_timeout = time;
}
}
1;