Examples of FuncMul


Examples of lineage2.gameserver.stats.funcs.FuncMul

        SiegeFlagInstance flag = (SiegeFlagInstance) NpcHolder.getInstance().getTemplate(_flagType == FlagType.OUTPOST ? 36590 : 35062).getNewInstance();
        flag.setClan(siegeClan);
        flag.addEvent(siegeEvent);
        if (_flagType == FlagType.ADVANCED)
        {
          flag.addStatFunc(new FuncMul(Stats.MAX_HP, 0x50, flag, _advancedMult));
        }
        flag.setCurrentHpMp(flag.getMaxHp(), flag.getMaxMp(), true);
        flag.setHeading(player.getHeading());
        int x = (int) (player.getX() + (100 * Math.cos(player.headingToRadians(player.getHeading() - 32768))));
        int y = (int) (player.getY() + (100 * Math.sin(player.headingToRadians(player.getHeading() - 32768))));
View Full Code Here

Examples of lineage2.gameserver.stats.funcs.FuncMul

        NpcInstance newNpc = addSpawnToInstance(SC, new Location(x, y, -6115, 16215), 0, world.instanceId);
        newNpc.setAI(new CharacterAI(newNpc));
        if (templist[yy][xx] == 0)
        {
          newNpc.setBusy(true);
          newNpc.addStatFunc(new FuncMul(Stats.MAGIC_DEFENCE, 0x30, this, 1000));
          newNpc.addStatFunc(new FuncMul(Stats.POWER_DEFENCE, 0x30, this, 1000));
        }
        world.ForthRoom.npclist2.add(new long[]
        {
          newNpc.getStoredId(),
          templist[yy][xx],
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.