L2JMobius

Free Users => Solved/Invalid Bug Reports => Topic started by: akado on October 09, 2019, 08:30:55 PM

Title: Monster Attack Bug
Post by: akado on October 09, 2019, 08:30:55 PM
Some monsters don't attack when you hit them
Stand and do nothing
(Fufarion August rev)
Title: Re: Monster Attack Bug
Post by: Edoo on October 10, 2019, 12:37:14 AM
this bug is fixed in the private version (how to get the private version, ask Mobius)
Title: Re: Monster Attack Bug
Post by: akado on October 10, 2019, 02:42:37 AM
I know in private this bug fixed.
But how i can fix that? Help plz, bug so critical :(
Title: Re: Monster Attack Bug
Post by: Mobius on October 10, 2019, 11:08:11 AM
I was fixed and apparntly broken again.
I try to find a better solution.
Title: Re: Monster Attack Bug
Post by: akado on October 10, 2019, 11:15:22 AM
I was fixed and apparntly broken again.
I try to find a better solution.
But Grand Crusade not have this bug.
Title: Re: Monster Attack Bug
Post by: akado on October 11, 2019, 01:31:49 AM
I was fixed and apparntly broken again.
I try to find a better solution.
Only Fufarion ver have this bug? Or Grand Crusade, Helios too?
Title: Re: Monster Attack Bug
Post by: Mobius on October 11, 2019, 02:01:45 AM
I do not know.
Most people use Fafurion.
Title: Re: Monster Attack Bug
Post by: Mobius on October 11, 2019, 08:55:49 AM
Try this.

Code: [Select]
Index: java/org/l2jmobius/gameserver/model/actor/Attackable.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Attackable.java (revision 6015)
+++ java/org/l2jmobius/gameserver/model/actor/Attackable.java (working copy)
@@ -1452,6 +1452,9 @@
  }
  }
 
+ // Clear aggro list.
+ clearAggroList();
+
  // Reset the rest of NPC related states
  super.onRespawn();
  }
Index: java/org/l2jmobius/gameserver/model/actor/Npc.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Npc.java (revision 5990)
+++ java/org/l2jmobius/gameserver/model/actor/Npc.java (working copy)
@@ -23,6 +23,7 @@
 import org.l2jmobius.commons.concurrent.ThreadPool;
 import org.l2jmobius.commons.util.Rnd;
 import org.l2jmobius.gameserver.ItemsAutoDestroy;
+import org.l2jmobius.gameserver.ai.CtrlIntention;
 import org.l2jmobius.gameserver.cache.HtmCache;
 import org.l2jmobius.gameserver.data.xml.impl.ClanHallData;
 import org.l2jmobius.gameserver.datatables.ItemTable;
@@ -29,11 +30,11 @@
 import org.l2jmobius.gameserver.enums.AISkillScope;
 import org.l2jmobius.gameserver.enums.AIType;
 import org.l2jmobius.gameserver.enums.ChatType;
-import org.l2jmobius.gameserver.enums.RaidBossStatus;
 import org.l2jmobius.gameserver.enums.InstanceType;
 import org.l2jmobius.gameserver.enums.MpRewardAffectType;
 import org.l2jmobius.gameserver.enums.PrivateStoreType;
 import org.l2jmobius.gameserver.enums.Race;
+import org.l2jmobius.gameserver.enums.RaidBossStatus;
 import org.l2jmobius.gameserver.enums.ShotType;
 import org.l2jmobius.gameserver.enums.TaxType;
 import org.l2jmobius.gameserver.enums.Team;
@@ -1084,6 +1085,12 @@
  // Reset targetable state
  setTargetable(getTemplate().isTargetable());
 
+ // Set to walking
+ setWalking();
+
+ // Set intention to active.
+ getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
+
  // Reset summoner
  setSummoner(null);
 
Title: Re: Monster Attack Bug
Post by: Edoo on October 11, 2019, 12:12:29 PM
Try this.

Code: [Select]
Index: java/org/l2jmobius/gameserver/model/actor/Attackable.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Attackable.java (revision 6015)
+++ java/org/l2jmobius/gameserver/model/actor/Attackable.java (working copy)
@@ -1452,6 +1452,9 @@
  }
  }
 
+ // Clear aggro list.
+ clearAggroList();
+
  // Reset the rest of NPC related states
  super.onRespawn();
  }
Index: java/org/l2jmobius/gameserver/model/actor/Npc.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Npc.java (revision 5990)
+++ java/org/l2jmobius/gameserver/model/actor/Npc.java (working copy)
@@ -23,6 +23,7 @@
 import org.l2jmobius.commons.concurrent.ThreadPool;
 import org.l2jmobius.commons.util.Rnd;
 import org.l2jmobius.gameserver.ItemsAutoDestroy;
+import org.l2jmobius.gameserver.ai.CtrlIntention;
 import org.l2jmobius.gameserver.cache.HtmCache;
 import org.l2jmobius.gameserver.data.xml.impl.ClanHallData;
 import org.l2jmobius.gameserver.datatables.ItemTable;
@@ -29,11 +30,11 @@
 import org.l2jmobius.gameserver.enums.AISkillScope;
 import org.l2jmobius.gameserver.enums.AIType;
 import org.l2jmobius.gameserver.enums.ChatType;
