Openkore.com

OpenKore Forums
It is currently 17 Nov 2019, 03:44

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Help with AB out of the party / Hook party´s name
PostPosted: 13 May 2016, 19:58 
Offline
Human
Human
User avatar

Joined: 20 Jul 2009, 01:58
Posts: 22
Gentlemen,
good afternoon

I need to develop a macro to give bufs the members of a particular party and the AB stay out of the party.

I thought about getting the hook that is responsible for the party's name (the same as shown in pl command "player code") and make a automacro.

What I need from you is the following:

1. What is the hook responsible for this party name
2. How can I use this in a automacro.

Thank you.

SophoS

======================================================================================
Senhores,
boa tarde

Estou precisando desenvolver uma macro para dar bufs a membros de uma determinada PT e com o AB fique fora da PT.

Eu pensei em pegar o hook que é responsável pelo nome da PT (o mesmo que mostra no comando pl "código do jogador") e fazer uma automacro.

O que eu preciso dos senhores é o seguinte:

1. Qual o hook responsável por este nome da PT
2. Como posso usar isto em uma automacro.

Obrigado.

SophoS

_________________
[]s

SophoS

_________________
[]s

SophoS


Top
 Profile  
 
 Post subject: Re: Help with AB out of the party / Hook party´s name
PostPosted: 16 May 2016, 22:58 
Offline
Noob
Noob

Joined: 16 Jun 2012, 01:40
Posts: 6
Hi,
I can't exactly answer what you're asking because I don't have any coding knowledge.. I don't even know what a hook means.. :D :D :D

But I think I understand what you're trying to do.. And my alternative is to simply use your config.txt Avoid using macros at all.. Like so -


partySkill Blessing {
lvl 10
dist
maxCastTime 0
minCastTime 0
hp
sp
homunculus_hp
homunculus_sp
homunculus_dead
onAction
whenStatusActive
whenStatusInactive
whenFollowing
spirit
amuletType
aggressives
monsters
notMonsters
monstersCount
stopWhenHit 0
inLockOnly 0
notWhileSitting 0
notInTown 0
timeout 0
disabled 0
manualAI 0
target Playername1, Playername2, Playername3
target_hp
target_isJob
target_isNotJob
target_isGuild Guildname1, Guildname2, Guildname3
target_whenStatusActive
target_whenStatusInactive Blessing
target_aggressives
target_monsters
target_timeout 0
target_deltaHp
target_dead 0
inInventory
isSelfSkill 0
notPartyOnly 1
}

You can make this block trigger, by manually adding the names of the players who will be in that party in the "Target" condition. Or you can add the guild names of all those party members in the "target_isGuild" condition.

Hope this helps.


Top
 Profile  
 
 Post subject: Re: Help with AB out of the party / Hook party´s name
PostPosted: 11 Aug 2016, 07:44 
Offline
Human
Human
User avatar

Joined: 20 Jul 2009, 01:58
Posts: 22
@Kryptonite,

I appreciate the initiative for the reply ... but unfortunately it is not what I need ...

I had already thought of this alternative, but it becomes infeasible because I have to keep changing the names (remember that some names have several characters) which would make it unworkable.

I need is the bot identify whether the player or not PT, if it's the buff (automatically).

Anyway I thank you very much, the Brazilian forum I'm still unanswered - but still with hope.

I tried to get perl to study but I ended up not getting much success ... So I ended up taking to check the topic was already losing hope ....

kkkkk

Thank you again.

Sophos

_________________
[]s

SophoS


Top
 Profile  
 
 Post subject: Re: Help with AB out of the party / Hook party´s name
PostPosted: 28 Aug 2016, 21:00 
Offline
Human
Human
User avatar

Joined: 20 Jul 2009, 01:58
Posts: 22
Guys, please help me because I need this solution ...

I tried searching alone but got no success ...

_________________
[]s

SophoS


Top
 Profile  
 
 Post subject: Re: Help with AB out of the party / Hook party´s name
PostPosted: 16 Dec 2016, 21:46 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1215
Location: Brazil
Don't lose your hope boy !


