aboutsummaryrefslogtreecommitdiff
path: root/src/scripts
AgeCommit message (Collapse)Author
2010-03-28Fix crash in Mal'Ganis script + cleanup.Trazom62
Fixes issue #1347. Thanks Johnholiver. --HG-- branch : trunk
2010-03-27Fix typo, thanks ramses@cyberlost.comTartalo
Fixes issue #1341. Fixes issue #1344. --HG-- branch : trunk
2010-03-27Nexus, The Oculus: CleanupTartalo
--HG-- branch : trunk
2010-03-27Nexus, Nexus: CleanupTartalo
--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-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-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-26Improvement in npc_mageguard_dalaranAI._manuel_
--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-25Gundrak, Gal'Darah: Script improvements by pivonrollTartalo
Fix some Spell IDs & timers Implement transformation --HG-- branch : trunk
2010-03-25Gundrak: CleanupTartalo
--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-23Implement Four-Horsemen achievements (requires DB Data).Trazom62
Fixes issue #1107. --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-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
2010-03-21Merge_manuel_
--HG-- branch : trunk
2010-03-21Add additional field for storage of speed_run rate of creature_manuel_
This allow independent rate of walk vs run speed. Existing field renamed to explicit speed_walk. Note that default database rate for run is a result of the most common value seen, 8.0/7.0 Author: NoFantasy. --HG-- branch : trunk
2010-03-21Naxxramas, Noth the Plaguebringer: Adjust timers, by scarymovie87Tartalo
Closes issue #172. --HG-- branch : trunk
2010-03-21The Obsidiam Sanctum: Several updates, by OudenTartalo
Portal event, Flame Tsunami, Twilight Eggs, Twilights Fissure, Achievements in Hard Mode Closes issue #1015. --HG-- branch : trunk
2010-03-21Update Script Ulduar/XT-002. Thanks Dakeyras. Fixes issue 1074.Trazom62
Add script texts for all ulduar bosses and adds. Mainly from wowwiki, Thanks. Some code style cleanup. Still WiP. --HG-- branch : trunk
2010-03-21fixed oculus drake cpp and sqlmalcromdev@gmail.com>
--HG-- branch : trunk
2010-03-21Small update to Onyxia script:Machiavelli
- Support for spawning Onyx Lair guardians - Maximum Whelp count per wave set to 20 as per Blizzlike - small update to her movement in phase 2 (might need to be overhauled, Breath isn't casted often enough) --HG-- branch : trunk
2010-03-21The Nexus, The Oculus: Boss drakos support, register needed scriptsTartalo
This scripts are pushed for testing purposes, so is not recommended opening it for production enviroments. any feedback is welcome :) Fixes issue #449. --HG-- branch : trunk
2010-03-20Fix few typos on last commitsTartalo
--HG-- branch : trunk
2010-03-20Gundrak, Slad'Ran: Despawn adds on wipeTartalo
--HG-- branch : trunk
2010-03-20Azjol Nerub, Anub'Arak: Despawn adds on wipesTartalo
--HG-- branch : trunk
2010-03-20Halls of Stone: Implement achievement Brann's Spankin' NewTartalo
--HG-- branch : trunk
2010-03-20Halls of Stone: Allow to loot Brann's chest when encounter ends (without ↵Tartalo
waiting all the event). Blizzlike change --HG-- branch : trunk
2010-03-19Implement instance script for Zul'Farrak and prevent Gahz'Rilla from being ↵Machiavelli
summoned multiple times. --HG-- branch : trunk
2010-03-18*fix quest Bury Those Cockroaches!(11608)Rat
--HG-- branch : trunk
2010-03-17Add script for Amberpine Woodsmen Grizzly Hillsmalcromtdb@gmail.com
--HG-- branch : trunk
2010-03-17Argent Tournament Post script by MalcromXanadu
--HG-- branch : trunk