-import org.l2jmobius.gameserver.enums.RaidBossStatus;
 import org.l2jmobius.gameserver.enums.InstanceType;
 import org.l2jmobius.gameserver.enums.MpRewardAffectType;
 import org.l2jmobius.gameserver.enums.PrivateStoreType;
 import org.l2jmobius.gameserver.enums.Race;
+import org.l2jmobius.gameserver.enums.RaidBossStatus;
 import org.l2jmobius.gameserver.enums.ShotType;
 import org.l2jmobius.gameserver.enums.TaxType;
 import org.l2jmobius.gameserver.enums.Team;
@@ -1084,6 +1085,12 @@
  // Reset targetable state
  setTargetable(getTemplate().isTargetable());
 
+ // Set to walking
+ setWalking();
+
+ // Set intention to active.
+ getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
+
  // Reset summoner
  setSummoner(null);
 


unfortunately did not help. and mine even more often the aggression of monsters began to hang. And I also noticed that your patch registered on the Npc.java file is different from the file that is in the free access assembly. the first difference is that this line is not in our file, (+import org.l2jmobius.gameserver.enums.RaidBossStatus;) I think that therefore your patch may not work.
Title: Re: Monster Attack Bug
Post by: Mobius on October 11, 2019, 12:59:03 PM
Try this Attackable only patch.
Code: [Select]
Index: java/org/l2jmobius/gameserver/model/actor/Attackable.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Attackable.java (revision 6015)
+++ java/org/l2jmobius/gameserver/model/actor/Attackable.java (working copy)
@@ -1452,6 +1452,10 @@
  }
  }
 
+ // Clear aggro list.
+ clearAggroList();
+ getAttackByList().clear();
+
  // Reset the rest of NPC related states
  super.onRespawn();
  }
Title: Re: Monster Attack Bug
Post by: Edoo on October 11, 2019, 01:48:04 PM
Try this Attackable only patch.
Code: [Select]
Index: java/org/l2jmobius/gameserver/model/actor/Attackable.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Attackable.java (revision 6015)
+++ java/org/l2jmobius/gameserver/model/actor/Attackable.java (working copy)
@@ -1452,6 +1452,10 @@
  }
  }
 
+ // Clear aggro list.
+ clearAggroList();
+ getAttackByList().clear();
+
  // Reset the rest of NPC related states
  super.onRespawn();
  }

1. Monster aggression generally stopped working.
2. when attacking with a mass skill, only one monster is aggregated, the rest just stand in the attack stance. after the second attack, the remaining monsters also begin to attack.
3. If there is an obstacle in front of the monster, he does not go around him and just stands there and waits for him to be killed.

Here is what I discovered. Bottom line: the patch partially helped with the attack of monsters, but at the same time completely disabled aggressive monsters.
Title: Re: Monster Attack Bug
Post by: akado on October 11, 2019, 02:08:14 PM
In Grand Crusade attack monster ok
Title: Re: Monster Attack Bug
Post by: Mobius on October 11, 2019, 03:06:38 PM
The code above only triggers on monster respawn.
It cannot break monster aggression. It is not a repeating operation.
Title: Re: Monster Attack Bug
Post by: Edoo on October 11, 2019, 03:27:28 PM
The code above only triggers on monster respawn.
It cannot break monster aggression. It is not a repeating operation.

So after rebirth, aggression does not work for aggressive monsters.
Title: Re: Monster Attack Bug
Post by: Mobius on October 11, 2019, 03:47:19 PM
The estimation here is that some skill causes NPC to agrro someone
and after NPC is respawned the aggro is not reset.

What I did above resets the aggro by clearing any values in aggro lists.
Title: Re: Monster Attack Bug
Post by: Edoo on October 11, 2019, 03:56:27 PM
The estimation here is that some skill causes NPC to agrro someone
and after NPC is respawned the aggro is not reset.

What I did above resets the aggro by clearing any values in aggro lists.

then the aggression of monsters does not work for another reason. And what is described above, and the truth is corrected. After the appearance of the monster does not aggro again.
Title: Re: Monster Attack Bug
Post by: Mobius on October 11, 2019, 04:26:23 PM
We work on a solution on the private section.
;D
Title: Re: Monster Attack Bug
Post by: Edoo on October 11, 2019, 04:52:14 PM
We work on a solution on the private section.
;D

understood, we unfortunately will not see a solution to this problem  :'(
Title: Re: Monster Attack Bug
Post by: akado on October 11, 2019, 05:23:16 PM
 :( :( :( :'( :'( :'(
Title: Re: Monster Attack Bug
Post by: akado on October 11, 2019, 06:06:34 PM
We work on a solution on the private section.
;D

understood, we unfortunately will not see a solution to this problem  :'(
Hm.. With this fix all work OK. After death agr monster attack.
Title: Re: Monster Attack Bug
Post by: akado on October 11, 2019, 06:10:22 PM
Need clan fix!   ;D  ::)
Title: Re: Monster Attack Bug
Post by: Mobius on December 07, 2019, 03:51:00 PM
This is fixed in the private version.