Send PetItemList after consuming food.
This commit is contained in:
@@ -73,6 +73,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
|||||||
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.PetItemList;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||||
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
||||||
@@ -190,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
|||||||
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.PetItemList;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||||
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
||||||
@@ -190,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
|||||||
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.PetItemList;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||||
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
||||||
@@ -190,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
|||||||
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.PetItemList;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||||
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
||||||
@@ -190,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
|||||||
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.PetItemList;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||||
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
||||||
@@ -190,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
|||||||
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.PetItemList;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||||
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
||||||
@@ -190,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
|||||||
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
import org.l2jmobius.gameserver.network.serverpackets.ExChangeNpcState;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.PetItemList;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||||
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
||||||
@@ -190,6 +191,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -301,6 +301,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -301,6 +301,7 @@ public class PetInstance extends Summon
|
|||||||
sm.addItemName(food.getId());
|
sm.addItemName(food.getId());
|
||||||
sendPacket(sm);
|
sendPacket(sm);
|
||||||
handler.useItem(PetInstance.this, food, false);
|
handler.useItem(PetInstance.this, food, false);
|
||||||
|
sendPacket(new PetItemList(getInventory().getItems()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user