sub cmdPlayerList {

Code:
if ($args eq "p") {
      my $maxpl;
      my $maxplp;
      $msg = center(T(" Party Player List "), 79, '-') ."\n".
         T("#    Name                                Sex   Lv   Job         Dist Coord\n");
      if ($playersList) {
         foreach my $player (@{$playersList->getItems()}) {
            my ($name, $dist, $pos);
            $name = $player->name;

            if ($char->{party}{name} eq ($player->{party}{name})) {

               if ($player->{guild} && %{$player->{guild}}) {
                  $name .= " [$player->{guild}{name}]";
               }
               $dist = distance($char->{pos_to}, $player->{pos_to});
               $dist = sprintf("%.1f", $dist) if (index ($dist, '.') > -1);
               $pos = '(' . $player->{pos_to}{x} . ', ' . $player->{pos_to}{y} . ')';

               $maxplp++;

               $msg .= swrite(
                  "@<<< @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< @<<<< @<<< @<<<<<<<<<< @<<< @<<<<<<<<<",
                  [$player->{binID}, $name, $sex_lut{$player->{sex}}, $player->{lv}, $player->job, $dist, $pos]);
            }
            $maxpl = @{$playersList->getItems()};
         }
      }
      $msg .= TF("Total party players: %s \n",$maxplp)  if $maxplp;
      if ($maxpl ne "") {
         $msg .= TF("Total players: %s \n",$maxpl);
      } else {
         $msg .= T("There are no players near you.\n");
      }
      $msg .= ('-'x79) . "\n";
      message $msg, "list";
      return;
   }


Please, create a plugin for us, with following thing :

Get all player names, and give timeouts for everyone. If he is near before the buffs, we can rebuf him.
Please, create for ARCHBISHOP, to use Increase AGI, or use AGI in AREA when so much players. !

You can invite everyone from party to came to the side of map, and talk some words, and then the bot can know he does part of the pt.
And then give timeout for everyone, and well for heal you can use sanctuary.

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

viewtopic.php?f=10&t=16117

Thanks for this Eternal! =D <3<3


Top
 Profile  
 
 Post subject: Re: Help with AB out of the party / Hook party´s name
PostPosted: 30 May 2017, 19:05 
Offline
Human
Human
User avatar

Joined: 20 Jul 2009, 01:58
Posts: 22
SkylorD wrote:
Don't lose your hope boy !

sub cmdPlayerList {

Code:
if ($args eq "p") {
      my $maxpl;
      my $maxplp;
      $msg = center(T(" Party Player List "), 79, '-') ."\n".
         T("#    Name                                Sex   Lv   Job         Dist Coord\n");
      if ($playersList) {
         foreach my $player (@{$playersList->getItems()}) {
            my ($name, $dist, $pos);
            $name = $player->name;

            if ($char->{party}{name} eq ($player->{party}{name})) {

               if ($player->{guild} && %{$player->{guild}}) {
                  $name .= " [$player->{guild}{name}]";
               }
               $dist = distance($char->{pos_to}, $player->{pos_to});
               $dist = sprintf("%.1f", $dist) if (index ($dist, '.') > -1);
               $pos = '(' . $player->{pos_to}{x} . ', ' . $player->{pos_to}{y} . ')';

               $maxplp++;

               $msg .= swrite(
                  "@<<< @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< @<<<< @<<< @<<<<<<<<<< @<<< @<<<<<<<<<",
                  [$player->{binID}, $name, $sex_lut{$player->{sex}}, $player->{lv}, $player->job, $dist, $pos]);
            }
            $maxpl = @{$playersList->getItems()};
         }
      }
      $msg .= TF("Total party players: %s \n",$maxplp)  if $maxplp;
      if ($maxpl ne "") {
         $msg .= TF("Total players: %s \n",$maxpl);
      } else {
         $msg .= T("There are no players near you.\n");
      }
      $msg .= ('-'x79) . "\n";
      message $msg, "list";
      return;
   }


Please, create a plugin for us, with following thing :

Get all player names, and give timeouts for everyone. If he is near before the buffs, we can rebuf him.
Please, create for ARCHBISHOP, to use Increase AGI, or use AGI in AREA when so much players. !

You can invite everyone from party to came to the side of map, and talk some words, and then the bot can know he does part of the pt.
And then give timeout for everyone, and well for heal you can use sanctuary.


SkylorD,

Sorry for the delay, I was a long time off rag and I came back a short time ago.

Regarding the suggestion, I thank the light ....

I would really like to make this plugin ... until I got to search, but I could not find an easy guide to start making the plugin ...

I have been openkore user for a long time, I know that nothing is given for free (and I am in favor of it) and due to this behavior, I feel that the community is not very friendly to teach (I understand, on the one hand People own life and do not have the patience/"saco" to be a teacher) ...

I've never needed to create something different since I use openkore for simple things, usually just for shop and slave ...

I think you are Brazilian, and if you have the patience, I would like to have some plugin teachings (even basic ones) to understand - so maybe I can do more complex later ...

As I was a long time off I have to reinstall everything ... then I'll test your suggestion ...

Thank you again

[]s

SophoS

_________________
[]s

SophoS


Top
 Profile  
 
 Post subject: Re: Help with AB out of the party / Hook party´s name
PostPosted: 09 Jun 2017, 01:25 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1215
Location: Brazil
It was great to have somekind of out/in party.
Buff all players.
And have your OWN AI, instead of use Curatio when there is only 1 player, try to heal it manually. Somekind of mana checker !
And this goes to the Bless, and increase agility/Kyrie eleison.

This part of working with plugin is not so hard.
We can mount a big plugin with 4 files, one for AI, one for players, one for party, one to self.

Since you can't get the player HP outside of the party, i recommend you buffs at first, and then heal manually until the player exits of the screen.
Then estabilish a max_value to heal. And then the AI make it, checking if player is monk, or paladin, or lord, or if this people has tao gunka, if possible ! And then talking to him share his equips

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

viewtopic.php?f=10&t=16117

Thanks for this Eternal! =D <3<3


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 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