TrinityCore
Loading...
Searching...
No Matches
ItemDefines.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef ItemDefines_h__
19#define ItemDefines_h__
20
21#include "Define.h"
22
23// EnumUtils: DESCRIBE THIS
25{
27 EQUIP_ERR_CANT_EQUIP_LEVEL_I = 1, // You must reach level %d to use that item.
28 EQUIP_ERR_CANT_EQUIP_SKILL = 2, // You aren't skilled enough to use that item.
29 EQUIP_ERR_WRONG_SLOT = 3, // That item does not go in that slot.
30 EQUIP_ERR_BAG_FULL = 4, // That bag is full.
31 EQUIP_ERR_BAG_IN_BAG = 5, // Can't put non-empty bags in other bags.
32 EQUIP_ERR_TRADE_EQUIPPED_BAG = 6, // You can't trade equipped bags.
33 EQUIP_ERR_AMMO_ONLY = 7, // Only ammo can go there.
34 EQUIP_ERR_PROFICIENCY_NEEDED = 8, // You do not have the required proficiency for that item.
35 EQUIP_ERR_NO_SLOT_AVAILABLE = 9, // No equipment slot is available for that item.
36 EQUIP_ERR_CANT_EQUIP_EVER = 10, // You can never use that item.
37 EQUIP_ERR_CANT_EQUIP_EVER_2 = 11, // You can never use that item.
38 EQUIP_ERR_NO_SLOT_AVAILABLE_2 = 12, // No equipment slot is available for that item.
39 EQUIP_ERR_2HANDED_EQUIPPED = 13, // Cannot equip that with a two-handed weapon.
40 EQUIP_ERR_2HSKILLNOTFOUND = 14, // You cannot dual-wield
41 EQUIP_ERR_WRONG_BAG_TYPE = 15, // That item doesn't go in that container.
42 EQUIP_ERR_WRONG_BAG_TYPE_2 = 16, // That item doesn't go in that container.
43 EQUIP_ERR_ITEM_MAX_COUNT = 17, // You can't carry any more of those items.
44 EQUIP_ERR_NO_SLOT_AVAILABLE_3 = 18, // No equipment slot is available for that item.
45 EQUIP_ERR_CANT_STACK = 19, // This item cannot stack.
46 EQUIP_ERR_NOT_EQUIPPABLE = 20, // This item cannot be equipped.
47 EQUIP_ERR_CANT_SWAP = 21, // These items can't be swapped.
48 EQUIP_ERR_SLOT_EMPTY = 22, // That slot is empty.
49 EQUIP_ERR_ITEM_NOT_FOUND = 23, // The item was not found.
50 EQUIP_ERR_DROP_BOUND_ITEM = 24, // You can't drop a soulbound item.
51 EQUIP_ERR_OUT_OF_RANGE = 25, // Out of range.
52 EQUIP_ERR_TOO_FEW_TO_SPLIT = 26, // Tried to split more than number in stack.
53 EQUIP_ERR_SPLIT_FAILED = 27, // Couldn't split those items.
55 EQUIP_ERR_NOT_ENOUGH_MONEY = 29, // You don't have enough money.
56 EQUIP_ERR_NOT_A_BAG = 30, // Not a bag.
57 EQUIP_ERR_DESTROY_NONEMPTY_BAG = 31, // You can only do that with empty bags.
58 EQUIP_ERR_NOT_OWNER = 32, // You don't own that item.
59 EQUIP_ERR_ONLY_ONE_QUIVER = 33, // You can only equip one quiver.
60 EQUIP_ERR_NO_BANK_SLOT = 34, // You must purchase that bag slot first
61 EQUIP_ERR_NO_BANK_HERE = 35, // You are too far away from a bank.
62 EQUIP_ERR_ITEM_LOCKED = 36, // Item is locked.
63 EQUIP_ERR_GENERIC_STUNNED = 37, // You are stunned
64 EQUIP_ERR_PLAYER_DEAD = 38, // You can't do that when you're dead.
65 EQUIP_ERR_CLIENT_LOCKED_OUT = 39, // You can't do that right now.
66 EQUIP_ERR_INTERNAL_BAG_ERROR = 40, // Internal Bag Error
67 EQUIP_ERR_ONLY_ONE_BOLT = 41, // You can only equip one quiver.
68 EQUIP_ERR_ONLY_ONE_AMMO = 42, // You can only equip one ammo pouch.
69 EQUIP_ERR_CANT_WRAP_STACKABLE = 43, // Stackable items can't be wrapped.
70 EQUIP_ERR_CANT_WRAP_EQUIPPED = 44, // Equipped items can't be wrapped.
71 EQUIP_ERR_CANT_WRAP_WRAPPED = 45, // Wrapped items can't be wrapped.
72 EQUIP_ERR_CANT_WRAP_BOUND = 46, // Bound items can't be wrapped.
73 EQUIP_ERR_CANT_WRAP_UNIQUE = 47, // Unique items can't be wrapped.
74 EQUIP_ERR_CANT_WRAP_BAGS = 48, // Bags can't be wrapped.
75 EQUIP_ERR_LOOT_GONE = 49, // Already looted
76 EQUIP_ERR_INV_FULL = 50, // Inventory is full.
77 EQUIP_ERR_BANK_FULL = 51, // Your bank is full
78 EQUIP_ERR_VENDOR_SOLD_OUT = 52, // That item is currently sold out.
79 EQUIP_ERR_BAG_FULL_2 = 53, // That bag is full.
80 EQUIP_ERR_ITEM_NOT_FOUND_2 = 54, // The item was not found.
81 EQUIP_ERR_CANT_STACK_2 = 55, // This item cannot stack.
82 EQUIP_ERR_BAG_FULL_3 = 56, // That bag is full.
83 EQUIP_ERR_VENDOR_SOLD_OUT_2 = 57, // That item is currently sold out.
84 EQUIP_ERR_OBJECT_IS_BUSY = 58, // That object is busy.
85 EQUIP_ERR_CANT_BE_DISENCHANTED = 59, // Item cannot be disenchanted
86 EQUIP_ERR_NOT_IN_COMBAT = 60, // You can't do that while in combat
87 EQUIP_ERR_NOT_WHILE_DISARMED = 61, // You can't do that while disarmed
88 EQUIP_ERR_BAG_FULL_4 = 62, // That bag is full.
89 EQUIP_ERR_CANT_EQUIP_RANK = 63, // You don't have the required rank for that item
90 EQUIP_ERR_CANT_EQUIP_REPUTATION = 64, // You don't have the required reputation for that item
91 EQUIP_ERR_TOO_MANY_SPECIAL_BAGS = 65, // You cannot equip another bag of that type
92 EQUIP_ERR_LOOT_CANT_LOOT_THAT_NOW = 66, // You can't loot that item now.
93 EQUIP_ERR_ITEM_UNIQUE_EQUIPPABLE = 67, // You cannot equip more than one of those.
94 EQUIP_ERR_VENDOR_MISSING_TURNINS = 68, // You do not have the required items for that purchase
95 EQUIP_ERR_NOT_ENOUGH_HONOR_POINTS = 69, // You don't have enough honor points
96 EQUIP_ERR_NOT_ENOUGH_ARENA_POINTS = 70, // You don't have enough arena points
97 EQUIP_ERR_ITEM_MAX_COUNT_SOCKETED = 71, // You have the maximum number of those gems in your inventory or socketed into items.
98 EQUIP_ERR_MAIL_BOUND_ITEM = 72, // You can't mail soulbound items.
99 EQUIP_ERR_INTERNAL_BAG_ERROR_2 = 73, // Internal Bag Error
100 EQUIP_ERR_BAG_FULL_5 = 74, // That bag is full.
101 EQUIP_ERR_ITEM_MAX_COUNT_EQUIPPED_SOCKETED = 75, // You have the maximum number of those gems socketed into equipped items.
102 EQUIP_ERR_ITEM_UNIQUE_EQUIPPABLE_SOCKETED = 76, // You cannot socket more than one of those gems into a single item.
103 EQUIP_ERR_TOO_MUCH_GOLD = 77, // At gold limit
104 EQUIP_ERR_NOT_DURING_ARENA_MATCH = 78, // You can't do that while in an arena match
105 EQUIP_ERR_TRADE_BOUND_ITEM = 79, // You can't trade a soulbound item.
106 EQUIP_ERR_CANT_EQUIP_RATING = 80, // You don't have the personal, team, or battleground rating required to buy that item
108 EQUIP_ERR_NOT_SAME_ACCOUNT = 82, // Account-bound items can only be given to your own characters.
111 EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_SOCKETED_EXCEEDED_IS = 85, // You can only equip %d |4item:items in the %s category
112 EQUIP_ERR_SCALING_STAT_ITEM_LEVEL_EXCEEDED = 86, // Your level is too high to use that item
113 EQUIP_ERR_PURCHASE_LEVEL_TOO_LOW = 87, // You must reach level %d to purchase that item.
114 EQUIP_ERR_CANT_EQUIP_NEED_TALENT = 88, // You do not have the required talent to equip that.
115 EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED_IS = 89, // You can only equip %d |4item:items in the %s category
116 EQUIP_ERR_SHAPESHIFT_FORM_CANNOT_EQUIP = 90, // Cannot equip item in this form
117 EQUIP_ERR_ITEM_INVENTORY_FULL_SATCHEL = 91, // Your inventory is full. Your satchel has been delivered to your mailbox.
118};
119
120// EnumUtils: DESCRIBE THIS
133
134// EnumUtils: DESCRIBE THIS
136{
137 SELL_ERR_CANT_FIND_ITEM = 1, // DESCRIPTION The item was not found.
138 SELL_ERR_CANT_SELL_ITEM = 2, // DESCRIPTION The merchant doesn't want that item.
139 SELL_ERR_CANT_FIND_VENDOR = 3, // DESCRIPTION The merchant doesn't like you.
140 SELL_ERR_YOU_DONT_OWN_THAT_ITEM = 4, // DESCRIPTION You don't own that item.
141 SELL_ERR_UNK = 5, // DESCRIPTION nothing appears...
142 SELL_ERR_ONLY_EMPTY_BAG = 6, // DESCRIPTION You can only do that with empty bags.
143 SELL_ERR_CANT_SELL_TO_THIS_MERCHANT = 7 // DESCRIPTION You cannot sell items to this merchant.
145
146// -1 from client enchantment slot number
148{
155 PRISMATIC_ENCHANTMENT_SLOT = 6, // added at apply special permanent enchantment
157
158 PROP_ENCHANTMENT_SLOT_0 = 7, // used with RandomSuffix
159 PROP_ENCHANTMENT_SLOT_1 = 8, // used with RandomSuffix
160 PROP_ENCHANTMENT_SLOT_2 = 9, // used with RandomSuffix and RandomProperty
161 PROP_ENCHANTMENT_SLOT_3 = 10, // used with RandomProperty
162 PROP_ENCHANTMENT_SLOT_4 = 11, // used with RandomProperty
165
166#define MAX_VISIBLE_ITEM_OFFSET 2 // 2 fields per visible item (entry+enchantment)
167
168#endif // ItemDefines_h__
uint8_t uint8
Definition Define.h:135
uint16_t uint16
Definition Define.h:134
EnchantmentSlot
@ PERM_ENCHANTMENT_SLOT
@ SOCK_ENCHANTMENT_SLOT_3
@ PROP_ENCHANTMENT_SLOT_0
@ MAX_ENCHANTMENT_SLOT
@ PROP_ENCHANTMENT_SLOT_2
@ TEMP_ENCHANTMENT_SLOT
@ SOCK_ENCHANTMENT_SLOT_2
@ PRISMATIC_ENCHANTMENT_SLOT
@ PROP_ENCHANTMENT_SLOT_1
@ SOCK_ENCHANTMENT_SLOT
@ BONUS_ENCHANTMENT_SLOT
@ MAX_INSPECTED_ENCHANTMENT_SLOT
@ PROP_ENCHANTMENT_SLOT_4
@ PROP_ENCHANTMENT_SLOT_3
InventoryResult
Definition ItemDefines.h:25
@ EQUIP_ERR_BAG_FULL
Definition ItemDefines.h:30
@ EQUIP_ERR_CANT_EQUIP_RANK
Definition ItemDefines.h:89
@ EQUIP_ERR_TOO_MUCH_GOLD
@ EQUIP_ERR_CANT_STACK_2
Definition ItemDefines.h:81
@ EQUIP_ERR_CANT_EQUIP_EVER
Definition ItemDefines.h:36
@ EQUIP_ERR_BAG_FULL_4
Definition ItemDefines.h:88
@ EQUIP_ERR_NOT_A_BAG
Definition ItemDefines.h:56
@ EQUIP_ERR_SLOT_EMPTY
Definition ItemDefines.h:48
@ EQUIP_ERR_NO_SLOT_AVAILABLE
Definition ItemDefines.h:35
@ EQUIP_ERR_NO_BANK_HERE
Definition ItemDefines.h:61
@ EQUIP_ERR_CANT_EQUIP_EVER_2
Definition ItemDefines.h:37
@ EQUIP_ERR_CANT_EQUIP_RATING
@ EQUIP_ERR_VENDOR_SOLD_OUT
Definition ItemDefines.h:78
@ EQUIP_ERR_MAIL_BOUND_ITEM
Definition ItemDefines.h:98
@ EQUIP_ERR_ONLY_ONE_QUIVER
Definition ItemDefines.h:59
@ EQUIP_ERR_ITEM_INVENTORY_FULL_SATCHEL
@ EQUIP_ERR_ITEM_MAX_COUNT_EQUIPPED_SOCKETED
@ EQUIP_ERR_DESTROY_NONEMPTY_BAG
Definition ItemDefines.h:57
@ EQUIP_ERR_SPLIT_FAILED
Definition ItemDefines.h:53
@ EQUIP_ERR_NOT_ENOUGH_HONOR_POINTS
Definition ItemDefines.h:95
@ EQUIP_ERR_CANT_WRAP_BAGS
Definition ItemDefines.h:74
@ EQUIP_ERR_ITEM_UNIQUE_EQUIPPABLE
Definition ItemDefines.h:93
@ EQUIP_ERR_ITEM_MAX_COUNT_SOCKETED
Definition ItemDefines.h:97
@ EQUIP_ERR_NOT_DURING_ARENA_MATCH
@ EQUIP_ERR_BAG_FULL_2
Definition ItemDefines.h:79
@ EQUIP_ERR_OUT_OF_RANGE
Definition ItemDefines.h:51
@ EQUIP_ERR_PLAYER_DEAD
Definition ItemDefines.h:64
@ EQUIP_ERR_BAG_FULL_3
Definition ItemDefines.h:82
@ EQUIP_ERR_SHAPESHIFT_FORM_CANNOT_EQUIP
@ EQUIP_ERR_BAG_IN_BAG
Definition ItemDefines.h:31
@ EQUIP_ERR_CLIENT_LOCKED_OUT
Definition ItemDefines.h:65
@ EQUIP_ERR_CANT_BE_DISENCHANTED
Definition ItemDefines.h:85
@ EQUIP_ERR_BANK_FULL
Definition ItemDefines.h:77
@ EQUIP_ERR_AMMO_ONLY
Definition ItemDefines.h:33
@ EQUIP_ERR_NOT_IN_COMBAT
Definition ItemDefines.h:86
@ EQUIP_ERR_ITEM_LOCKED
Definition ItemDefines.h:62
@ EQUIP_ERR_OBJECT_IS_BUSY
Definition ItemDefines.h:84
@ EQUIP_ERR_NO_SLOT_AVAILABLE_3
Definition ItemDefines.h:44
@ EQUIP_ERR_ITEM_NOT_FOUND_2
Definition ItemDefines.h:80
@ EQUIP_ERR_BAG_FULL_5
@ EQUIP_ERR_CANT_EQUIP_LEVEL_I
Definition ItemDefines.h:27
@ EQUIP_ERR_GENERIC_STUNNED
Definition ItemDefines.h:63
@ EQUIP_ERR_WRONG_SLOT
Definition ItemDefines.h:29
@ EQUIP_ERR_WRONG_BAG_TYPE
Definition ItemDefines.h:41
@ EQUIP_ERR_PROFICIENCY_NEEDED
Definition ItemDefines.h:34
@ EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_COUNT_EXCEEDED_IS
@ EQUIP_ERR_EVENT_AUTOEQUIP_BIND_CONFIRM
@ EQUIP_ERR_CANT_EQUIP_NEED_TALENT
@ EQUIP_ERR_ONLY_ONE_BOLT
Definition ItemDefines.h:67
@ EQUIP_ERR_NO_BANK_SLOT
Definition ItemDefines.h:60
@ EQUIP_ERR_DROP_BOUND_ITEM
Definition ItemDefines.h:50
@ EQUIP_ERR_NOT_WHILE_DISARMED
Definition ItemDefines.h:87
@ EQUIP_ERR_PURCHASE_LEVEL_TOO_LOW
@ EQUIP_ERR_ITEM_NOT_FOUND
Definition ItemDefines.h:49
@ EQUIP_ERR_CANT_EQUIP_REPUTATION
Definition ItemDefines.h:90
@ EQUIP_ERR_CANT_WRAP_BOUND
Definition ItemDefines.h:72
@ EQUIP_ERR_OK
Definition ItemDefines.h:26
@ EQUIP_ERR_LOOT_GONE
Definition ItemDefines.h:75
@ EQUIP_ERR_CANT_SWAP
Definition ItemDefines.h:47
@ EQUIP_ERR_NOT_OWNER
Definition ItemDefines.h:58
@ EQUIP_ERR_NOT_SAME_ACCOUNT
@ EQUIP_ERR_CANT_EQUIP_SKILL
Definition ItemDefines.h:28
@ EQUIP_ERR_WRONG_BAG_TYPE_2
Definition ItemDefines.h:42
@ EQUIP_ERR_CANT_STACK
Definition ItemDefines.h:45
@ EQUIP_ERR_2HANDED_EQUIPPED
Definition ItemDefines.h:39
@ EQUIP_ERR_NOT_ENOUGH_MONEY
Definition ItemDefines.h:55
@ EQUIP_ERR_ITEM_UNIQUE_EQUIPPABLE_SOCKETED
@ EQUIP_ERR_INV_FULL
Definition ItemDefines.h:76
@ EQUIP_ERR_INTERNAL_BAG_ERROR
Definition ItemDefines.h:66
@ EQUIP_ERR_CANT_WRAP_EQUIPPED
Definition ItemDefines.h:70
@ EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED_IS
@ EQUIP_ERR_INTERNAL_BAG_ERROR_2
Definition ItemDefines.h:99
@ EQUIP_ERR_TRADE_EQUIPPED_BAG
Definition ItemDefines.h:32
@ EQUIP_ERR_NOT_EQUIPPABLE
Definition ItemDefines.h:46
@ EQUIP_ERR_VENDOR_MISSING_TURNINS
Definition ItemDefines.h:94
@ EQUIP_ERR_2HSKILLNOTFOUND
Definition ItemDefines.h:40
@ EQUIP_ERR_LOOT_CANT_LOOT_THAT_NOW
Definition ItemDefines.h:92
@ EQUIP_ERR_CANT_WRAP_STACKABLE
Definition ItemDefines.h:69
@ EQUIP_ERR_TRADE_BOUND_ITEM
@ EQUIP_ERR_ONLY_ONE_AMMO
Definition ItemDefines.h:68
@ EQUIP_ERR_SPELL_FAILED_REAGENTS_GENERIC
Definition ItemDefines.h:54
@ EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_SOCKETED_EXCEEDED_IS
@ EQUIP_ERR_NONE
@ EQUIP_ERR_TOO_MANY_SPECIAL_BAGS
Definition ItemDefines.h:91
@ EQUIP_ERR_ITEM_MAX_COUNT
Definition ItemDefines.h:43
@ EQUIP_ERR_NO_SLOT_AVAILABLE_2
Definition ItemDefines.h:38
@ EQUIP_ERR_CANT_WRAP_WRAPPED
Definition ItemDefines.h:71
@ EQUIP_ERR_VENDOR_SOLD_OUT_2
Definition ItemDefines.h:83
@ EQUIP_ERR_CANT_WRAP_UNIQUE
Definition ItemDefines.h:73
@ EQUIP_ERR_SCALING_STAT_ITEM_LEVEL_EXCEEDED
@ EQUIP_ERR_TOO_FEW_TO_SPLIT
Definition ItemDefines.h:52
@ EQUIP_ERR_NOT_ENOUGH_ARENA_POINTS
Definition ItemDefines.h:96
BuyResult
@ BUY_ERR_RANK_REQUIRE
@ BUY_ERR_SELLER_DONT_LIKE_YOU
@ BUY_ERR_CANT_FIND_ITEM
@ BUY_ERR_DISTANCE_TOO_FAR
@ BUY_ERR_NOT_ENOUGHT_MONEY
@ BUY_ERR_ITEM_SOLD_OUT
@ BUY_ERR_REPUTATION_REQUIRE
@ BUY_ERR_ITEM_ALREADY_SOLD
@ BUY_ERR_CANT_CARRY_MORE
SellResult
@ SELL_ERR_CANT_FIND_VENDOR
@ SELL_ERR_UNK
@ SELL_ERR_CANT_SELL_TO_THIS_MERCHANT
@ SELL_ERR_CANT_FIND_ITEM
@ SELL_ERR_CANT_SELL_ITEM
@ SELL_ERR_YOU_DONT_OWN_THAT_ITEM
@ SELL_ERR_ONLY_EMPTY_BAG