Commit Graph

191 Commits

Author SHA1 Message Date
megamage
3ba22d0d06 Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for better management. 2011-10-10 17:39:34 -04:00
Machiavelli
f266d3d957 One last culprit... 2011-10-08 14:36:38 +02:00
Machiavelli
26869bda30 Core: Fix a boatload of crashes after the mass cleanup... Thanks to Broodwyrm for spotting the culprits 2011-10-08 14:33:53 +02:00
Bootz
5b4c7783c2 REPO: Code-style clean-ups
* Fixed pMap->map
* Fixed pInstance->instance
* Fixed pInsta->instance
* Fixed pQuest->quest
* Fixed pWho->who
* Fixed pTarget->target
* Fixed pGo->go

~DEVNOTES: Handlers/QuestHandler.cpp still needs to be cleaned...
2011-10-07 19:45:43 -05:00
Bootz
81c0a3a847 REPO: code-style clean-up
* Fixed pPlayer->player
* Fixed pCreature->creature

~DevNote: codestyle for Player should be (*player), not *plr or *p...
same goes for Creatures (*creature)... more cleaning needed.
We've way too many codestyles happening here.
2011-10-07 11:08:09 -05:00
Bootz
f1ccb83dc0 REPO: Code-style change
* Fixed pUnit-unit
2011-10-07 10:48:56 -05:00
Shauren
2ff1c28c4c Scripts/Icecrown Citadel
* The Lich King
2011-10-05 20:48:34 +02:00
Spp
852ffcc139 Core/Scripting: Remove unnecesary reference in param function OnMemberRemove 2011-09-28 10:35:59 +02:00
Rochet2
a0a22ecbc8 Scripts/Commands: Added .dev command to show <Dev> tag in nickname 2011-09-21 11:35:29 -03:00
Spp
af05915b9e [Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions) 2011-09-15 14:12:57 +02:00
Shauren
ea14e096ac Core/Entities: Vehicles should be able to be both source and target of map scripts 2011-09-06 10:33:45 +02:00
Chaplain
bea649d045 Core: cleanup.
*remove some garbage
*little bit moore const func
*fix process of args in vmap3_extractor
2011-09-01 22:38:32 +03:00
QAston
a077a26aa5 Core/Spells: update the core to the changes from 1fb1988d46 . To make your custom code work with those changes simply lookup the value of Targets enum value from prev rev, and update the name in your code. 2011-08-16 19:44:18 +02:00
XTZGZoReX
4276c73be8 Core: Cosmetic cleanups and additional comments in ScriptMgr. 2011-08-14 13:45:42 +02:00
Spp
7e53a73059 Core/Vehicles: Remove Vehicle.h dependency from other header files 2011-08-03 12:28:42 +02:00
Spp-
0b5c03f66b Core/Scripts: ScriptRegistry is no longer the part of ScriptMgr public interface, it is not required by caller side. Also remove extra function call to GetScriptId in scripts 2011-07-27 14:52:59 +02:00
Shauren
b9a6e2333c Core/Spells: Removed implicit casts from SpellImplicitTargetInfo, fixed copypaste mistakes and one crash 2011-07-27 12:35:59 +02:00
QAston
b0fe236265 Core: Use new SpellInfo class in core. Sadly, this commit is not compatibile with some of the custom code. To make your code work again you may need to change:
*SpellEntry is now SpellInfo
*GetSpellProto is now GetSpellInfo
*SpellEntry::Effect*[effIndex] is now avalible under SpellInfo.Effects[effIndex].*
*sSpellStore.LookupEntry is no longer valid, use sSpellMgr->GetSpellInfo()
*SpellFunctions from SpellMgr.h like DoSpellStuff(spellId) are now: spellInfo->DoStuff()
*SpellMgr::CalculateEffectValue and similar functions are now avalible in SpellEffectInfo class.
*GET_SPELL macro is removed, code which used it is moved to SpellMgr::LoadDbcDataCorrections
*code which affected dbc data in SpellMgr::LoadSpellCustomAttr is now moved to LoadDbcDataCorrections
2011-07-26 23:09:28 +02:00
Shauren
74e2d981ac Core/GameObject: Refactored destructible building handling, properly implemented spell effect repair 2011-07-22 21:22:05 +02:00
Spp-
ceefc8c3d7 Core/Misc: Replace dynamic_cast<XXX*> with proper ToXXX 2011-07-08 11:12:19 +02:00
QAston
86dde83dda Core/Spells: Define many unknown SpellCastTargetFlags enum values, rename some target type enum values to follow standards, also correctly implement TARGET_UNIT_TARGET_PASSENGER. 2011-07-02 16:12:19 +02:00
Shocker
bdba5cd900 Core/Commands: Move .gps to command scripts and add .wpgps command, used for generating partial SQL queries for pathing 2011-06-29 16:36:54 +03:00
Machiavelli
6a59d7ddc1 Core/Entities: Vehicles should be able to be the source of map scripts 2011-06-28 21:43:06 +02:00
kaelima
b9e8694540 Core: Continued cleanup
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click
c77aa6e846 Core: And some more cleanups... 2011-06-12 02:00:43 +02:00
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
kaelima
bdc75eb856 Ruby Sanctum:
- Scripted General Zarithrian
- Flame walls will now open after killing saviana and baltharus
- Fixed savianas timers
- Fixed some typos (baltarhus -> baltharus)
2011-06-04 14:41:45 +02:00
kaelima
c143319b05 Ruby Sanctum:
- Scripted Saviana Ragefire
- Moved Baltharus the Warborn's clone from smartai to cpp (this because they share healthpool with Baltharus the Warborn, witch cant be done with SAI)
2011-05-30 14:36:19 +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
tobmaps
42fc72447b Core/Dungeon Finder: Fix instances unlock after level change 2011-05-29 22:49:05 +07:00
kaelima
df619d8da1 Ruby Sanctum:
* Added Ruby Sanctum instance script
* Scripted Baltharus the Warborn
2011-05-28 16:10:57 +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
Lopin
18c016a890 Scripts/Ulduar:
* Added script for Freya encounter
* Cleaned up instance script
* Cleaned up teleporter script
* Fixed typo in Hodir script

