Commit Graph

125 Commits

Author SHA1 Message Date
Supabad
fd1ed09752 Scripts/Zulaman: remove hack from script and use correct spell 2011-05-16 16:06:23 +02:00
johnholiver
58aa146a47 Core/Scripts: Remove a small debug message from Brutallus code. 2011-05-06 21:49:55 -03:00
leak
1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
leak
c51c817a45 Core/ObjectMgr: Refactor sCreatureStorage 2011-04-28 22:57:08 +02:00
click
9762c17833 Core/Buildsystem: Update copyright-headers for 2011, and adjust with the correct teamname as well. 2011-04-27 18:17:00 +02:00
Shauren
8898db8b27 Core: Corrected NULL usage, it should only be used with pointers, not integers 2011-04-23 15:53:48 +02:00
Malcrom
5a5d266e00 DB/SAI: Add 6172 & 6177 & 33788 scripts and remove their core scripts. 2011-04-22 19:56:16 +01:00
Shauren
7a03861715 Scripts/Molten Core: Fixed core freezes caused by this script
Closes #1217, #798, #905
2011-04-16 13:59:34 +02:00
Supabad
3a2fb99f1f Core/BlackrockSpire: add support for non-PCH compile
also add instance files to scriptloader
2011-04-15 10:36:47 +02:00
Supabad
35645abfc6 Scripts/BlackRockSpire: Cleanup boss scripts. add instance script and header 2011-04-07 18:49:49 +02:00
Shauren
3fcb49c685 Core/Scripts: Removed double calls to InstanceScript's Initialize methods 2011-04-03 21:24:22 +02:00
Shauren
e1bacef346 Core: Removed unused functions (leftovers from sd2, was needed when scripts were built as separate dll) 2011-04-01 20:31:15 +02:00
Shauren
2f79b0f266 Core: Removed all double (and more) empty lines 2011-03-21 10:52:14 +01:00
Shauren
3b343ac497 Core/Scripts: Code style cleanup in AI base classes, removed duplicate DoAction method 2011-03-19 19:41:42 +01:00
Shauren
c2c40a4750 Scripts: Removed duplicate target selection function (SelectUnit), there is only SelectTarget now 2011-03-09 21:32:04 +01:00
Shauren
e5347a3bda Core: Fixed warnings:
C4100: 'variable' : unreferenced formal parameter
C4701: potentially uninitialized local variable
C4389: '!=' : signed/unsigned mismatch
C4245: 'argument' : conversion from 'X' to 'Y', signed/unsigned mismatch
2011-03-08 16:42:00 +01:00
kaelima
00f2ded757 Scripts/Scarlet Enclave: Fix model for scarlet mine cart. 2011-03-08 09:43:38 +01:00
Shocker
98f6c2fe80 Scripts/Alterac Valley: Fix some out of range text entries 2011-02-25 19:52:26 +02:00
Machiavelli
5236bf4511 Fix build with scripts included 2011-02-20 21:19:32 +01:00
Machiavelli
c1445cd475 Fix build with scripts included 2011-02-20 21:07:03 +01:00
Shauren
2b603ec28f Scripts/Quests: Fixed "True Masters of the Light" (id 9737) 2011-02-05 12:46:53 +01:00
Shauren
1740df0fac Fixed typo (and compile) 2011-02-03 22:38:33 +01:00
Shauren
c2b0bcbd6c Core/Instances: Implemented DungeonEncounter.dbc for creating completed encounters mask to use in packets
Core/Dungeon Finder: Implemented new way of giving random dungeon rewards, linked to DungeonEncounter.dbc
2011-02-03 22:20:40 +01:00
Shauren
7ea8bad07f Scripts/Molten Core: Huge cleanup in instance script, converted all bosses to use BossAI, cleaned code style
Scripts/Molten Core: Implemented saving boss states to database, now it is possible to continue the instance after core restart
2011-02-03 21:59:07 +01:00
Shauren
08f251bdb0 Scripts/Stratholme: Cleaned up instance script a bit 2011-01-31 14:04:51 +01:00
Shauren
bf61400558 Scripts/Quests: Fixed incorrectly named hooks 2011-01-29 14:59:59 +01:00
leak
137b079eea Core: Generic cleanup (tab2spaces/trailing whitespace removal) 2011-01-26 01:03:35 +01:00
Machiavelli
d399daab59 Core/Quests: Resolve ambiguity between QUEST_STATUS_COMPLETED and rewarded state by implementing QUEST_STATUS_REWARDED. The latter is not used in the database explicitly, only in the core. This is to prevent overhead by iterating over the rewarded quests storage multiple times.
All relevant upper level code has been updated accordingly to the best of my ability.
2011-01-13 23:06:59 +01:00
Spp
bd2728eb74 Core: Fix some warnings 2011-01-11 11:18:00 +01:00
Shocker
de56044b13 Scripts/Zul'Gurub: Fix in 34aae56104 should include leech auras too 2011-01-11 01:54:53 +02:00
Sarjuuk
34aae56104 Scripts/Zul'Gurub: High Priest Thekal will no longer die inbetween his two phases
Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
2011-01-06 21:41:57 +01:00
Ottowayne
4a052cb444 Scripts/Scarlet Enclave: Quest 12801 - Respawn required Adds on Mograine Respawn
Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
2011-01-06 21:16:46 +01:00
Machiavelli
f832990678 Scripts/Molten Core: Remove a redundant health-check in majordomo executus script.
Thanks to Lopin for pointing out.
2011-01-06 20:59:58 +01:00
sarjuuk
855e910298 Scripts/Molten Core: Ragnaros gets spawned after Majordomus dies. Majordomus gets spawned by killing everything else.
Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
2011-01-06 19:07:52 +01:00
Shauren
9c0cd63e93 Core/Scripts: Added wrapper method for despawning creatures DespawnOrUnsummon 2011-01-02 21:33:37 +01:00
Machiavelli
957c69de83 Update copyright note for 2011.
Happy new year.
2011-01-01 15:01:13 +01:00
Shauren
928443d899 Core: Removed more operator workarounds for ACE_Singleton (missed previously because of inconsistent naming)
--HG--
branch : trunk
2010-12-23 23:25:44 +01:00
Shauren
0f3b9019a8 Core: Get rid of dirty operator workaround for ACE_Singleton class implementation
--HG--
branch : trunk
2010-12-22 21:25:23 +01:00
linencloth
59da698189 Core: Rename spell attributes, use more general names
--HG--
branch : trunk
2010-12-19 05:15:47 +01:00
Shauren
82f45966fc Core/Unit: Renamed addUnitState/hasUnitState/clearUnitState to AddUnitState/HasUnitState/ClearUnitState
Core/Vehicles: Allow the vehicle to always damage the passenger (removed unneded dbc hacks from scripts)

