aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectMgr.cpp
AgeCommit message (Collapse)Author
2010-03-27Make a function(ToTempSummon()) which can convert Creature to TempSummon ↵Anubisss
with a C++ cast(reinterpret_cast) and with a type check(isSummon()). This function is like ToPlayer(), ToTotem(), etc. This commit is like ede831bdd6f0cff481acc33f269fa7f8c78befd4 / r7496: http://code.google.com/p/trinitycore/source/detail?r=ede831bdd6f0cff481acc33f269fa7f8c78befd4 As a result, this commit has the advantages and the "disadvantages" too, like r7496. Please try to be polite if this commit causes some crashes. --HG-- branch : trunk
2010-03-27Implement usage of RewardArenaPoints field in quest_templateMachiavelli
--HG-- branch : trunk
2010-03-25cleanups in vehicle accessories storagesilverice
transfer accesory list by pointer, make it constant --HG-- branch : trunk
2010-03-24* Allow the use of referenced trainer / vendor data.Brian
* This will reduce the size of the trainer / vendor tables a LOT. * Current tables will continue to work as/is until the refs can be made. * Huge thanks to XTElite1 * Credits for patch to Cycrow --HG-- branch : trunk
2010-03-23Added support for maximum allowed player level for quests. By Gyullo.Xanadu
--HG-- branch : trunk
2010-03-20Do not use hard coded index in SMSG_QUEST_POI_QUERY_RESPONSE. May be the ↵Machiavelli
resolution for some client crashes. --HG-- branch : trunk
2010-03-17Fixed players not being able to resurrect after core crash.Xanadu
--HG-- branch : trunk
2010-03-15Properly implemented CONDITION_ACHIEVEMENT for the DB gossip system.Xanadu
--HG-- branch : trunk
2010-03-14* Backed out changeset ddd823e3e200Brian
* hg commit <filename> isn't enough to push one file * also need hg push <filename> --HG-- branch : trunk
2010-03-14* mergeBrian
--HG-- branch : trunk
2010-03-14* Added CONDITION_CLASS / CONDITION_RACE / CONDITION_ACHIEVEMENT forBrian
* gossip / loot conditions --HG-- branch : trunk
2010-03-12Move vehicle accesories to DB.Spp
Credit to Malcrom and Manuel for the idea and original patch --HG-- branch : trunk
2010-03-10Overlooked ObjectMgr changes to reflect group table structure updates. Fixes ↵Machiavelli
issue #1046 --HG-- branch : trunk
2010-03-10Fix crash in group loading.Spp
--HG-- branch : trunk
2010-03-10Removed forgotten nonexistent colums from a query. Thank Aokromes for ↵Xanadu
pointing a finger on it --HG-- branch : trunk
2010-03-07fix my typosilver1ce
thanks to KingPin for pointing the problem --HG-- branch : trunk
2010-03-07check creature's base stats table in more proper waysilver1ce
it should show more missing data --HG-- branch : trunk
2010-03-02Move initialization of m_GMticketid to avoid random numbers being assigned ↵p0wer
if gm ticket table is empty. Thanks Ayane. Closes issue #883. --HG-- branch : trunk
2010-03-03changes in creature base stats storagesilver1ce
* speedup stats searching * no more default stat generation for each class-level pair, there is only one default stat * CreatureBaseStats does not contain level and class --HG-- branch : trunk
2010-03-03store unit's level in uint8 formatsilver1ce
TODO: may be change db format too --HG-- branch : trunk
2010-03-03add creature expansion checksilver1ce
--HG-- branch : trunk
2010-03-02* Add support for sending quest completion textBrian
* Original patch by NoFantasy - thank you * Ported to Trinity by seirgy - thank you * Closes issue #873 --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-23Through DB you can now disable password changing by non-gm's simply by ↵p0wer
changing m_public to 0. Make channels public by default. --HG-- branch : trunk
2010-02-23Fix typo in core bootup where it incorrectly displays an error message and ↵p0wer
returns false. Having the Max vendor items is acceptable. --HG-- branch : trunk
2010-02-18* CRLF to LFBrian
--HG-- branch : trunk
2010-02-18* Optimized guild and arena team loading at startupDarkrabbit
--HG-- branch : trunk
2010-02-18* Properly display missing vehicle IDs on startupBrian
--HG-- branch : trunk
2010-02-17* Add error checking for vehicle IDs that are in creature_template but don'tBrian
* exist in Vehicle.dbc. This *WILL* cause the client to freeze / hang. * Look on TDB in the "Core related DB content" forum for a query to clean * these up. * Thanks to MaXiMiUS for the slap in the face :) --HG-- branch : trunk
2010-02-16* Add support for CONDITION_QUEST_NONE (14) as a loot condition and gossipBrian
* condition. If set the player must never have taken or completed the quest * listed in value1 --HG-- branch : trunk
2010-02-15Removed stupid/not needed file Spellid.h.n0n4m3
--HG-- branch : trunk
2010-02-15Fix some problem with Guild Bank after switch to client version 3.3.2, also ↵n0n4m3
cleanup code. Thx TOM_RUS. --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-05A great purge of obsolete macros.Xanadu
--HG-- branch : trunk
2010-02-01*drop spell_elixir tableQAston
*add spell_group table for storage of groups of spell (kinda obvious, isn't it?) and populate the table with converted spell_elixir table data *the table is going to be maintained by core team *fix percentage display at spell_ranks table loading *add TARGET_UNIT_CASTER to allowed learn spell targets in npc_trainer table, thanks to Aokromes for noticing the issue. --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-29* Added check in ObjectMgr to allow RewSpellCast=-1. Thanks QAstonBrian
--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-21* Backed out changeset c7c6faf26cbdBrian
* A different solution to damage will be implemented * You will need data from your DB provider if you don't have a backup --HG-- branch : trunk
2010-01-21* Add support for basedmg and baserangeddmg values in creature_classlevelstats.win32
* Remove mindmg, maxdmg, attackpower and ranged field in creature_template and add Dmg_Mod, Rangeddmg_Mod field. --HG-- branch : trunk
2010-01-18*Remove some of no longer needed debug code.QAston
--HG-- branch : trunk
2010-01-18*Add some debug info to trac reason of assertion fail in Unit destructor.QAston
--HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-16Some replacements .count to .find for better performance - original patch by ↵n0n4m3
zhenya. --HG-- branch : trunk
2010-01-16Fix a mem leak in ObjectMgr::LoadWaypointScripts(), ↵Anubisss
http://pastebin.com/f701c1e11 --HG-- branch : trunk
2010-01-15* Update structure for SMSG_ADDON_INFO and add some sort of basic handling ↵XTZGZoReX
for incorrect addon CRCs (anti-cheating). * Fix CRLF in MovementHandler.cpp. * Move some handlers/senders to correct place. --HG-- branch : trunk
2010-01-14* Set creature_template.unit_class to 1 (UNIT_CLASS_WARRIOR) if the value is ↵XTZGZoReX
wrong to prevent issues in CreatureBaseStats::Generate*() functions. --HG-- branch : trunk
2010-01-14* creature_template.unit_class cannot be 0 - added check for this.XTZGZoReX
--HG-- branch : trunk
2010-01-11* Fix crash when there's no creature_classlevelstats entry for a creature level.XTZGZoReX
* All this really does is fill in default values of 1.. If you got custom content, you'll have to fill in the creature_classlevelstats table yourself. This patch doesn't automagically fix stats for you. --HG-- branch : trunk
2010-01-10* Add support for base armor values in creature_classlevelstats.XTZGZoReX
* Change the table structure to be more core-friendly. * Remove armor field in creature_template and add Armor_mod field. * Also add static CreatureBaseStats::GetBaseStats() function for scripts. --HG-- branch : trunk