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.
Question
tazerman2
hello all i have make a code for walker same mobs but i dont know why is not running
and in console show me error can any tell me where is the problem ?
public void DoWalkerMonster() { if (npc == null || npc.getSpawn() == null) { if (npc.getTemplate().getNpcId() != walkerNpc) { _isWalkTo++; if (_isWalkTo < 55) { _isWalkTo = 1; } X = WALKS[_isWalkTo - 1][0]; Y = WALKS[_isWalkTo - 1][1]; Z = WALKS[_isWalkTo - 1][2]; // TODO: find better way to prevent teleporting to the home location npc.getSpawn().setLocx(X); npc.getSpawn().setLocy(Y); npc.getSpawn().setLocz(Z); npc.setRunning(); npc.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(X, Y, Z, 0)); } return; } LOGGER.info("walker mob working!"); // only for check work or not. }Edited by tazerman213 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now