Jump to content

Question

Posted

Hi guys, it's been a while I asked some help but now I'm stuck on one problem, I'm trying to make monster move to current point which I give him on spawn but I have no idea what function or function set to use in order to make that mob move. 

 

example:

On spawn of Wolf I give him location (x,y,z) to move and need him to start moving immediately or after few seconds, that doesn't matter.

 

Anyone has clue how to make that? Thanks

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

Search for Gordon AI or NpcWalker system on any L2J, and CtrlIntention.INTENTION_MOVE_TO. You should find some exemples. ^^

 

My DrChaos for example :

npc.getAI().setIntention(CtrlIntention.MOVE_TO, new L2CharPosition(95928, -110671, -3340, 0));

About where to add it, you can override onSpawn if it's not already done. Dependant exactly what you want to do.

Edited by Tryskell

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