Openkore.com

OpenKore Forums
It is currently 16 Oct 2018, 03:31

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: relogDelay if monster set to relog (not relog only in 30sec)
PostPosted: 09 Apr 2009, 09:01 
Offline
Testers Team
Testers Team

Joined: 04 Apr 2008, 21:53
Posts: 106
Location: Asia
find sub processAvoid inside coreLogic.pm

Code:
sub processAvoid {
   ##### AVOID GM OR PLAYERS #####
   if (timeOut($timeout{ai_avoidcheck})) {
      avoidGM_near() if ($config{avoidGM_near} && (!$cities_lut{"$field{name}.rsw"} || $config{avoidGM_near_inTown}));
      avoidList_near() if $config{avoidList};
      $timeout{ai_avoidcheck}{time} = time;
   }
   foreach (@monstersID) {
      next unless $_;
      if (mon_control($monsters{$_}{name},$monsters{$_}{nameID})->{teleport_auto} == 3) {
         warning TF("Disconnecting for 30 secs to avoid %s\n", $monsters{$_}{name});
         relog(30);
      }
   }
}


change it to :-
Code:
sub processAvoid {
   ##### AVOID GM OR PLAYERS #####
   if (timeOut($timeout{ai_avoidcheck})) {
      avoidGM_near() if ($config{avoidGM_near} && (!$cities_lut{"$field{name}.rsw"} || $config{avoidGM_near_inTown}));
      avoidList_near() if $config{avoidList};
      $timeout{ai_avoidcheck}{time} = time;
   }
   foreach (@monstersID) {
      next unless $_;
      if ((mon_control($monsters{$_}{name},$monsters{$_}{nameID})->{teleport_auto} == 3) && exists $config{relogDelay}) {
         warning TF("Disconnecting for %s secs to avoid %s\n", $config{relogDelay}, $monsters{$_}{name});
         relog($config{relogDelay});
      }
      if ((mon_control($monsters{$_}{name},$monsters{$_}{nameID})->{teleport_auto} == 3) && (!exists $config{relogDelay})) {
         warning TF("Disconnecting for 30 secs to avoid %s\n", $monsters{$_}{name});
         relog(30);
      }
   }
}


example :
inside config.txt :-
Code:
relogDelay 300

mon_control.txt :-
Code:
Poring 0 3 0

result:-
Image

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: relogDelay if monster set to relog (not relog only in 30sec)
PostPosted: 26 Nov 2012, 17:32 
Offline
Plain Yogurt
Plain Yogurt

Joined: 12 Nov 2012, 09:22
Posts: 61
Hi Devs,


I think this is a very good feature... If possible please add to SVN.

Thanks!!


Top
 Profile  
 
 Post subject: Re: relogDelay if monster set to relog (not relog only in 30sec)
PostPosted: 12 Mar 2013, 16:11 
Offline
Moderators
Moderators
User avatar

Joined: 01 Feb 2010, 17:37
Posts: 211
Location: Brazil - MG
Maybe each monster should have it's own relog delay to be set inside mon_control. Again, this is a nice feature.

_________________
Brazilian Community: http://openkore-brasil.com
BetaKore: https://code.google.com/p/betakore/


Top
 Profile  
 
 Post subject: Re: relogDelay if monster set to relog (not relog only in 30sec)
PostPosted: 12 Mar 2013, 17:30 
Offline
OpenKore Monk
OpenKore Monk

Joined: 08 Jun 2012, 15:42
Posts: 401
Location: Brazil
Implemented!
Sorry for the delay of several years for something so simple and useful

_________________
Image


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

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