The following problem !

Discussion about everything RO and OpenKore related. This place is NOT for ANY kind of support questions.

Moderator: Moderators

Message
Author
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

The following problem !

#1 Post by sofax222 »

I has a little problem in following mode...
I am not sure is it a bug !?

The scenario is:
I has 3 roles AA, BB and CC, in the game.
Let AA create a party, BB and CC join the party what AA created.
And set the BB, CC into following mode, the following target is AA (AA is the leader).

In the lock map, they work fine... together to kill monsters...
When the AA initial the Auto-Storgae action, and leave the lock map routing back the city.
The BB and CC follow the AA to back the city (in the following mode).
But, walking through the un-lock field, the BB and CC activly to attack the monsters in the following.

So, I modify the code in "processAutoAttack" subroutine of src/AI/CoreLogic.pm, such as:
The original code:

Code: Select all

.....
			$routeIndex = AI::findAction("mapRoute") if (!defined $routeIndex);
			my $attackOnRoute;
			if (defined $routeIndex) {
				$attackOnRoute = AI::args($routeIndex)->{attackOnRoute};
			} else {
				$attackOnRoute = 2;
			}
....
My code:

Code: Select all

......
			$routeIndex = AI::findAction("mapRoute") if (!defined $routeIndex);
			my $attackOnRoute;
			if (defined $routeIndex) {
				$attackOnRoute = AI::args($routeIndex)->{attackOnRoute};
			} else {
				$attackOnRoute = $following ? 1 : 2;
			}
.....
I change the value of assignment for the $attackOnRoute.
It works, the BB and CC never attack activly the monsters in the following, walking through the un-lock field.
Is this a bug ??
Do I need to update the SVN ??

setsunaseiei
Human
Human
Posts: 38
Joined: 17 May 2011, 07:09
Noob?: No

Re: The following problem !

#2 Post by setsunaseiei »

When my other char is following another player in the party, I set in the console:

Code: Select all

conf attackAuto 1
conf attackAuto_party 1
conf attackAuto_followTarget 1
The logic of the following Kore will then be to attack enemies engaged by your party members and the 'followTarget name', and aggro mobs that dealt damage to or missed a party member.

I don't know if this really helps you. :mrgreen:
オペンコレ!

sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: The following problem !

#3 Post by sofax222 »

setsunaseiei wrote:When my other char is following another player in the party, I set in the console:

Code: Select all

conf attackAuto 1
conf attackAuto_party 1
conf attackAuto_followTarget 1
The logic of the following Kore will then be to attack enemies engaged by your party members and the 'followTarget name', and aggro mobs that dealt damage to or missed a party member.
Thank you very much !

The "attackAuto_party" and "attackAuto_followTarget", I already set to 1.
And I have try to set the "attackAuto" 1.
But, the following role still activly attack the monster.

Because, my following roles move quickly more than my master role.
So, my following roles always stop "route" to wait for my master role.
You could see the origrinal code...
If the role without any "route", the "attackOnRoute" will be assignmeted "2" value.

markjames
Human
Human
Posts: 24
Joined: 16 Jun 2011, 04:48
Noob?: Yes

Re: The following problem !

#4 Post by markjames »

I don't know yet you must take help when you are playing game.
Regards! :x :x

Post Reply