aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
AgeCommit message (Collapse)Author
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-18Added (blizzlike) packet broadcast to near teleport. Thanks to Zor and ↵Xanadu
nalimleinad (AKA anonymous colleague #1) for research. --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-18* Cleanups and comments in Player::SendInitWorldStates.XTZGZoReX
--HG-- branch : trunk
2010-03-16- Overload Item::SetState with player argument where possible to ensure ↵Machiavelli
updated data is saved to DB properly. - Alter Item::SetEnchantmentDuration function, add parameter Player* because GetOwner() cannot be called in the function due to hashtable locking in the SaveAllPlayers process. - Remove a sanity check prior to Item::AddToUpdateQueueOf, so assertions can detect whenever a higher level function was not called properly. Please report any crashes related to these assertions to get them resolved asap. --HG-- branch : trunk
2010-03-15Fix lootable check in Player::isAllowedToLoot.Trazom62
--HG-- branch : trunk
2010-03-14Fix creature tapped and lootable dynamic flags => fix creature not lootable.Trazom62
Fixes issue #1067. --HG-- branch : trunk
2010-03-11Implement group loot for chest having GroupLootRules (go type=3, data15=1).Trazom62
Implement round robin loot. Implement round robin for underthreshold items (group loot and need befor greed). Fix "all players pass" bug on creature. Add SMSG_LOOT_LIST message to indicate looter (round robin or master). And some other minor loot bugs. Fixes issue #167. Fixes issue #247. --HG-- branch : trunk
2010-03-11Convert some C style casts to new functionsthenecromancer
--HG-- branch : trunk
2010-03-09Fix removal of action buttons by removing some redundant code.Machiavelli
--HG-- branch : trunk
2010-03-09Rename 'Hostil' to 'Hostile'Spp
Credits to NoFantasy (Mangos) Closes issue #411 --HG-- branch : trunk
2010-03-07Some Creature* casts moved to new ToCreature.raczman
Added const Creature* ToCreature() --HG-- branch : trunk
2010-03-07avoid send movement packet at death twice, cleanupsilver1ce
--HG-- branch : trunk
2010-03-07Added new type-safe cast functions.raczman
This, when properly used, should get rid of most memory corruption issues, currently, casting types C-style with no checks leads to some abstract crashing. Functionality is same as with dynamic_cast<>, but with no RTTI check - so when casting into invalid type you will receive NULL, and most probably crash. At the same time, i took the liberty to convert most Player* casts to ToPlayer(). Still needs crapload of casts being moved to new facility. --HG-- branch : trunk
2010-03-06Send movement packet on creature/player death (expected for animation ↵thenecromancer
display, don't ask me why) Don't bother in case of flying creatures, as there's already something sent --HG-- branch : trunk
2010-03-02* Move some values out of the data blob in the characters tableBrian
* (honor, kills, title, currencies, watched faction, drunken-status, health and power) * Original Author Hunuza - thank you * Ported to Trinity by RammboNr5 - thank you * Tested by Aokromes - thank you * Closes Issue #911 --HG-- branch : trunk
2010-03-01*fix weapon enchants procing in feral forms, closes issue #23Rat
--HG-- branch : trunk
2010-02-28* Fix SMSG_TRANSFER_ABORTED. Don't modify packet structures unless you ↵XTZGZoReX
actually verify them... --HG-- branch : trunk
2010-02-27Update visibility systemsilver1ce
*visibility updates and ai relocations processed simultaneously for each grid *these operations now are not synchronized for different grids *some changes into structure of visibility notifiers --HG-- branch : trunk
2010-02-25Add new flagged column to access_requirement to set instances opened/closed.Tartalo
This way is possible to open a raid on 10man mode while the rest of modes are closed (for example). Ingame commands to open/close instances coming soon ;) --HG-- branch : trunk
2010-02-20*CRLF:(QAston
--HG-- branch : trunk
2010-02-20*Move summon water elemental handler to correct place.QAston
--HG-- branch : trunk
2010-02-18Treat rune cooldowns as timers and not as remaining tick countsthenecromancer
Implement support for modifiers changing rune regeneration rate Apply all spells from Improved Unholy Aura --HG-- branch : trunk
2010-02-15*Backout some WTF fixes. Do things correctly, or do not touch them at all...QAston
*Really fix windows build. --HG-- branch : trunk
2010-02-15Removed stupid/not needed file Spellid.h.n0n4m3
--HG-- branch : trunk
2010-02-15Use PVPDificulty.dbc for bg/arena bracket selection (levels and difficulty). ↵n0n4m3
Rename BG/arena queue_id to bracket_id and related functions/etc. Author: VladimirMangos. --HG-- branch : trunk
2010-02-15Add missing fix for update arena use spell time cooldown. In 3.3.x 10min.n0n4m3
--HG-- branch : trunk
2010-02-15Store to be traded items in array based on item guid instead of item slot to ↵Machiavelli
prevent exploiting. Fixes #667. --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-02-06Fixed data loss at player save.n0n4m3
--HG-- branch : trunk
2010-02-05A great purge of obsolete macros.Xanadu
--HG-- branch : trunk
2010-02-03*Move object's field\visibility update functions to object from accessorsilver1ce
removed useless SendUpdateObjectToAllExcept - anyway fields will be updated, there is no sense to force update them --HG-- branch : trunk
2010-02-02* Fixed reputation buying from vendors where the items had 0 for Req repBrian
* faction, but >0 for Req rank. In that case it pulls the faction of the * vendor. * HUGE thanks to QAston and silverice --HG-- branch : trunk
2010-01-31Fix Metagem bug exploit. Thanks Azazel and p.alexej.Trazom62
Fixes issue #579. Fixes issue #453. --HG-- branch : trunk
2010-01-31*Add support for spells in npc_trainer table with multiple ↵QAston
SPELL_EFFECT_LEARN_SPELL, this fixes problems with learning such spells from trainers. --HG-- branch : trunk
2010-01-30Remove unnecesary item enchants checksSpp
By Az@zel Closes issue #382 --HG-- branch : trunk
2010-01-30*Add error checks at spell_required table loadingQAston
*Allow spell_required table to store more than 1 spell learn requirement for a spell *spell_required table data is removed from world.sql and since this commit the data for it should be maintained by db project you're using. --HG-- branch : trunk
2010-01-30*Fix the dead loop in Player::removeSpell, or at least optimize the cycle.QAston
--HG-- branch : trunk
2010-01-29* Implement ↵XTZGZoReX
CMSG_CORPSE_MAP_POSITION_QUERY/CMSG_CORPSE_MAP_POSITION_QUERY_RESPONSE opcodes. Thanks to: Ceris, Lightguard, raczman for helping with research/code. * Fix SMSG_QUERY_TIME_RESPONSE use/structure. Patch/research by TOM_RUS. --HG-- branch : trunk
2010-01-26* moved IsGameObjectOfTypeInRange to debug log levelBrian
--HG-- branch : trunk
2010-01-24implement ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM (achievement Epic, Superior)Trazom62
remove hack for ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED_ON_LOOT and ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED_ON_LOOT (achievement Needy, Greedy) need DB support --HG-- branch : trunk
2010-01-23Implement QueryResult_AutoPtr type which is ACE's reference counted ↵Anubisss
auto_ptr(ACE_Refcounted_Auto_Ptr) for QueryResult pointers. Use this auto_ptr for every DB queries(except QueryNamedResult yet). This patch guarantees NO memory leaks from QueryResult pointers. Thanks to raczman for the idea and for the helping to make this patch. --HG-- branch : trunk
2010-01-22*Prevent assertion fail in Unit::_AddAura after creature add to remove list.QAston
--HG-- branch : trunk
2010-01-21Send all 24 bits of spell Id for vehicle spell actionsthenecromancer
--HG-- branch : trunk
2010-01-21Implement minimal arena team size for some items arena rating requirements.win32
Autor LordJZ. --HG-- branch : trunk
2010-01-20* Wintergrasp removal -- part 4: "How deep does the cancer run?"Brian
--HG-- branch : trunk
2010-01-20Fixes #420 fixed out-of-range group member's position update, which broken ↵silver1ce
after 7014f421c8 --HG-- branch : trunk
2010-01-18*Remove some of no longer needed debug code.QAston
--HG-- branch : trunk
2010-01-18*Cleanups before delete after not successfull load pet from db. Thanks to ↵QAston
Drahy for debug traces. --HG-- branch : trunk
2010-01-18Auras with turn/move interrupt flags are now removed for creatures when they ↵silver1ce
turn/move, cleanup --HG-- branch : trunk