Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Character.sendPacket()


      if(owner.isPlayer() && owner.getName() != null)
      {
        SystemMessage msg = checkConditions(item);
        if(msg != null)
        {
          owner.sendPacket(msg);
          return;
        }
      }
    }
    double mp = 0; // при смене робы ману не сбрасываем
View Full Code Here


      if(pos != null)
      {
        list.add(new CursedWeaponInfo(pos, cw.getItemId(), cw.isActivated() ? 1 : 0));
      }
    }
    activeChar.sendPacket(new ExCursedWeaponLocation(list));
  }
}
View Full Code Here

    {
      return false;
    }
    if(mpConsume > effector.getCurrentMp())
    {
      effector.sendPacket(Msg.NOT_ENOUGH_MP);
      return false;
    }
    effector.reduceCurrentMp(mpConsume, effector);
    // Использовать разрешено только скиллы типа TARGET_ONE
    for(L2Character cha : L2World.getAroundCharacters(symbol, getSkill().getSkillRadius(), 200))
View Full Code Here

        continue;
      }
      double max_heal = calc();
      double heal = Math.min(damage, max_heal);
      double newHp = Math.min(damager.getCurrentHp() + heal, damager.getMaxHp());
      damager.sendPacket(new SystemMessage(SystemMessage.S1_HPS_HAVE_BEEN_RESTORED).addNumber((long) (newHp - damager.getCurrentHp())));
      damager.setCurrentHp(newHp, false);
    }
    _damagers.clear();
    return true;
  }
View Full Code Here

    GArray<Integer> list = new GArray<Integer>();
    for(int id : CursedWeaponsManager.getInstance().getCursedWeaponsIds())
    {
      list.add(id);
    }
    activeChar.sendPacket(new ExCursedWeaponList(list));
  }
}
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.