aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-04-03Script Instance Pit of Saron.Trazom62
First basic script based on proposal of Synric on trinitycore forum (submitted by Skarabex on GC). Still WiP with lots of work. In particular, the faction based npc/mob will have to be fixed when they will be spawned in TDB. Fixes issue #1308. --HG-- branch : trunk
2010-04-03Fix Hymn of Hope. Thanks Proof.Trazom62
Fixes issue #1322. Fixes issue #1428. --HG-- branch : trunk
2010-04-03Fix calculation of partial resistance cases, by Tlexii.Machiavelli
--HG-- branch : trunk
2010-04-02Implemented:_manuel_
* Script at_aldurthar_gate for quests 13315 and 13351. * Script at_warsong_farms for quest 11686. * Script at_stormwright_shelf for quest 12741. Code from ScriptDev2. Before execute sql updates, apply TDB fix. New Fix Submissions > Core related DB content --HG-- branch : trunk
2010-04-02Corrected gossip script npc_hira_snowdawn. Thanks to wowgargamel._manuel_
--HG-- branch : trunk
2010-04-02* Removed check for SSL version requirement of .98k or higher (works just fineBrian
* with .98e). * Thanks raczman for testing. --HG-- branch : trunk
2010-04-02Use GUIDs instead of "global" pointers in zone scripts.Anubisss
This commit is like that: 7714 / rce505237e4aa And use const_iterators where it is possible. --HG-- branch : trunk
2010-04-01Fix Go type 10 spell handling by QAstonmalcromdev@gmail.com>
--HG-- branch : trunk
2010-04-01Spells 42442 & 45863 should be limited to 1 target.malcromdev@gmail.com>
--HG-- branch : trunk
2010-04-01* MergeBrian
--HG-- branch : trunk
2010-04-01* To make the game easier, we have decided to remove all movement from NPCsBrian
* If we get the positive response we are expecting, we will remove spells * next. * Just imagine, finally being able to get that T10 gear you wanted! * Thanks to Nayre for the idea * Thanks to Machiavelli and Trazom for help implementing --HG-- branch : trunk
2010-04-01Use ToTempSummon() in a case instead of a C style cast.Anubisss
Use correct Unit::GetCreature() instead of Unit::GetUnit() with casting the object to Creature pointer. Remove some usless casts. Fix a possible crash in pyrewood_ambushAI. TODO: Remove ugly cast macros(like CAST_PLR(), CAST_CRE()) from scripts and use the correct ToX() functions(like ToPlayer(), ToCreature()). --HG-- branch : trunk
2010-04-01Implemented script for vendor/trainer Hira Snowdawn._manuel_
--HG-- branch : trunk
2010-04-01Fix a typo in friends list and ignore list loading.Anubisss
This fixes the bugs which appear when you have more than 50 entries on friends or ignore list. For example: You have 40 friends and 20 ignores, it's 60. But the core loads just 50 entries so some of them not loaded. Fixes issue #134. Patch by johnholiver. --HG-- branch : trunk
2010-03-31Fix Script Grand Magus Telestra to reappear when the 3 adds are killed.Trazom62
Fixes issue #1382. --HG-- branch : trunk
2010-03-30Fix Skinning where there is no loot on creature.Trazom62
Fixes issue #1174. --HG-- branch : trunk
2010-03-30Added SCRIPT_COMMAND_MODEL 32 Allows changing of npc model in db scripts.malcromdev@gmail.com>
--HG-- branch : trunk
2010-03-30Fix a typo in Keristrasza's script. Patch by havenard, #1373.Anubisss
--HG-- branch : trunk
2010-03-30* Remove remaining obsolete client version checks from AHbotBrian
--HG-- branch : trunk
2010-03-30* Allow AHbot to pull items from reference_loot_template for auction.Brian
* Credits to click * Remove no longer needed check for non-supported client versions for loot * Generation --HG-- branch : trunk
2010-03-30Break spells on damage in some aura types.Anubisss
This commit fixes spell Repentance(20066). Patch by QAston, thanks to him. --HG-- branch : trunk
2010-03-29Added script command 31 SCRIPT_COMMAND_EQUIP inables an npc to change ↵malcromdev@gmail.com>
weapons in TC scripts. --HG-- branch : trunk
2010-03-29* Remove an old dumb hack.XTZGZoReX
--HG-- branch : trunk
2010-03-28Fix crash in Mal'Ganis script + cleanup.Trazom62
Fixes issue #1347. Thanks Johnholiver. --HG-- branch : trunk
2010-03-27MergeTartalo
--HG-- branch : trunk
2010-03-27Fix typo, thanks ramses@cyberlost.comTartalo
Fixes issue #1341. Fixes issue #1344. --HG-- branch : trunk
2010-03-27* Delete unused filesBrian
--HG-- branch : trunk
2010-03-27Nexus, The Oculus: CleanupTartalo
--HG-- branch : trunk
2010-03-27Nexus, Nexus: CleanupTartalo
--HG-- branch : trunk
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