aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-03-27* Remove unused config option Rate.XP.PastLevel70.XTZGZoReX
--HG-- branch : trunk
2010-03-27Implement Script CoS. Thanks Johnholiver.Trazom62
Fixes issue #336. Requires DB update. Still WiP but functional. --HG-- branch : trunk
2010-03-27Fix crash in Player::DuelComplete.Trazom62
Fixes issue #1243. --HG-- branch : trunk
2010-03-27Use ToTotem() in a case.Anubisss
--HG-- branch : trunk
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-27Fix compiler warning in mob_crystal_handlerAIMachiavelli
--HG-- branch : trunk
2010-03-27Implement usage of RewardArenaPoints field in quest_templateMachiavelli
--HG-- branch : trunk
2010-03-27Partial implementation of instance system patch by scarymovie87, fix max ↵Machiavelli
players check in instance. Cause of error was a pointer of class Player was casted to class InstanceMap. Refs issue #1323 --HG-- branch : trunk
2010-03-27Use GUIDs instead of "global" pointers in ~all boss/instance scripts.Anubisss
GUIDs are most safer than pointers and in some cases can avoid segmentation faults. == - == Let me show a simple example: We have a pointer to a creature: Creature *pCreature; and try to search a creature and store it in the pointer: pCreature = SearchCreature(ID); We can check simply if the creature found or not: if(pCreature) - if this give true: creature found and we have a memory address which points to the creature - if this give false: creature not found and this is a NULL pointer Suppose that we have a valid pointer, so creature found. We wanna use that pointer somewhere, for example in script phase 3. But we delete the creature(from world) in phase 1. In phase 3: if(pCreature) pCreature->DoSomeShit(); The if condition gives true, but pCreature points to an _invalid_ address. In that address maybe have "nothing" or another creature's object or a player or anything else, dont know that. ~~ - ~~ Let me show the correct way: Creature's GUID: uint64 CreatureGUID; search the creature and set the GUID: Creature *pCreature = SearchCreature(ID); CreatureGUID = pCreature ? pCreature->GetGUID() : 0; // if pCreature is NULL set the GUID to 0 So we have a GUID and not a pointer. We can get the creature from that GUID: Creature *pCreature = GetCreature(CreatureGUID); and we can simply check it is valid or not(found or not): if(pCreature) So we deleted the creature in phase 1 and try to use it in phase 3: Creature *pCreature = GetCreature(CreatureGUID); And this gives NULL because GetCreature() can't find the creature which GUID is CreatureGUID. if(pCreature) // pCreature is NULL pCreature->DoSomeShit(); // DoSomeShit() not called == - == Remove some not used variables. Some clean. TODO: Should search/fix these in zones scripts. --HG-- branch : trunk
2010-03-27Fix InstanceData::DoCompleteAchievement (and crash in ↵Trazom62
AchievementMgr::CompletedAchievement). Remove support of no longer existing achievement "The Party is Over". Thanks JuliuSZS. Fixes issue #1318. --HG-- branch : trunk
2010-03-27Fix UT/Ingvar the plunderer script.Trazom62
Fixes issue #1034. - Remove setDisplayID hack and use UpdateEntry to fix Ingvar Kill Credit related achievements. - code style cleaning. Requires DB update to set loot from Ingvar Human (23954) to Undead (23980) (in normal and heroic). --HG-- branch : trunk
2010-03-26Fix hardmode achievement from Obsidiam Sanctum_manuel_
Fix Flame Tsunami aura and visual effects Author: Gyullo --HG-- branch : trunk
2010-03-26Corrected script for Glyph of Feral Spirit, aura must be checked on Owner ↵_manuel_
not Pet. By Gyullo. --HG-- branch : trunk
2010-03-26Improvement in npc_mageguard_dalaranAI._manuel_
--HG-- branch : trunk
2010-03-26Support for spell Disarm Trap._manuel_
--HG-- branch : trunk
2010-03-26A visually better way to handle Avenger Wrath blocking of immunity shields.Xanadu
--HG-- branch : trunk
2010-03-26* Check for incorrect settings for AHbotBrian
* Patch by click --HG-- branch : trunk
2010-03-26* Add support to save and load worldstates.Spp
will be mainly used by outdoorPvP system * Update next arena auto distribute points time to custom worldstate --HG-- branch : trunk
2010-03-25MergeXanadu
--HG-- branch : trunk
2010-03-25Fixed Forbearance. Also self-cast LoH will now correctly prevent Avenging ↵Xanadu
Wrath for 30 s. Closes issue #1270. Thanks to _manuel_ for research. --HG-- branch : trunk
2010-03-25BlackRock Depths: Some improvements, by antihristsTartalo
Fix Tomb of Seven event Fix Shadowforge braziers GO handling for Magmus --HG-- branch : trunk
2010-03-25MergeTartalo
--HG-- branch : trunk
2010-03-25Gundrak, Gal'Darah: Script improvements by pivonrollTartalo
Fix some Spell IDs & timers Implement transformation --HG-- branch : trunk
2010-03-25cleanups in vehicle accessories storagesilverice
transfer accesory list by pointer, make it constant --HG-- branch : trunk
2010-03-25Gundrak: CleanupTartalo
--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-24Cleaned and tidied-up the mechanic immunity handlerXanadu
--HG-- branch : trunk
2010-03-24Drak'Tharon Keep, Novos the Summoner: some improvements by pivonrollTartalo
Fix resseting issues Better IA for adds --HG-- branch : trunk
2010-03-24Drak'Tharon Keep: CleanupTartalo
--HG-- branch : trunk
2010-03-24MergeTartalo
--HG-- branch : trunk
2010-03-24MergeTartalo
--HG-- branch : trunk
2010-03-24Azjol Nerub, Azjol Nerub: CleanupTartalo
--HG-- branch : trunk
2010-03-23Azjol Nerub, Ahn'Kahet: cleanupTartalo
--HG-- branch : trunk
2010-03-23Implement Tharon'ja achievements (Requires DB Data).Trazom62
--HG-- branch : trunk
2010-03-23Implement Tribunal of Ages Achievements (Requires DB Data)Trazom62
--HG-- branch : trunk
2010-03-23Fix one WPE exploit.n0n4m3
When apply more 6 gems, and after player logout, server crash, also apply code style and cleanup. --HG-- branch : trunk
2010-03-23Implement Four-Horsemen achievements (requires DB Data).Trazom62
Fixes issue #1107. --HG-- branch : trunk
2010-03-23Added support for maximum allowed player level for quests. By Gyullo.Xanadu
--HG-- branch : trunk
2010-03-23Violet Hold: Exploit fixTartalo
Now bosses reset if they're hitted when their door is closed --HG-- branch : trunk
2010-03-23Gundrak: Fix for Eck the Ferocious spawningTartalo
--HG-- branch : trunk
2010-03-22Ahn'Kahet: Code cleansingTartalo
--HG-- branch : trunk
2010-03-22Hall of Lightning: Fix Encounter state saving to dbTartalo
Thanks Aokromes, Baraka & Spawn --HG-- branch : trunk
2010-03-22Nexus, Anomalus: Summons rifts only once. Blizzlike 3.3.2 updateTartalo
--HG-- branch : trunk
2010-03-22Gundrak: Code cleansingTartalo
--HG-- branch : trunk
2010-03-22Gundrak: Implement Eck the Ferocious spawningTartalo
Based on pivonroll's code but rewrited from scratch --HG-- branch : trunk
2010-03-22Implemented new achievement criteria data:Trazom62
* ACHIEVEMENT_CRITERIA_DATA_TYPE_S_EQUIPED_ITEM_LVL (item level and item quality). Implemented achievement criteria: * ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM * ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM Update ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM implementation. Requires DB update to use new criteria data. Thanks VladimirMangos. --HG-- branch : trunk
2010-03-22* Fix CRLF.XTZGZoReX
--HG-- branch : trunk
2010-03-22restore work of IsInMap checksilverice
--HG-- branch : trunk
2010-03-22Add script VoA/Koralon and Toravon. Thanks WarHead.Trazom62
Fixes issue #1231. --HG-- branch : trunk
2010-03-22Fix Crash in XT-002 (Gravity Bomb proc). Fixes issue #734.Trazom62
Fix compilation warning. Fix typo in Freya soundid. --HG-- branch : trunk