Examples of CloneInstance


Examples of lineage2.gameserver.model.instances.CloneInstance

        if (activeChar.isMounted())
        {
          return;
        }
        Location cloneLoc = Location.findAroundPosition(activeChar, 50, 70);
        CloneInstance clone = new CloneInstance(IdFactory.getInstance().getNextId(), activeChar.getTemplate(), activeChar, _lifeTime, cloneLoc);
        clone.setHeading(activeChar.getHeading());
        clone.setReflection(activeChar.getReflection());
        clone.setCurrentCp(activeChar.getCurrentCp());
        clone.setCurrentHpMp(activeChar.getCurrentHp(), activeChar.getCurrentMp());
        clone.spawnMe(cloneLoc);
        clone.setRunning();
        clone.setFollowMode(true);

        cloneLoc = Location.findAroundPosition(activeChar, 50, 70);
        clone = new CloneInstance(IdFactory.getInstance().getNextId(), activeChar.getTemplate(), activeChar, _lifeTime, cloneLoc);
        clone.setHeading(activeChar.getHeading());
        clone.setReflection(activeChar.getReflection());
        clone.setCurrentCp(activeChar.getCurrentCp());
        clone.setCurrentHpMp(activeChar.getCurrentHp(), activeChar.getCurrentMp());
        clone.spawnMe(cloneLoc);
        clone.setRunning();
        clone.setFollowMode(true);

        cloneLoc = Location.findAroundPosition(activeChar, 50, 70);
        clone = new CloneInstance(IdFactory.getInstance().getNextId(), activeChar.getTemplate(), activeChar, _lifeTime, cloneLoc);
        clone.setHeading(activeChar.getHeading());
        clone.setReflection(activeChar.getReflection());
        clone.setCurrentCp(activeChar.getCurrentCp());
        clone.setCurrentHpMp(activeChar.getCurrentHp(), activeChar.getCurrentMp());
        clone.spawnMe(cloneLoc);
        clone.setRunning();
        clone.setFollowMode(true);
        ThreadPoolManager.getInstance().schedule(new GameObjectTasks.DeleteTask(clone), _lifeTime);
        break;
      case NPC:
        if (activeChar.isMounted())
        {
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.