Openkore.com

OpenKore Forums
It is currently 22 Nov 2017, 10:31

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Use "Task::UseSkill" Error Help!!
PostPosted: 23 Apr 2015, 15:28 
Offline
Noob
Noob

Joined: 25 Jan 2013, 06:19
Posts: 14
Code:
sub processAutobuyingstore {
   if ($config{'BuyingStore'} && !AI::isIdle) {
      $timeout{ai_shop}{time} = time;
   }

   if ($config{'BuyingStore'} && AI::isIdle && $conState == 5 && !$char->{sitting} && timeOut($timeout{ai_shop}) && !$buyingstorestarted
      && $field->baseName eq $config{'lockMap'} && !$taskManager->countTasksByName('OpenBuying')) {
      if ($config{'shop_useSkill'}) {
         my $skill = new Skill(auto => "ALL_BUYING_STORE");

         require Task::UseSkill;
         my $skillTask = new Task::UseSkill(
            actor => $skill->getOwner,
            skill => $skill,
            priority => Task::USER_PRIORITY
         );
         my $task = new Task::Chained(
            name => 'OpenBuying',
            tasks => [
               new Task::ErrorReport(task => $skillTask),
               Task::Timeout->new(
                  function => sub {main::OpenBuying()},
                  seconds => $timeout{ai_shop_useskill_delay}{timeout} ? $timeout{ai_shop_useskill_delay}{timeout} : 5,
               )
            ]
         );
         $taskManager->add($task);
      } else {
         main::OpenBuying();
      }
   }
}


Error: Casting is supposed to be finished now, but nothing happened.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group