From 6475f9aaef5e6affe3565c80e416e4b4e9cde043 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 Jun 2018 00:14:04 +0300 Subject: Fix packet 836 (search in stores). Added item options fields into this packet. Updated other things for support for report item options in vending. Buying store not supported for now. --- src/common/mmo.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/common/mmo.h') diff --git a/src/common/mmo.h b/src/common/mmo.h index 0b4ba4a45..4a79245a1 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -363,6 +363,12 @@ enum attribute_flag { ATTR_BROKEN = 1, }; +struct item_option { + int16 index; + int16 value; + uint8 param; +}; + struct item { int id; short nameid; @@ -376,12 +382,7 @@ struct item { char favorite; unsigned char bound; uint64 unique_id; - - struct { - int16 index; - int16 value; - uint8 param; - } option[MAX_ITEM_OPTIONS]; + struct item_option option[MAX_ITEM_OPTIONS]; }; //Equip position constants -- cgit v1.2.3-60-g2f50