Signed-off-by: Lopin <Lopin@TwinStar.cz>
2011-05-21 14:36:29 +02:00
Shauren
0ab5cdef2e Scripts/Icecrown Citadel:
* Added Valithria Dreamwalker script
* Fixed Mutated Abomination on heroic mode at Professor Putricide
* Fixed saving heroic attempts to db
2011-05-20 22:20:11 +02:00
Lopin
9a7720e184 Scripts/Ulduar: Add script for Hodir encounter. 2011-05-19 15:09:06 +02:00
neuro_999
cd70ff40e2 Scripts/RazorfenKraul: Fix force field before boss Agathelos the Raging
Closes #712
2011-05-15 17:34:57 +07:00
Shauren
7905200eba Core: Warning fixes 2011-05-07 19:08:50 +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
Supabad
7f73962c91 Core/Scripts: Fix compile. 2011-04-22 21:47:04 +02:00
Sawiner
1be1b1559c Core/Scripts: Extended escort AI 2011-04-16 17:15:21 +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
zergtmn
1551b8a011 Core/Misc: move scheduled scripts counter to ScriptMgr (which is more logical, isn't it?) 2011-04-13 12:07:20 +06:00
Supabad
a5a545a403 Core/GameObjects: add script hook when destructable building is damaged. 2011-04-09 19:28:36 +02:00
Supabad
dc8fd3cbc3 Ulduar/Mimiron: add spell script for Proximity mines 2011-04-06 11:35:38 +02:00
Shauren
7b35d73317 Revert part of "Core: Removed unused functions (leftovers from sd2, was needed when scripts were built as separate dll)", this part wasnt intended
This reverts commit partly e1bacef346.
2011-04-01 23:14:31 +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