Package lineage2.gameserver.model.items

Examples of lineage2.gameserver.model.items.ItemInstance.update()


        item.save();
      }
      else
      {
        item.setJdbcState(JdbcEntityState.UPDATED);
        item.update();
      }
      attachments.add(item);
    }
    Mail mail = new Mail();
    mail.setSenderId(activeChar.getObjectId());
View Full Code Here


    {
      activeChar.getInventory().unEquipItem(itemToUnnchant);
    }
    itemToUnnchant.setAttributeElement(element, 0);
    itemToUnnchant.setJdbcState(JdbcEntityState.UPDATED);
    itemToUnnchant.update();
    if (equipped)
    {
      activeChar.getInventory().equipItem(itemToUnnchant);
    }
    activeChar.sendPacket(new InventoryUpdate().addModifiedItem(itemToUnnchant));
View Full Code Here

            item.save();
          }
          else
          {
            item.setJdbcState(JdbcEntityState.UPDATED);
            item.update();
          }
          attachments.add(item);
        }
      }
    }
View Full Code Here

      return;
    }
    controlItem.setEnchantLevel(_level);
    controlItem.setCustomType2(isDefaultName() ? 0 : 1);
    controlItem.setJdbcState(JdbcEntityState.UPDATED);
    controlItem.update();
    Player owner = getPlayer();
    owner.sendPacket(new InventoryUpdate().addModifiedItem(controlItem));
  }
 
  /**
 
View Full Code Here

          }
          ItemInstance item = createItem(activeChar, item_id, 1);
          Element element = Element.getElementById(elementId);
          item.setAttributeElement(element, item.getAttributeElementValue(element, false) + value);
          item.setJdbcState(JdbcEntityState.UPDATED);
          item.update();
          activeChar.sendPacket(new InventoryUpdate().addModifiedItem(item));
        }
        catch (NumberFormatException nfe)
        {
          activeChar.sendMessage("USAGE: create_item id [count]");
View Full Code Here

      show("scripts/services/petevolve/error_lvl_greatw.htm", player, npc);
      return;
    }
    collar.setItemId(fwd ? WHITE_WOLF_NECKLACE : GREAT_WOLF_NECKLACE);
    collar.setJdbcState(JdbcEntityState.UPDATED);
    collar.update();
    player.sendItemList(false);
    player.sendPacket(SystemMessage2.obtainItems((fwd ? WHITE_WOLF_NECKLACE : GREAT_WOLF_NECKLACE), 1, 0));
    show("scripts/services/petevolve/end_msg3_gwolf.htm", player, npc);
  }
 
View Full Code Here

      show("scripts/services/petevolve/error_lvl_fenrir.htm", player, npc);
      return;
    }
    collar.setItemId(fwd ? WHITE_FENRIR_NECKLACE : FENRIR_NECKLACE);
    collar.setJdbcState(JdbcEntityState.UPDATED);
    collar.update();
    player.sendItemList(false);
    player.sendPacket(SystemMessage2.obtainItems((fwd ? WHITE_FENRIR_NECKLACE : FENRIR_NECKLACE), 1, 0));
    show("scripts/services/petevolve/end_msg2_fenrir.htm", player, npc);
  }
 
View Full Code Here

      show("scripts/services/petevolve/no_level_gw.htm", player, npc);
      return;
    }
    collar.setItemId(fwd ? WHITE_FENRIR_NECKLACE : WHITE_WOLF_NECKLACE);
    collar.setJdbcState(JdbcEntityState.UPDATED);
    collar.update();
    player.sendItemList(false);
    player.sendPacket(SystemMessage2.obtainItems((fwd ? WHITE_FENRIR_NECKLACE : WHITE_WOLF_NECKLACE), 1, 0));
    show("scripts/services/petevolve/yes_wolf.htm", player, npc);
  }
 
View Full Code Here

      show("scripts/services/petevolve/error_lvl_strider.htm", player, npc);
      return;
    }
    collar.setItemId(fwd ? RED_WS_ITEM : WIND_STRIDER_ITEM);
    collar.setJdbcState(JdbcEntityState.UPDATED);
    collar.update();
    player.sendItemList(false);
    player.sendPacket(SystemMessage2.obtainItems((fwd ? RED_WS_ITEM : WIND_STRIDER_ITEM), 1, 0));
    show("scripts/services/petevolve/end_msg_strider.htm", player, npc);
  }
 
View Full Code Here

      show("scripts/services/petevolve/error_lvl_strider.htm", player, npc);
      return;
    }
    collar.setItemId(fwd ? RED_SS_ITEM : STAR_STRIDER_ITEM);
    collar.setJdbcState(JdbcEntityState.UPDATED);
    collar.update();
    player.sendItemList(false);
    player.sendPacket(SystemMessage2.obtainItems((fwd ? RED_SS_ITEM : STAR_STRIDER_ITEM), 1, 0));
    show("scripts/services/petevolve/end_msg_strider.htm", player, npc);
  }
 
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.