Hello, for your latest changes I found two bugs, one when removing the garment and another when removing the garment from coat storage Fix: Long.Kernel\States\Storage\CoatStorage.cs Line 113
public async Task<bool> UnequipCoatAsync(Item.ItemPosition itemPosition, RemovalType mode = RemovalType.RemoveOnly)
{
var item = user.UserPackage.GetEquipment(itemPosition);
if (item == null)
{
return false;
}
await user.SendAsync(new MsgCoatStorage(item.Identity, item.Type, 0, CoatStorageAction.UnequipWrap));
if (mode == RemovalType.Delete)
{
await item.DeleteAsync();
}
else
{
item.Position = Item.ItemPosition.CoatStorage;
await item.SaveAsync();
}
await user.SendAsync(new MsgItemInfo(item));
await user.UserPackage.SyncEquipmentAsync();
await user.Screen.BroadcastRoomMsgAsync(new MsgPlayer(user), false);
await user.SendAsync(new MsgPlayerAttribInfo(user));
return true;
}
Long.Kernel\Network\Game\Packets\MsgCoatStorage.cs Line 42
public MsgCoatStorage(uint idItem, uint idData, uint life, CoatStorageAction action)
: base(PacketType.MsgCoatStorage)
{
Data = new MsgCoatStoragePB()
{
Action = (uint)action,
ItemId = idItem,
Data = idData,
Life = life
};
}
I hope it helps not found UserCheckInItemToCoatStorage && UserCheckOutItemFromCoatStorage lua scripts PS: I couldn't include the monster and attack system :(