Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestCursedWeaponList

package l2p.gameserver.clientpackets;

import l2p.gameserver.instancemanager.CursedWeaponsManager;
import l2p.gameserver.model.L2Character;
import l2p.gameserver.serverpackets.ExCursedWeaponList;
import l2p.util.GArray;

public class RequestCursedWeaponList extends L2GameClientPacket
{
  @Override
  public void readImpl()
  {
  }

  @Override
  public void runImpl()
  {
    L2Character activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    GArray<Integer> list = new GArray<Integer>();
    for(int id : CursedWeaponsManager.getInstance().getCursedWeaponsIds())
    {
      list.add(id);
    }
    activeChar.sendPacket(new ExCursedWeaponList(list));
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestCursedWeaponList

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.