Help with AB out of the party / Hook party´s name

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Message
Author
Sophos
Human
Human
Posts: 22
Joined: 20 Jul 2009, 01:58
Noob?: Yes

Help with AB out of the party / Hook party´s name

#1 Post by Sophos »

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

Kryptonite
Noob
Noob
Posts: 6
Joined: 16 Jun 2012, 01:40
Noob?: No

Re: Help with AB out of the party / Hook party´s name

#2 Post by Kryptonite »

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.

Sophos
Human
Human
Posts: 22
Joined: 20 Jul 2009, 01:58
Noob?: Yes

Re: Help with AB out of the party / Hook party´s name

#3 Post by Sophos »

@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

Sophos
Human
Human
Posts: 22
Joined: 20 Jul 2009, 01:58
Noob?: Yes

Re: Help with AB out of the party / Hook party´s name

#4 Post by Sophos »

Guys, please help me because I need this solution ...

I tried searching alone but got no success ...
[]s

SophoS

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: Help with AB out of the party / Hook party´s name

#5 Post by SkylorD »

Don't lose your hope boy !


sub cmdPlayerList {

Code: Select all

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.
Learn rules

Sophos
Human
Human
Posts: 22
Joined: 20 Jul 2009, 01:58
Noob?: Yes

Re: Help with AB out of the party / Hook party´s name

#6 Post by Sophos »

SkylorD wrote:Don't lose your hope boy !

sub cmdPlayerList {

Code: Select all

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

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: Help with AB out of the party / Hook party´s name

#7 Post by SkylorD »

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
Learn rules

Post Reply