iquelite Posted September 6, 2011 Posted September 6, 2011 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. Quote
0 GeoPrey-qHp Posted September 6, 2011 Posted September 6, 2011 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 Quote
0 adenaman Posted September 6, 2011 Posted September 6, 2011 Im not sure but i think that what you want is this DataPack/data/WalkerRoutes.xml Quote
0 Tryskell Posted September 7, 2011 Posted September 7, 2011 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). Quote
0 iquelite Posted September 7, 2011 Author Posted September 7, 2011 Thank you for your reply~!its instrumental~! Quote
Question
iquelite
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
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.