L2JMobius

C6 Best Farm

ver · 9 · 2939

Offline ver

  • Knight
  • ***
    • Posts: 70
Hello guys,

I might be wrong but as far as I know and remember from retail single char was able to train just one mob at the moment. Right now I'm having 3 trained and following me birds...



Players were reporting dozens of trained pets in same time.


Offline gugukin

  • Heir
  • **
    • Posts: 16
hello, I tried it with a normal pj and I don't have that problem only with pj admin.


Offline ver

  • Knight
  • ***
    • Posts: 70
By "pj" you mean player?;)
If yes, well, my players did not have admins rights and still they noticed that issue.
The thing is it's not happening all the time... after each mob. However I didn't find any pattern, errors, whatsoever...


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16033

Offline gugukin

  • Heir
  • **
    • Posts: 16
By "pj" you mean player?;)
If yes, well, my players did not have admins rights and still they noticed that issue.
The thing is it's not happening all the time... after each mob. However I didn't find any pattern, errors, whatsoever...

True, it doesn't always happen.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16033
Try this.
Code: [Select]
Index: dist/game/data/scripts/ai/others/FeedableBeasts.java
===================================================================
--- dist/game/data/scripts/ai/others/FeedableBeasts.java (revision 9774)
+++ dist/game/data/scripts/ai/others/FeedableBeasts.java (working copy)
@@ -342,6 +342,17 @@
 
  private void spawnNext(Npc npc, int growthLevel, PlayerInstance player, int food)
  {
+ if (npc.isScriptValue(1))
+ {
+ return;
+ }
+ npc.setScriptValue(1);
+
+ if (!npc.isSpawned())
+ {
+ return;
+ }
+
  final int npcId = npc.getNpcId();
  int nextNpcId = 0;
 


Offline ver

  • Knight
  • ***
    • Posts: 70

Offline Strelook66

  • Knight
  • ***
    • Posts: 82
Hi,

I don't know if anyone noticed, but the deleteMe() doesn't work correctly sometimes. After you successfully leveled up a beast (growthLevel doesn't matter) and killed it afterwards, for the player that killed it it will despawn and will be removed from the world. But there is a small chance that for the other party members the mob will stay there un-targetable, just a hollow mob. Like it didn't clear it for them visually.

Picture 1: Killed it with the spoiler: https://imgur.com/a/hktUcFU
Picture 2: 2nd member from party: https://imgur.com/a/WWNOmZT

Both characters are in the same area and as you can in one client the mobs are not there, and on the other they are yet cannot target them.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16033
Hi,

I don't know if anyone noticed, but the deleteMe() doesn't work correctly sometimes. After you successfully leveled up a beast (growthLevel doesn't matter) and killed it afterwards, for the player that killed it it will despawn and will be removed from the world. But there is a small chance that for the other party members the mob will stay there un-targetable, just a hollow mob. Like it didn't clear it for them visually.

Picture 1: Killed it with the spoiler: https://imgur.com/a/hktUcFU
Picture 2: 2nd member from party: https://imgur.com/a/WWNOmZT

Both characters are in the same area and as you can in one client the mobs are not there, and on the other they are yet cannot target them.
Make another post for that.

Fixed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/179106172f08234d1f4a594ab2afc9a0cb7d9250