pc.getInventory().removeItem(l1iteminstance, 1);
// XXX 食?物???腹度(100?位??動)
short foodvolume1 = (short)(l1iteminstance.getItem().getFoodVolume() / 10);
short foodvolume2 = 0;
if (foodvolume1 <= 0) {
foodvolume1 = 5;
}
if (pc.get_food() >= 225) {
pc.sendPackets(new S_PacketBox(
S_PacketBox.FOOD, (short)pc.get_food()));
} else {
foodvolume2 = (short)(pc.get_food() + foodvolume1);
if (foodvolume2 <= 225) {
pc.set_food(foodvolume2);
pc.sendPackets(new S_PacketBox(
S_PacketBox.FOOD, (short)pc.get_food()));
} else {
pc.set_food((short)225);
pc.sendPackets(new S_PacketBox(
S_PacketBox.FOOD, (short)pc.get_food()));
}
}
目前只找到這個好像有點關係 不會導入JAR 無奈.........


