Commit Graph

100 Commits

Author SHA1 Message Date
click
864957b403 Scripts/World: Add a lost change to the dreamfog 2011-05-30 04:31:59 +02:00
click
7e49fa92f0 Scripts/World: Update WorldBoss scripts for the Emerald Dragons (Ysondre, Emeriss, Taerar and Lethon) + create base "Emerald Dragon" AI
(They are still WIP, so do not consider them "workable" unless you are willing to report issues).
2011-05-30 04:12:07 +02:00
Shauren
0ad14aeafd Core/Gossip: Gossip menu items will now have constant index, allowing to properly define scripts relying on that index when mixed with conditions. Script-created menus via ADD_GOSSIP_ITEM will still have the index generated dynamically 2011-05-26 23:57:17 +02:00
Shauren
a644206f88 Scripts: Removed SEND_VENDORLIST and SEND_TRAINERLIST defines 2011-05-26 23:31:46 +02:00
Shauren
64adce7b8b Scripts: Removed CAST_SUM define 2011-05-25 15:55:14 +02:00
Shauren
24a8cc24da Core/Achievements: Implemented ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS 2011-05-14 12:26:49 +02:00
Shauren
83989e49f8 Scripts/Achievements: Removed unneeded script, its now handled by auras 2011-04-30 15:39:58 +02:00
Shauren
acd81d6570 Core/Achievements: Fixed Children's Week achievements 2011-04-30 12:41:14 +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
leak
c51c817a45 Core/ObjectMgr: Refactor sCreatureStorage 2011-04-28 22:57:08 +02:00
leak
a82654debd Core/ObjectMgr: Refactor sItemStorage 2011-04-28 22:42:33 +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
Supabad
3b99e173f0 Scripts/Achievements: Move some achievement scripts to database.
Add database support for Ancient Protector and Ancient Courtyard Protector.
2011-04-21 23:38:15 +02:00
Shocker
d3cb2f4873 Scripts/NPCs: Remove Membership Cards requirement from npc_engineering_tele_trinket, they were removed in 3.1 2011-04-18 18:26:39 +03:00
Supabad
35c238050a Scripts/Achievements: add multiple achievement scripts for Strand Of The Ancients.
add kill counter reset related to Battleground achievements.
2011-04-17 11:11:40 +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
c2c40a4750 Scripts: Removed duplicate target selection function (SelectUnit), there is only SelectTarget now 2011-03-09 21:32:04 +01:00
Shauren
36f848a4c2 Scripts/Icecrown Citadel: Only one Mutated Abomination can exist during Professor Putricide encounter
Scripts/Spells: Added blizzlike error messages for certain spells
Scripts/Items: Removed obsolete scripts
2011-03-04 23:53:11 +01:00
click
d92fb9ad65 Core: Clean up some rogue whitespace and tabs 2011-02-27 18:34:24 +01: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
Manuel Carrasco
6b2ffc9039 Core/GuardAI: Guards don't evade if the target casts Vanish and also can detect players with Feign Death.
Core/Scripts: Moved scripts from ScriptedGuardAI to guards.cpp
Core/Creature: Removed custom npcflags UNIT_NPC_FLAG_GUARD (now moved to flag_extras) and UNIT_NPC_FLAG_OUTDOORPVP (not used)

Thanks to Kaelima, Xanadu, Shauren and linencloth.

Signed-off-by: Manuel Carrasco <manue.l@live.com.ar>
2011-02-10 22:36:35 -03:00
Shauren
82b7f30271 Scripts/Misc: Fixed rogue trainers not teaching dual spec 2011-01-31 15:58:20 +01:00
leak
137b079eea Core: Generic cleanup (tab2spaces/trailing whitespace removal) 2011-01-26 01:03:35 +01:00
Machiavelli
de8d5a9236 Scripts/Borean Tundra: Add Support for areatrigger conditions for Quest: Breaking Through (11898). Thanks to Svannon for original code and joint brainstorming session.
Closes issue #194
2011-01-14 00:59:52 +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
Manuel
014714fb17 Core: Killing magic numbers. 2011-01-09 20:44:33 -03:00
Manuel
5cf76896eb Core/Battleground: Implemented blizzlike script for Isle of Conquest, written by gyullo and me, based on Socolin's and Josh's patch -BIG THANKS TO THEM-
Anyway the map is not yet playable, there are issues not related with the script.

I also want to thanks to QAston, linencloth, Shauren and Machiavelli to be so patient with my questions.
2011-01-09 00:00:08 -03: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
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
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
Spp
e621f5fe98 Core/Dungeon Finder: Code cleanup and minor optimizations
- Extend LfgState to keep control of the state of group and players using LFG
- Move scripts to its own class and initialize only if Dungeon finder is enabled
- Updated comments to doxygen format
- Use constructor initialization list
- All variables are declared in the inner most scope
- Fix some mem leaks
- Remove no longer needed code (Cleaner)
- Normalize handler function names

--HG--
branch : trunk
2010-12-05 17:50:26 +01:00
Shauren
892f56c37d Fixed compile, missed these changes
--HG--
branch : trunk
2010-12-03 14:14:08 +01:00
Shauren
3badf69b63 Core/Spells: Fixed bad Z coordinate for Spell::EffectBind with location stored in database
Core/Scripts: Corrected few mistakes in misc scripts

--HG--
branch : trunk
2010-12-03 13:54:00 +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
Spp
fa97598594 Core/Dungeon Finder: Move vote kick initialization from Group code to Scripts
--HG--
branch : trunk
2010-11-23 20:49:57 +01:00
Spp
d3c9478153 Core/Groups: Add kicker and kick reason to RemoveMember
--HG--
branch : trunk
2010-11-23 20:49:36 +01:00
Spp
6b5ff1ca25 Core: Fix some warnings
--HG--
branch : trunk
2010-11-22 10:10:46 +01:00
click
ea9e88a48c Core/Scripts: Add support for questID 25444 (Da Perfect Spies)
--HG--
branch : trunk
2010-11-21 23:43:44 +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
linencloth
a312e7b337 Scripts/Misc: Cleanup and fix victim handling of the snakes of Snake Trap
--HG--
branch : trunk
2010-11-13 20:24:20 +01:00
Spp
2e08f94338 Core/Dungeon Finder/Script: Move debug log msg to debug priority
--HG--
branch : trunk
2010-10-25 13:00:34 +02:00