--HG--
branch : trunk
2010-12-17 13:43:24 +01:00
Anubisss
6d9029c12e Make some cleanup.
My thank goes to Az@zel for the code analysis.

--HG--
branch : trunk
2010-12-16 18:08:23 +01:00
Shauren
314376e32c Scripts: Fixed uninitialized variables, unreferenced parameters and virtual overrides
--HG--
branch : trunk
2010-12-14 16:24:59 +01:00
click
2642894342 Core: Add new system for parallelizing client packet processing. Handle WorldSession updates in Map::Update() where we are safe to proceed. Patch by Ambal.
(And clean up tabs and whitespace while rummaging around in there)
Closes issue 5084.

--HG--
branch : trunk
2010-12-13 22:37:56 +01:00
Shauren
e4e048ed57 Core/Scripts: Fixed possible crashes in instance scripts (Icecrown Citadel and Naxxramas)
Scripts/Sunwell Plateau: Fixed crash in Kil'jaeden
Scripts/Icecrown Citadel: Fixed crash in Blood-Queen Lana'thel

Closes issue #5051.
Closes issue #5050.
Closes issue #5035.

--HG--
branch : trunk
2010-12-08 17:24:31 +01:00
Spp
408fce1de6 Core: Some optimizations
- Declare some functions const
- Fix some mem leak
- Fix some resource leak
- Remove unused variables and functions
- Remove duplicate functions
- Reduce the scope of some variables
- Remove unused file

--HG--
branch : trunk
2010-12-06 02:07:53 +01:00
leak
6fe19b5a86 Core/Scripts: Split OnCreatureCreate() and OnGameObjectCreate() into two virtual functions each.
Note to scripters: be aware that you will need to hook into the Remove functions if you want to do stuff at GO/creature removal.
Closes issue 5011.

--HG--
branch : trunk
2010-12-05 18:04:10 +01:00
Spp
25ac835507 Core/Groups: Move all function definition from .h to .cpp
Core/Groups: Remove Group.h dependency from any .h file

--HG--
branch : trunk
2010-11-29 07:50:31 +01:00
azazel
87d723405e Core/Scripts: return const modifier to Player methods back (should restore compilation for those with custom scripts).
NOTE: The main idea of original change is to allow scripts change content of message so that calling method sends modified message to client.
For example, moderating script which cuts illegal words from message.

--HG--
branch : trunk
2010-11-18 10:26:34 +06:00
azazel
4fb572015a Core/Scripts: pass message parameter by reference in OnChat methods to make it possible to be modified inside the script.
--HG--
branch : trunk
2010-11-17 18:14:35 +06:00
linencloth
8fae0c176d Core/Units: Rename and change Get/SetVisibility to use a bool value instead of an unnecessary enum
Also replace some SetVisibility hacks to directly call UpdateObjectVisibility

--HG--
branch : trunk
2010-11-16 01:13:04 +01:00