aboutsummaryrefslogtreecommitdiff
path: root/src/game/ItemHandler.cpp
AgeCommit message (Collapse)Author
2010-05-31Fix exploit with swaping already looted items.Trazom62
Patch by Vladimir from idea of Zhenya. Fixes issue #702. --HG-- branch : trunk
2010-05-21More achievement types support.John Holiver
Achievment types used only for statistics: * ACHIEVEMENT_CRITERIA_TYPE_CREATE_AUCTION * ACHIEVEMENT_CRITERIA_TYPE_WON_AUCTIONS * ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_VENDORS * ACHIEVEMENT_CRITERIA_TYPE_GOLD_EARNED_BY_AUCTIONS Tnx to VladimirMangos --HG-- branch : trunk
2010-05-21Fixed disenchanting rolls being allowed for all items, now works as intendedShauren
Renamed Faction to Flags2 in ItemPrototype and added use for some of them yay, my first commit :D --HG-- branch : trunk
2010-05-18Some more engrish to english logerror updates.malcrom
--HG-- branch : trunk
2010-05-13Some warning fixSpp
Tab to spaces Remove trailing spaces --HG-- branch : trunk
2010-05-01Fix broken vendorsclick
Fixes issue #1952 --HG-- branch : trunk
2010-04-30Add support for vendors selling the same items with different extendedCost - ↵click
original code by Vladimir (thanks mate) Closes issue #1756 --HG-- branch : trunk
2010-04-30Clean up in item refund related code.Machiavelli
--HG-- branch : trunk
2010-04-28Fix item vendor refund for stackable items.Machiavelli
--HG-- branch : trunk
2010-04-14Drop not needed table 'item_text', add new column 'text' in table ↵n0n4m3
'item_instance'. Original patch by Vladimir. --HG-- branch : trunk
2010-04-11Tab to Spaces and remove of trailing spacesSpp
--HG-- branch : trunk
2010-04-11Implement some opcodes. Big thx to TOM_RUS.n0n4m3
--HG-- branch : trunk
2010-04-08Code Style (game + scripts only):Spp
"!=" --> " != " (when needed) " !=" --> " !=" "!= " --> "!= " --HG-- branch : trunk
2010-04-07Code Style (game + scripts only):Spp
"==" --> " == " (when needed) --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"( " --> "(" " )" --> ")" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"if(" --> "if (" --HG-- branch : trunk
2010-04-07Code Style: Remove trailing spacesSpp
--HG-- branch : trunk
2010-03-21- More changes to the item handling system to prevent an item still being ↵Machiavelli
listed in a player's refundable storage - Remove an assert in _SaveInventory(). Instead, I added an error log and manual removal. Please post these error logs should they occur - In _LoadInventory, also check for player_guid when loading refund data --HG-- branch : trunk
2010-03-20Item system updateMachiavelli
- Set ITEM_FIELD_CREATE_PLAYED_TIME to 0 in Item::Create, should fix crash described in issue 1199 - Change some function calls so on Player::_saveInventory the core doesn't have to check for existance of item anymore when iterating over m_refundableItems. The loop will now only update played time, removal of items from this set is done in other functions. - Cleanup in affected functions. --HG-- branch : trunk
2010-03-18Store alternate currency spent on an item by Item ExtendedCost entry instead ↵Machiavelli
of honorPts/arenaPts/items seperately. Thanks to Opterman for the idea. --HG-- branch : trunk
2010-03-18Implement vendor item refund system.Machiavelli
For info about this system, see: hxxp://us.blizzard.com/support/article.xml?locale=en_US&articleId=27351 Thanks to: - Opterman, Malcrom, Xanadu + anonymous colleagues for aiding research on packet structure - Aokromes and Svannon for testing --HG-- branch : trunk
2010-03-15* Added support for only displaying items from vendors for the team theBrian
* player is on. Faction field in item_template is actually team, and will * be renamed in a later patch. * 1 == Horde / 2 == Alliance * Thanks Aokromes for helping research / test --HG-- branch : trunk
2010-02-14* Core switch to client 3.3.2 (11403)Brian
* Credits (in no particular order) to: * n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo, * thenecromancer, Xanadu, Trazom, Zor, kiper * Additional credits to: * TOM_RUS and NoFantasy from MaNGOS * Thanks for testing Aokromes and XTElite1 * SoTA still needs some work, but is very playable (huge thanks to raczman and * kiper) * To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the * last rev you are on * and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world * DBs * Known problem with guild banks. --HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-03* Removed useless check for items in DBC but not in DB.Brian
--HG-- branch : trunk
2009-12-21* Add support for RewSpellCast=-1. If -1 remove all auras applied to player atBrian
* quest start. * Patch by Kudlaty -- THANK YOU! --HG-- branch : trunk
2009-12-19Show item expire time in realtime case. by Wowka321n0n4m3
--HG-- branch : trunk
2009-12-19Fixed some typos and revert one commitn0n4m3
--HG-- branch : trunk
2009-12-19Avoid not needed too oftent send update data, cleanups. by SilverIcen0n4m3
--HG-- branch : trunk
2009-12-18*Cleanup, proper indentation, and remove some wrong/irrelevant comments ↵maximius
copied from custom patches.. --HG-- branch : trunk
2009-12-17Basic support for item refund system added in 3.1. by Machiavellin0n4m3
--HG-- branch : trunk
2009-12-17Update InstanceSaveMgr for new instance systemn0n4m3
--HG-- branch : trunk
2009-10-17*Massive cleanup redux.maximius
--HG-- branch : trunk
2009-10-17*Backed out changeset 3be01fb200a5maximius
--HG-- branch : trunk
2009-10-17*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and ↵maximius
some other cleanups by hand) *Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
2009-09-01[8438] Correctly update achievement at bank bag slot buy instead next login. ↵megamage
Author: win --HG-- branch : trunk
2009-08-19 [8389] Implement check really read received packet size and warning it ↵megamage
not all data read. Author: VladimirMangos * This let more easy catch packet structure chnages at client switch. * Fixed structure CMSG_GUILD_BANK_SWAP_ITEMS * Fixed structure CMSG_SPLIT_ITEM, CMSG_SELL_ITEM * Added read data amount fixes for some other packets. Thanks to TOM_RUS in help check correct packets structure. Note: not all packets possible fixed. Please report for not fixed cases at errors: "opcode %s (0x%.4X) have unprocessed tail data (read stop at %u from %u)" --HG-- branch : trunk
2009-08-19 [8378] Use exceptions instead of explicit size checking for each packet ↵megamage
Author: arrai CHECK_PACKET_SIZE was pretty error prone; once it was forgotten mangosd could crash due to the asserts in ByteBuffer.h. That was exploitable by malicious players. Furthermore, there were duplicate checks: Additionally to CHECK_PACKET_SIZE, the ByteBuffer assertions keept an eye on not exceeding the packet boundaries - just to crash the server for sure in such a case. To prevent memory leaks or other undesirable states, please read in every handler all variables _before_ doing any concrete handling. --HG-- branch : trunk
2009-07-30 [8244] Skip cheating check for buy bank slot opcode. Author: VladimirMangosmegamage
This is not big problem in any case and will allow buy slots in bank windows open using .bank command. --HG-- branch : trunk
2009-07-07 [8121] Cleanup and more safe code in Player::BuyItemFromVendor use. ↵megamage
Author: VladimirMangos * Move bag search by bag guid code to WorldSession::HandleBuyItemInSlotOpcode * Really reject unexisted bag cases. --HG-- branch : trunk
2009-06-19[8048] Fixed typo in HandleBuyItemInSlotOpcode. Author: nos4r2zodmegamage
[8047] Little cleanup in C++ manner. Author: ApoC --HG-- branch : trunk
2009-06-11*Switch to support client version 3.1.3megamage
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash. Source: Mangos Thanks to TOM_RUS for most work to make this switch possible ;) --HG-- branch : trunk
2009-06-04[7950] Make clear in error output 2 cases of fail CMSG_ITEM_NAME_QUERY: DB ↵megamage
absent data and not expected to exist item. Author: VladimirMangos --HG-- branch : trunk
2009-05-31Mangos [7911]. Author: tomrus88megamage
Very big patch. May cause bugs. --HG-- branch : trunk
2009-05-24Fixed bank bag slot amount achievement statistic. Cleanup related code. ↵megamage
Author: VladimirMangos --HG-- branch : trunk
2009-04-27[7716] Fixed some typos and possible crashes. Author: AlexDerekamegamage
--HG-- branch : trunk
2009-04-19[7688] Move Get*IfCanInteractWith to Player including renamed ↵megamage
IsGameObjectOfTypeInRange. Author: VladimirMangos --HG-- branch : trunk
2009-04-13[7659] Added several security checks to prevent cheating using facked ↵megamage
packets Author: arrai --HG-- branch : trunk
2009-04-06*Update of aura system.QAston
--HG-- branch : trunk
2009-03-08[7403] much more unneeded includes removed Author: balrokmegamage
--HG-- branch : trunk