Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Playable.teleToLocation()


      if(Config.SERVICES_GIRAN_HARBOR_ENABLED && player.getReflection().getId() == -2 && player.isVisible())
      {
        L2Playable playable = (L2Playable) object;
        double angle = Util.convertHeadingToDegree(playable.getHeading()); // угол в градусах
        double radian = Math.toRadians(angle - 90); // угол в радианах
        playable.teleToLocation((int) (playable.getX() + 50 * Math.sin(radian)), (int) (playable.getY() - 50 * Math.cos(radian)), playable.getZ());
      }
    }
  }
}
View Full Code Here


      if(Config.SERVICES_PARNASSUS_ENABLED && player.getReflection().getId() == -1 && player.isVisible())
      {
        L2Playable playable = (L2Playable) object;
        double angle = Util.convertHeadingToDegree(playable.getHeading()); // угол в градусах
        double radian = Math.toRadians(angle - 90); // угол в радианах
        playable.teleToLocation((int) (playable.getX() + 50 * Math.sin(radian)), (int) (playable.getY() - 50 * Math.cos(radian)), playable.getZ());
      }
    }
  }
}
View Full Code Here

      if(_active && _hooks && player != null && (team1_live_list.contains(player) || team2_live_list.contains(player)))
      {
        L2Playable playable = (L2Playable) object;
        double angle = Util.convertHeadingToDegree(playable.getHeading()); // угол в градусах
        double radian = Math.toRadians(angle - 90); // угол в радианах
        playable.teleToLocation((int) (playable.getX() + 50 * Math.sin(radian)), (int) (playable.getY() - 50 * Math.cos(radian)), playable.getZ());
      }
    }
  }

  private static GArray<L2Spawn> _spawns = new GArray<L2Spawn>();
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.