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).

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...