waitForParty -- Don't get separeted! by Chontrad

Other plugins for extending OpenKore's functionality. This forum is only for posting new plugins and commenting on existing plugins. For support, use the Support forum.

Moderator: Moderators

Message
Author
Jayk
Noob
Noob
Posts: 1
Joined: 21 May 2009, 18:42
Noob?: No

Re: waitForParty -- Don't get separeted! by Chontrad

#71 Post by Jayk »

None of the receive.pm download links are working. I tried to edit my own receive file with the above edits, but that did not work. Could someone please upload another receive.pm that works with this plugin please?

litaking
Noob
Noob
Posts: 2
Joined: 11 Oct 2008, 18:35
Noob?: No

Re: waitForParty -- Don't get separeted! by Chontrad

#72 Post by litaking »

Please fix the DL links, thank you!

Minos
Noob
Noob
Posts: 1
Joined: 27 Jul 2009, 12:28
Noob?: No
Location: Brazil

Re: waitForParty -- Don't get separeted! by Chontrad

#73 Post by Minos »

Every link's off =/

Could someone please upload another Receive.pm and wait4party plugin please? Sorry i don't speak english

@Mucilon

Você é brasileiro? sabe falar português? Sou membro do Openkore Brasil e estou dando uma olhada aqui no internacioanal
...........

smopuiM
Noob
Noob
Posts: 1
Joined: 03 Aug 2009, 23:37
Noob?: Yes

Re: waitForParty -- Don't get separeted! by Chontrad

#74 Post by smopuiM »

can anybody upload again this plugin? =/

cheataahh
Noob
Noob
Posts: 15
Joined: 31 Jul 2009, 23:46
Noob?: No
Location: Land of Milk & Honey

Re: waitForParty -- Don't get separeted! by Chontrad

#75 Post by cheataahh »

all links are dead.

cheapshot111
Noob
Noob
Posts: 1
Joined: 19 Mar 2009, 01:14
Noob?: Yes

Re: waitForParty -- Don't get separeted! by Chontrad

#76 Post by cheapshot111 »

update link pls.
thx :mrgreen:

madshark
Noob
Noob
Posts: 10
Joined: 02 Jan 2009, 12:48
Noob?: Yes

Re: waitForParty -- Don't get separeted! by Chontrad

#77 Post by madshark »

I don't think that this plugin works well with new version of openkore anymore (2.0.7) because the receive.pm file was different in 2.0.6..correct me if i' wrong..hope someone can rewrite the code to make it run well on 2.0.7 for this plugin works great.

madshark
Noob
Noob
Posts: 10
Joined: 02 Jan 2009, 12:48
Noob?: Yes

Re: waitForParty -- Don't get separeted! by Chontrad

#78 Post by madshark »

It looks like i'm wrong..this plugin also works perfect with the new openkore version.

hahajung
Noob
Noob
Posts: 1
Joined: 02 Jul 2008, 14:33
Noob?: Yes

Re: waitForParty -- Don't get separeted! by Chontrad

#79 Post by hahajung »

can someone upload the files please???
all the links are dead and i would appreciate a lot if someone went through the trouble of uploading them
:D

gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: waitForParty -- Don't get separeted! by Chontrad

#80 Post by gamenikko »

this is the file ^_^ enjoy
credits belongs to the authors!

http://www.fileden.com/files/2009/7/4/2 ... rParty.rar

---i guess receive.pm and the plugin doesnt work for 2.0.7 =0

use this for 2.0.7, just use ur normal receive.pm [no choice, cuz ders no translations yet! =p]
hope it will work,
paste this to notepad and rename it as waitParty.pl,
be sure to rename the file extension http://www.mediacollege.com/microsoft/w ... hange.html

put this inside your config.txt

follow_wait 1
follow_wait_inLockOnly 1
follow_wait_timeOut 5
follow_wait_noPartyMember NameOfThePartyMemberYouDontWanT2Wait

Code: Select all

###########################
# Name of Plugin: waitParty.pl
# Version: 1.0 (9/05/2008)
# Version of Openkore Required: OpenKore  2.0.5.1

#follow_wait 1
#follow_wait_inLockOnly 1
#follow_wait_timeOut 5
#follow_wait_noPartyMember NNNNNNName



package waitParty;

use Plugins;
use Globals;
use Log qw(message error warning debug);

our $findParty;
our $temp;
my %Timecount;

Plugins::register('waitParty', 'Wait and come back for party', \&unload, \&unload);
my $hooks = Plugins::addHooks(   ['actor_player_add', \&waitForOthers, undef],
            ['actor_player_remove', \&waitForOthers, undef],
            ['party_share', \&waitForOthers, undef],
            ['party_move', \&waitForOthers, undef],
            ['AI_pre', \&waitForOthers, undef],
            ['actor_action_sit', \&waitForOthers, undef],
            ['actor_action_stand', \&waitForOthers, undef]);

sub unload {
   Plugins::delHooks($hooks);
}

sub waitForOthers {
   return unless $config{'follow_wait'};
   return unless defined @partyUsersID;

   #return if bot isn't at lockmap
   return if (($config{'follow_wait_inLockOnly'} > 0) && ($field{name} ne $config{lockMap}));

   my $actor;
   foreach (@partyUsersID) {
      next if $_ eq $accountID;
      next if $_ eq "";
      $actor = $playersList->getByID($_);
      
      next if ($char->{'party'}{'users'}{$_}{'name'} eq $config{'follow_wait_noPartyMember'});
      
      if(!$actor && $char->{'party'}{'users'}{$_}{'online'}) {
         my %party;

         $party{x} = $char->{party}{users}{$_}{pos}{x};
         $party{y} = $char->{party}{users}{$_}{pos}{y};
         ($party{map}) = $char->{party}{users}{$_}{map} =~ /([\s\S]*)\.gat/;

         if ($party{map} ne $field{name} || $party{x} == 0 || $party{y} == 0) {
            delete $party{x};
            delete $party{y};
         }

         return unless ($party{map} ne $field{name} || exists $party{x});

         if ($Timecount{start} eq ''){
            $Timecount{start} = time;
         }
         $Timecount{current} = time;

         $Timecount{toreset} = $config{'follow_wait_timeOut'};
         if ($Timecount{toreset} eq '') {
            $Timecount{toreset} = 30;
         }
         $Timecount{after} = $Timecount{start} + $Timecount{toreset};
         if ($Timecount{current} >= $Timecount{after}){
            $Timecount{start} = time;
         }

         if (($Timecount{current} >= $Timecount{after})
            && ((exists $ai_v{party} && AI::distance(\%party, $ai_v{party}) > 15)
            || $party{map} != $ai_v{party}{map}
            || (AI::timeOut($ai_v{party}{time}, 15) && AI::distance(\%party, $char->{pos_to}) > $config{followDistanceMax}))) {
         
               $ai_v{party}{x} = $party{x};
               $ai_v{party}{y} = $party{y};
               $ai_v{party}{map} = $party{map};
               $ai_v{party}{time} = time;

               warning "Party is far way.\n", "waitParty";

               if ($ai_v{party}{map} ne $field{name}) {
               message "Searching party: $ai_v{party}{map}\n", , "follow";
               } elsif (AI::distance(\%party, $char->{pos_to}) > $config{followDistanceMax} ) {
               message "Searching party: $ai_v{party}{map} ($ai_v{party}{x},$ai_v{party}{y})\n", "follow";
               } else {
               return;
               }
               AI::clear("move", "route", "mapRoute");
               AI::ai_route($ai_v{party}{map}, $ai_v{party}{x}, $ai_v{party}{y}, distFromGoal => $config{followDistanceMin});
               my $followIndex = AI::findAction("follow");
               if (defined $followIndex) {
               $ai_seq_args[$followIndex]{ai_follow_lost_end}{timeout} = $timeout{ai_follow_lost_end}{timeout};
               }
           }
           $findParty = 1;
           return;
       } elsif ($findParty && ($actor = $playersList->getByID($_))) {
           warning "Party Found.\n", "waitParty";
           $findParty = 0;
      
   AI::clear("move", "route");


       } elsif ($findParty) {
           warning "Party is offline.\n", "waitParty";
           $findParty = 0;
           return;
       }
   }
}
1;
You can also try my Party Search Macro =p
it is simple and working well.
here:
http://forums.openkore.com/viewtopic.php?f=32&t=8444
Just like old times.

Post Reply