Commit Graph

97 Commits

Author SHA1 Message Date
click
f16df538ee Core: More codestyle cleanups 2011-06-12 01:47:45 +02:00
click
158966dc79 Core: Codestyle cleanup 2011-06-11 22:35:29 +02:00
tobmaps
60470e4bd8 Core/Misc: Some random cleanups 2011-06-09 19:41:13 +07:00
QAston
3effdb2c23 Core/Auras: Add Aura::TryRefreshStackOrCreate function and remove stack checks from Aura::Create 2011-06-07 12:47:32 +02:00
Shauren
a644206f88 Scripts: Removed SEND_VENDORLIST and SEND_TRAINERLIST defines 2011-05-26 23:31:46 +02:00
click
59f48c9bec Core: Clean up a lot of whitespace, and at the same time fix non-PCH building (again) 2011-05-22 17:27:56 +02:00
TCKiper
fb4913da3d Scripts/Nagrand: Update KillCredit for quest chain of corky 2011-05-19 15:03:58 +02:00
Ramusik
5a3877f8eb Core/Scripts: Cleanup and improve Fel Reaver script
Signed-off-by: click <clickvd@gonnamakeyou.com>
2011-05-13 22:41:36 +02:00
kaelima
f6e357902f Revert part of 82dcb31eee 2011-05-13 01:19:54 +02:00
kaelima
9a18c61ac9 Scripts/Doomlord Kazzak: Yet another typo, this one was a bit larger though.
No idea how I could fail this hard on this one.
2011-05-13 00:22:12 +02:00
kaelima
0b87d2a2a6 Scripts/Doomlord Kazzak: Typo in most recent commit 2011-05-13 00:17:02 +02:00
kaelima
82dcb31eee Scripts/Doomlord Kazzak: Fix spell Mark of Kazzak, further cleanup and fix sqls added with this commit. 2011-05-13 00:15:32 +02:00
Ramusik
aa18952774 Cleanup and improve Doom Lord Kazzak script 2011-05-12 18:17:43 +03:00
Shauren
551889c42f Core: More warning fixes 2011-05-07 20:09:45 +02:00
leak
1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
Azazel
6fb2bf4224 Core: use enum InventoryResult as return type for functions working with player items.
Original patch by TOM_RUS.
2011-04-29 16:48:15 +06: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
Machiavelli
374eba2f5d Scripts/Shadowmoon Valley: Fix kill credit for Enraged Spirits 2011-04-26 23:30:13 +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
Supabad
e79c8a389b Scripts/BladesEdgeMountains: Adjust script to work for quest 10545 also 2011-04-06 11:35:55 +02:00
Supabad
3e22e88f4e Scripts/Nagrand: Add core support for quest 9923,9924,9955 2011-04-06 11:35:50 +02:00
Shauren
3fcb49c685 Core/Scripts: Removed double calls to InstanceScript's Initialize methods 2011-04-03 21:24:22 +02:00
Shauren
2f79b0f266 Core: Removed all double (and more) empty lines 2011-03-21 10:52:14 +01:00
Shauren
c2c40a4750 Scripts: Removed duplicate target selection function (SelectUnit), there is only SelectTarget now 2011-03-09 21:32:04 +01:00
Malcrom
e689edb7c2 Scripts/Shadowmoon Valley: Remove support for NPC Nelthakaru
DB/Misc: Add waypoints and scripts for quest Nelthakaru's Tale (SAI)
Closes #746
2011-02-23 23:10:48 +00: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
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
QAston
c8adcc95f9 Core/Unit: Move spell specific code from Unit::CalcAbsorbResist to AuraScripts. 2010-12-30 02:03:46 +01:00
Shauren
79070ca820 Scripts/Serpentshrine Cavern: Fixed "The Lurker Above" achievement and removed hacks for the event
--HG--
branch : trunk
2010-12-26 16:35:29 +01:00
linencloth
b150172521 Core/QuestStatus:
- Separate rewarded quests from active quests, and store them in a new table to reduce database size
- Drop the no longer needed `rewarded` column from character_queststatus for smaller table size
- Prevent filling the database with dropped quests
  - Delete useless records
- Implement queststatus save "queues" instead of states
- Minor optimizations

WARNING: Backup your database!

--HG--
branch : trunk
2010-12-26 04:16:18 +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
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
Shauren
314376e32c Scripts: Fixed uninitialized variables, unreferenced parameters and virtual overrides
--HG--
branch : trunk
2010-12-14 16:24:59 +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
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
Shocker
48d90fab32 Misc: Some engrish fixes, thanks to ZxBiohazardZx, closes issue 4740
--HG--
branch : trunk
2010-11-14 23:46:34 +02:00
Machiavelli
32ec6b51da Core/Scripts: Fix Harbinger Skyriss event in Arcatraz.
Author: Kuidin1@mail.ru
Fixes issue #4390

--HG--
branch : trunk
2010-11-09 10:51:34 +01:00
click
989f696d1e Core/Scripts: Fix chest respawn exploit in Hellfire Rampart - origjnal fix by Gyullo (thanks)
--HG--
branch : trunk
2010-10-25 01:39:18 +02:00
click
8c9501286f Scripts/Vazruden: Stop the infinite respawning of the lootable chest after the Vazruden fight. (Fix by Leak)
Closes issue 4186.

--HG--
branch : trunk
2010-09-27 05:44:50 +02:00
Shauren
e0ffae436c Core/Quests: Fixed remaining issues with quest crediting (note: previous commits did not introduce issues, only revealed them)
Core/DBLayer: Fixed more compile warnings
Core/Spells: Corrected code style from revision 634af79146

Closes issue #3956.

--HG--
branch : trunk
2010-09-12 19:17:58 +02:00
Shocker
3999444157 Core/Scripts: Use same standard for all GetInstanceScript's, closes issue 3890
--HG--
branch : trunk
2010-09-08 11:42:11 +03:00
click
8823a91cdc BuildSystem/ALL: Remove unused custom code (most are duplicated as in examples)
+ remove fileglobbing for scripts (less error-prone)
+ Create proper lists per "scriptsection"
NOTE! This change requires new files (cpp/h) to be MANUALLY ADDED to <type>/CmakeLists.txt

--HG--
branch : trunk
2010-09-05 17:19:41 +02:00
azazel
f500ef201b Scripts/Texts:
* fix script texts in various locations (thanks TerrorBringer for the heads up). Closes issue #2055. Closes issue #3087.
* cleanup world_script_texts.sql file (remove spaces, order entries)
Scripts/Misc:
* remove obsolete random seed initialization from scripts
* fix some warnings in scripts
* some cleanup in chat_log.cpp

--HG--
branch : trunk
2010-09-05 02:16:58 +06:00
Shauren
58ce3c77af Core/Scripts: Revert revision 619ba8b76250 and fix it properly
--HG--
branch : trunk
2010-08-31 15:37:29 +02:00
Spp
b5beb1c706 Better way to fix some warnings from rev 621c100eeb.
--HG--
branch : trunk
2010-08-31 13:31:38 +02:00
Spp
b9e19572c4 Core: Fix more warnings (very few left under linux 32)
--HG--
branch : trunk
2010-08-31 11:39:51 +02:00