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.
}
.Any Solution or make the soulshot Toggle
somewon can help me how i can make my custom soulshot left click toggle
all works only toggle i can't manage it, 😞
thanks in advance.
I was looking for server with a low rates,eventually i found l2 elixir.I Joined beta and after so many years since 2008 i found a friend that we played together, memories came back. i cant wait for the grand oppening!. dont miss it!
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