Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2NpcInstance.onRandomAnimation()


      {
        return;
      }
      if(!npc.isDead() && !npc.isMoving)
      {
        npc.onRandomAnimation();
      }
      ThreadPoolManager.getInstance().scheduleAi(this, interval, false);
    }
  }
View Full Code Here


  {
    L2NpcInstance actor = getActor();
    if(actor != null && !actor.isMoving && actor.hasRandomAnimation() && Rnd.chance(Config.RND_ANIMATION_RATE))
    {
      setIsInRandomAnimation(3000);
      actor.onRandomAnimation();
      return true;
    }
    return false;
  }
View Full Code Here

    {
      randomWalk();
    }
    else if(val < 20)
    {
      actor.onRandomAnimation();
    }
    return false;
  }

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.