Пример #1
0
 public static void doPartyPvP(
     MapleCharacter player, MapleMap map, AbstractDealDamageHandler.AttackInfo attack) {
   DamageBalancer(attack);
   getDirection(attack);
   for (MapleCharacter attackedPlayers :
       player
           .getMap()
           .getNearestPvpChar(
               player.getPosition(), maxDis, maxHeight, player.getMap().getCharacters())) {
     if (attackedPlayers.isAlive() && (player.getPartyId() != attackedPlayers.getPartyId())) {
       monsterBomb(player, attackedPlayers, map, attack);
     }
   }
 }
Пример #2
0
 public MapleMapItem(
     int meso,
     Point position,
     MapleMapObject dropper,
     MapleCharacter owner,
     byte type,
     boolean playerDrop) {
   setPosition(position);
   this.item = null;
   this.dropper = dropper;
   this.character_ownerid = owner.getParty() == null ? owner.getId() : owner.getPartyId();
   this.meso = meso;
   this.type = type;
   this.playerDrop = playerDrop;
 }
Пример #3
0
 public MapleMapItem(
     Item item,
     Point position,
     MapleMapObject dropper,
     MapleCharacter owner,
     byte type,
     boolean playerDrop,
     int questid) {
   setPosition(position);
   this.item = item;
   this.dropper = dropper;
   this.character_ownerid = owner.getParty() == null ? owner.getId() : owner.getPartyId();
   this.meso = 0;
   this.type = type;
   this.playerDrop = playerDrop;
   this.questid = questid;
 }