/** 지정된 위치에 돌을 둔다. */
 private void putElementalStone(L1Location loc) {
   L1GroundInventory gInventory = L1World.getInstance().getInventory(loc);
   L1ItemInstance item = ItemTable.getInstance().createItem(L1ItemId.ELEMENTAL_STONE);
   item.setEnchantLevel(0);
   item.setCount(1);
   gInventory.storeItem(item);
   _itemList.add(gInventory);
 }
Exemplo n.º 2
0
 @Override
 public void execute(L1PcInstance pc, String cmdName, String arg) {
   try {
     StringTokenizer st = new StringTokenizer(arg);
     int gfxid = Integer.parseInt(st.nextToken(), 10);
     int count = Integer.parseInt(st.nextToken(), 10);
     L1ItemInstance item = null;
     for (int i = 0; i < count; i++) {
       item = ItemTable.getInstance().createItem(40005);
       item.getItem().setGfxId(gfxid + i);
       item.getItem().setName(String.valueOf(gfxid + i));
       item.getItem().setNameId(String.valueOf(gfxid + i));
       pc.getInventory().storeItem(item);
     }
   } catch (Exception exception) {
     pc.sendPackets(new S_SystemMessage(cmdName + " [id] [출현시키는 수]로 입력해 주세요. "));
   }
 }