aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-05-14Fix Glyph of Life Tap.Anubisss
SpellMgr.cpp part of the code by Karolis.Rudzevicius, thanks for it. Fixes issue #1440. --HG-- branch : trunk
2010-05-14Fix Linux compileMachiavelli
--HG-- branch : trunk
2010-05-14Fix Glyph of Shred.Anubisss
--HG-- branch : trunk
2010-05-14Add config option SessionAddDelay to replace the hard coded 10ms default ↵Machiavelli
Networkthread sleep time after WorldSocket::HandleAuthSession calls and adding the session to the world session map. --HG-- branch : trunk
2010-05-13Make ObjectMgr::GetGuildByName and ObjectMgr::GetArenaTeamByName searches ↵Machiavelli
case insensitive. Fixes issue #307. Credits to Loread --HG-- branch : trunk
2010-05-13Prune some deadwood.Xanadu
--HG-- branch : trunk
2010-05-13Make questgivers automatically inform of quests in their gossipmenu when ↵click
available - removes need of extra gossip option to show quests Fix by Liberate (made for Malcrom so he stops complaining) --HG-- branch : trunk
2010-05-13Prevent SQL injection in Player::_SaveEquipmentSets()Machiavelli
--HG-- branch : trunk
2010-05-13Implement enchantments for ITEM_MOD_SPELL_PENETRATION and ITEM_MOD_BLOCK_VALUE.Machiavelli
Inspired by patch provided by Metthal Closes issue #1766 --HG-- branch : trunk
2010-05-13Fixed spell casting upon vehicle summoning.Xanadu
--HG-- branch : trunk
2010-05-13Fix crash introduced in 4610bbf047.Machiavelli
- Update SqlAsyncTask´s destructor, properly NULLpoint SqlOperation* m_op so other threads can deal with it accordingly. - Don´t keep NULL´d elements in transaction queues, remove them instead. This now means you should be able to run a stable server with > 2 MapUpdate threads. Please leave feedback. Courtesy of click and myself. --HG-- branch : trunk
2010-05-13Added missing newscript = new Script; , my fault. Thanks to Anubisss._manuel_
--HG-- branch : trunk
2010-05-13Changes in scripts for quest chain The Amphitheater of Anguish:_manuel_
- Added blizzlike content, like texts. - Corrected some spells and timers. - As i saw in offi can be more than 1 player doing different parts of the chain at the same time. - Added code to prevent the npc gets out of the ring. - Added support for The Amphitheater of Anguish: From Beyond. --HG-- branch : trunk
2010-05-13Fix a duplicated script: go_gilded_brazier.Anubisss
Remove it from one file and also merge the 2 scripts in one file. The error message: ScriptName: 'go_gilded_brazier' already assigned with the same ScriptName, so the script can't work. --HG-- branch : trunk
2010-05-13Fix a crash in SqlAsyncTask::call caused by the fact that the SQLOperation ↵Machiavelli
to be called was a NULL pointer. The crash was mostly noticable on servers with relatively high MapUpdate Threads, since the window between SqlAsyncTask::call()´s NULLpointer check for m_op and the usage of this pointer was larger when more map threads are calling Database::CommitTransaction()´s and NULLing this pointer. Fixes crash specified in comment #24 in issue #1259, and most likely will affect other crashes specified there as well. Courtesy of click and myself, and our lengthy and deep brainstorming session. --HG-- branch : trunk
2010-05-13Generate an error message when core tries to assign a script's ScriptName ↵Anubisss
which is already assigned. This means if that happened the core override the older script. As a result, the earlier one doesn't work and can't deallocate so generates memory leak. This commit also fixes memory leaks caused by that. Valgrind log: ==4753== 354 (312 direct, 42 indirect) bytes in 1 blocks are definitely lost in loss record 1,194 of 1,218 ==4753== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==4753== by 0x1039D85: AddSC_go_scripts() (go_scripts.cpp:1015) ==4753== by 0xDC196F: AddScripts() (ScriptLoader.cpp:534) ==4753== by 0xC19943: ScriptMgr::ScriptsInit() (ScriptMgr.cpp:70) ==4753== by 0xD1CCAE: World::SetInitialWorldSettings() (World.cpp:1608) ==4753== by 0x9100A6: Master::Run() (Master.cpp:234) ==4753== by 0x90F5D6: main (Main.cpp:146) --HG-- branch : trunk
2010-05-13Fix a memleak in AddSC_borean_tundra().Anubisss
Log: ==31592== 312 bytes in 1 blocks are definitely lost in loss record 423 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xFC12AF: AddSC_borean_tundra() (borean_tundra.cpp:2408) ==31592== by 0xDC0BF0: AddScripts() (ScriptLoader.cpp:917) ==31592== by 0xC183F3: ScriptMgr::ScriptsInit() (ScriptMgr.cpp:70) ==31592== by 0xD1B75F: World::SetInitialWorldSettings() (World.cpp:1608) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) --HG-- branch : trunk
2010-05-13Forget to call clear() for a vector from my previous commit.Anubisss
--HG-- branch : trunk
2010-05-13Call WaypointMgr's Free() in its destructor.Anubisss
Deallocate memory in Free() which allocated by WaypointMgr. This fixes memory leaks caused by waypoints. Valgrind log: ==31592== 2,203,488 (59,400 direct, 2,144,088 indirect) bytes in 2,475 blocks are definitely lost in loss record 1,230 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xD0EC23: WaypointStore::Load() (WaypointManager.cpp:70) ==31592== by 0xD1B55D: World::SetInitialWorldSettings() (World.cpp:1565) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) ==31592== ==31592== ==31592== 160 bytes in 5 blocks are possibly lost in loss record 10 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xD0EC0D: WaypointStore::Load() (WaypointManager.cpp:67) ==31592== by 0xD1B55D: World::SetInitialWorldSettings() (World.cpp:1565) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) ==31592== ==31592== ==31592== 384 bytes in 2 blocks are possibly lost in loss record 285 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xD0F2D4: __gnu_cxx::new_allocator<WaypointData*>::allocate(unsigned long, void const*) (new_allocator.h:92) ==31592== by 0xD0F303: std::_Vector_base<WaypointData*, std::allocator<WaypointData*> >::_M_allocate(unsigned long) (stl_vector.h:144) ==31592== by 0xD0F87B: std::vector<WaypointData*, std::allocator<WaypointData*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<WaypointData**, std::vector<WaypointData*, std::allocator<WaypointData*> > >, WaypointData* const&) (vector.tcc:308) ==31592== by 0xD0F9F7: std::vector<WaypointData*, std::allocator<WaypointData*> >::push_back(WaypointData* const&) (stl_vector.h:694) ==31592== by 0xD0ED0B: WaypointStore::Load() (WaypointManager.cpp:89) ==31592== by 0xD1B55D: World::SetInitialWorldSettings() (World.cpp:1565) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) --HG-- branch : trunk
2010-05-13Global cooldown for players should never exceed 1,5 seconds. Fixes issue #1998Machiavelli
--HG-- branch : trunk
2010-05-13Some warning fixSpp
Tab to spaces Remove trailing spaces --HG-- branch : trunk
2010-05-13Make WaypointMgr to singleton.Anubisss
Move global waypoint_map variable to WaypointMgr's private variable. --HG-- branch : trunk
2010-05-12Delete ALL scripts which not assigned instead of delete scripts which not ↵Anubisss
assigned AND its ScriptName not contains the word "example", in Script::RegisterSelf(). So fixes memleaks in scripts which scriptname contains the "example" word AND not assigned(ScriptName column in DB) to an object. This ones fixed: example_creature, example_escort, example_areatrigger, example_item, example_go_teleporter, example_gossip_codebox. Some valgrind log: :) ==31592== 353 (312 direct, 41 indirect) bytes in 1 blocks are definitely lost in loss record 280 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xEFAC8A: AddSC_example_creature() (example_creature.cpp:286) ==31592== by 0xDC047A: AddScripts() (ScriptLoader.cpp:523) ==31592== by 0xC183F3: ScriptMgr::ScriptsInit() (ScriptMgr.cpp:70) ==31592== by 0xD1B75F: World::SetInitialWorldSettings() (World.cpp:1608) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) ==31592== ==31592== ==31592== 351 (312 direct, 39 indirect) bytes in 1 blocks are definitely lost in loss record 281 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xEFB426: AddSC_example_escort() (example_escort.cpp:223) ==31592== by 0xDC047F: AddScripts() (ScriptLoader.cpp:524) ==31592== by 0xC183F3: ScriptMgr::ScriptsInit() (ScriptMgr.cpp:70) ==31592== by 0xD1B75F: World::SetInitialWorldSettings() (World.cpp:1608) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) ==31592== ==31592== ==31592== 359 (312 direct, 47 indirect) bytes in 1 blocks are definitely lost in loss record 282 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xEFBCB6: AddSC_example_gossip_codebox() (example_gossip_codebox.cpp:93) ==31592== by 0xDC0484: AddScripts() (ScriptLoader.cpp:525) ==31592== by 0xC183F3: ScriptMgr::ScriptsInit() (ScriptMgr.cpp:70) ==31592== by 0xD1B75F: World::SetInitialWorldSettings() (World.cpp:1608) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) ==31592== ==31592== ==31592== 358 (312 direct, 46 indirect) bytes in 1 blocks are definitely lost in loss record 283 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xEFC04B: AddSC_example_misc() (example_misc.cpp:65) ==31592== by 0xDC0489: AddScripts() (ScriptLoader.cpp:526) ==31592== by 0xC183F3: ScriptMgr::ScriptsInit() (ScriptMgr.cpp:70) ==31592== by 0xD1B75F: World::SetInitialWorldSettings() (World.cpp:1608) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) ==31592== ==31592== ==31592== 356 (312 direct, 44 indirect) bytes in 1 blocks are definitely lost in loss record 501 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xEFBF96: AddSC_example_misc() (example_misc.cpp:55) ==31592== by 0xDC0489: AddScripts() (ScriptLoader.cpp:526) ==31592== by 0xC183F3: ScriptMgr::ScriptsInit() (ScriptMgr.cpp:70) ==31592== by 0xD1B75F: World::SetInitialWorldSettings() (World.cpp:1608) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) ==31592== ==31592== ==31592== 349 (312 direct, 37 indirect) bytes in 1 blocks are definitely lost in loss record 1,209 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xEFBFDB: AddSC_example_misc() (example_misc.cpp:60) ==31592== by 0xDC0489: AddScripts() (ScriptLoader.cpp:526) ==31592== by 0xC183F3: ScriptMgr::ScriptsInit() (ScriptMgr.cpp:70) ==31592== by 0xD1B75F: World::SetInitialWorldSettings() (World.cpp:1608) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) --HG-- branch : trunk
2010-05-12Remove Non-Blizzlike hack for spell 25899 - Greater Blessing of Sanctuary. ↵Machiavelli
It now gives 10% strength increase as intended. --HG-- branch : trunk
2010-05-12Delete an unused variable.Anubisss
--HG-- branch : trunk
2010-05-12MergeMachiavelli
--HG-- branch : trunk
2010-05-12Fix the bug that client can see incompatible realms in the RealmList.Anubisss
--HG-- branch : trunk
2010-05-12Replace some WorldSocket code with Derex´s code for MaNGOS to support ↵Machiavelli
packets > 64kb. This get rid of the ¨queue¨ that only supported 1 packet and implement it properly. Meaning no ¨internal¨ packet loss obstructing the client/server I/O. Apply Trinity code style where applicable. --HG-- branch : trunk
2010-05-12added Honorable Defender buff for Alterac Valley nodes + bosses + captainsRat
--HG-- branch : trunk
2010-05-12added Honorable Defender buff for Eye of the storm nodesRat
ignore one unknown area trigger near fel reaver graveyard --HG-- branch : trunk
2010-05-12make BG kill XP configable, default offRat
--HG-- branch : trunk
2010-05-12typo :(Rat
should olso fix linux compile --HG-- branch : trunk
2010-05-12added Honorable Defender buff for Arathi Basin nodesRat
-players protecting their bases will gain +50% honor near the base --HG-- branch : trunk
2010-05-11give xp only in BattleGrounds and not in arenasRat
--HG-- branch : trunk
2010-05-11started implementing battleground experience systemRat
-players gain xp by killing enemy players (event bonuses not added for now) -player can switch xp gain on/off by talking to npc Slahtz or Behsten for a fee of 10golds NOTE: turning off xp gain will turn off ALL xp gains from quests,monsters,pvp,etc --HG-- branch : trunk
2010-05-11Spell custom attribute data for Northrend faction commendation badges ↵Machiavelli
(spells 61306,61308,61311,61312,69757). They now give proper reputation --HG-- branch : trunk
2010-05-10Force animprogress for GameObjects Type FishNodeSpp
Original patch by beberlescaraber --HG-- branch : trunk
2010-05-10Typo.Machiavelli
(Need more caffeine) --HG-- branch : trunk
2010-05-10Fix typo that occured in the mess of exporting/stripping, my humble apologies.Machiavelli
--HG-- branch : trunk
2010-05-10MergeMachiavelli
Thanks to Aokromes for helping me test my previous commit --HG-- branch : trunk
2010-05-10Cleanup and optimization in realmd netcode.Machiavelli
- Get rid of some potential memory leaks and lingering connections issues. - Code style cleanup where applicable. Please give proper feedback and let me know how she fares. --HG-- branch : trunk
2010-05-10Remove double-included headers from script + remove whitespace. Closes issue ↵click
2091. --HG-- branch : trunk
2010-05-07* Add SCRIPT_COMMAND_CLOSE_GOSSIP that can be used in gossip_scripts to forceBrian
* the gossip window to close when a given menu option is chosen. * This is with all my love -- for Malcrom :P --HG-- branch : trunk
2010-05-10Stop drinking heavily and instead do things properly - fixes a typo from ↵click
previous commit... --HG-- branch : trunk
2010-05-10Fix the little messup from the previous commit (sorry!)click
--HG-- branch : trunk
2010-05-10Add support for NPC-based start of playing moviesequence + clean up ↵click
indenting on earlier commit --HG-- branch : trunk
2010-05-10Another little fix on hunter Disengage - stop it from being usable when rootedclick
--HG-- branch : trunk
2010-05-10Correctly complete quests with QUEST_FLAGS_AUTO_ACCEPT which should be ↵click
completed the moment you accept it. This fixes the quests which weren't completable in starting areas. Fixes issue #2042. Patch by liberate. --HG-- branch : trunk
2010-05-09Fix a crash in GameObject::TakenDamageSpp
Fixes issue 2082 --HG-- branch : trunk
2010-05-09Fix hunters Disengage - disallow use when not in combat + use correct text ↵click
when attempting to use it out of combat Patch by mrDiver - fixes issue #568. --HG-- branch : trunk