thank you very much.ultragun wrote:take note this is for the plugin.
first add this to your config.txt
then copy the code:Code: Select all
sitAuto_tensionRelax 1
save it as tensionrelax.pl and put it in your plugins folder.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;
if you don't know how to use plugins, please read here:
http://forums.openkore.com/viewtopic.php?f=34&t=58
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)