Jump to content
  • 0

Walker Monster Update Help


Question

Posted

hello all i have a problem with a code..

i have make a code for walker some mobs is work all good

but i have problem with graphics mob is move and after 3 loc is stuck here

i click target to mob and i see in opposite side how to fix can player see all time

move mobs ? 

here is a video for see walker monsters -->  http://sendvid.com/9r17sv7x

12 answers to this question

Recommended Posts

  • 0
Posted (edited)

Force updating knownlist resolved the problem?

 

If you're forced to do that, you made shit waaayyy before. Because knownlist update is normally automatic.

Edited by Tryskell
  • 0
Posted

on my i think is not automatic after player is not move i see only 3 mob in walking and in move i see all mobs move

and in radius 500+ mob is stuck only in my instance how to fix or make a update knowlist every 5 sec for custom instance ?

  • 0
Posted

If you're forced to do that, you made shit waaayyy before. Because knownlist update is normally automatic.

 

I mean delete all known objects and initialize knownlist again. Like as teleport.  :happyforever:

  • 0
Posted

on my i think is not automatic after player is not move i see only 3 mob in walking and in move i see all mobs move

and in radius 500+ mob is stuck only in my instance how to fix or make a update knowlist every 5 sec for custom instance ?

 

If knownlist was updated and visual bug disappear, then you got oldest L2J bug. I posted fix for walking NPCs in private section of aCis forum.

  • 0
Posted

check this is good ? if player target knownlist radius this sendpacket delay 10 sec treadpoolmanager

	private L2WalkingMonsterInstance target;
	private L2GameServerPacket mov;
	
	public void check()
	{
		for(L2Character o : target.getKnownList().getKnownCharactersInRadius(1000 * 10 * 80))
		{
			if(o instanceof L2WalkingMonsterInstance)
			{
				L2WalkingMonsterInstance mob = (L2WalkingMonsterInstance) o;
				
				
				if(mob.isMoving() || mob.isRunning())
				{
					o.sendPacket(mov);
				}
			}
		}
	}
  • 0
Posted

On your video, how much monsters are really shown ?

 

And no that method sucks, in all possible ways. Doing NPCs actions based on player knownlist is stupid. Moreover when you try to pick 800000 radius (do you even know what does it means, 800000 ? We speak of 1000 times the regular casting distance !), while knownlist is limited to maybe 3-4k, and 10-15k for doors.

 

Why do you need to send packets if mobs is moving ? There are existing methods to move a NPC, where packets are already setuped.

 

If you send anything instance based, either you limit it to the instance, or by zone (like boss cinematics).

  • 0
Posted

...

 

You hope to get help without sharing a piece of code ? How do you want anyone can solve your problem with a video ?

 

It's like if you would send your facebook picture to a doctor, and tell him "doctor, i'm sick, heal me". Really ?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...