Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2PenaltyMonsterInstance


        Location def = fisher.getFishLoc();
        if(!GeoEngine.canMoveWithCollision(fisher.getX(), fisher.getY(), fisher.getZ(), def.x, def.y, def.z, fisher.getReflection().getGeoIndex()))
        {
          def = fisher.getLoc();
        }
        L2PenaltyMonsterInstance npc = new L2PenaltyMonsterInstance(IdFactory.getInstance().getNextId(), temp);
        npc.setSpawnedLoc(def);
        npc.setReflection(fisher.getReflection());
        npc.setHeading(fisher.getHeading() - 32768);
        npc.onSpawn();
        npc.spawnMe(npc.getSpawnedLoc());
        npc.SetPlayerToKill(fisher);
      }
      catch(Exception e)
      {
        _log.warning("Could not spawn Penalty Monster " + npcid + ", exception: " + e);
        e.printStackTrace();
View Full Code Here

TOP

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

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.