Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2MerchantInstance


        if(activeChar.getPet() != null || activeChar.isMounted())
        {
          return;
        }
        L2NpcTemplate merchantTemplate = NpcTable.getTemplate(getNpcId());
        L2MerchantInstance merchant = new L2MerchantInstance(IdFactory.getInstance().getNextId(), merchantTemplate);
        merchant.setCurrentHp(merchant.getMaxHp(), false);
        merchant.setCurrentMp(merchant.getMaxMp());
        merchant.setHeading(activeChar.getHeading());
        merchant.setReflection(activeChar.getReflection());
        merchant.spawnMe(activeChar.getLoc());
        ThreadPoolManager.getInstance().scheduleAi(new DeleteMerchantTask(merchant), _lifeTime, true);
        break;
    }
    if(isSSPossible())
    {
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.instances.L2MerchantInstance

Copyright © 2018 www.massapicom. 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.