Jump to content
  • 0

How to make a mob walk Specially?


Question

Posted

I means a monster can move to point A then move to point B then move to point C...........move to A .This cycle~

The monster is Active monster.

any one can help me to Complete the Java code? thanks very much ~!   

sorry for my bad english.

4 answers to this question

Recommended Posts

  • 0
Posted

I suggest you to take walking "Vote for Server!" NPC, which is walking around Giran (From A to B, from B to C, from C to D, from D to A...), watch his code and try to apply to a monster :?

 

P.S. Maybe it can sound dumb, but I just want to help ;>

P.P.S. 50 Posts :D

  • 0
Posted

You have to create a new instance of monster, which can handle L2NpcWalker stuff too. The main problem is you can't simply extends L2MonsterInstance with L2NpcWalker.

 

You got many choices, but I give you 2 :

- one is to make a unique class which got NpcWalker stuff and then to apply it both on L2NpcWalker and L2MonsterWalker (name of a non existing class picked as exemple).

- second is to create the L2MonsterWalker class (c/p + rename of L2MonsterInstance) and then to apply L2NpcWalker code inside.

 

You have to keep in mind the random move must be deleted, and surely some AIs must be reworked (like when a mob doesn't attack anything put him back on the defined path, as Gordon AI).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock