Commit Graph

145 Commits

Author SHA1 Message Date
megamage
c29ff41001 Rename some classes in grid system.
Note: The naming of classes is still confusing. "cell" usually refers to class "Grid", and "grid" usually refers to class "NGrid". But it requires a lot of changes to clean this up.
2011-10-18 10:53:34 -04:00
megamage
d156e066cf Rename "SetPosition" to "UpdatePosition".
Replace CreatureRelocation in scripts with new Creature::SetPosition.
2011-10-10 17:08:01 -04: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
Shocker
7f89678bcd Merge pull request #3278 from lost-illusion/master
CleanUp
2011-10-07 09:28:10 -07:00
Bootz
f1ccb83dc0 REPO: Code-style change
* Fixed pUnit-unit
2011-10-07 10:48:56 -05:00
Discover-
bc030cc9ee Scripts/Dustallow: Fix quest Prisoners of the Grimtotems
Closes #2904
2011-10-02 02:03:16 +01:00
unknown
8acf07dbab Random minor code cleanup 2011-09-29 22:35:00 +04:00
Spp
b16d2245bb Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces

Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Spp
9e517c963b Cosmetic: Replace "* )" with "*)" and "* /*" with "* /*" 2011-09-29 09:32:55 +02:00
QAston
e949ad3adb Core/Spells: spell effect handling improvements
* Call spell effect handlers in 4 modes:
   - SPELL_EFFECT_HANDLE_LAUNCH - called when spell is launched (cast just finished)
   - SPELL_EFFECT_HANDLE_LAUNCH_TARGET - called when spell is launched for each target in spell target map
   - SPELL_EFFECT_HANDLE_HIT - called when spell hits its destination
   - SPELL_EFFECT_HANDLE_HIT_TARGET - called when spell hits it's target from spell target map
*Correctly implement SPELL_EFFECT_TRIGGER_SPELL, SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE, SPELL_EFFECT_TRIGGER_MISSILE_SPELL_WITH_VALUE, SPELL_EFFECT_TRIGGER_MISSILE_SPELL
*Remove spell system hacks which became obsolete with this commit
Core/SpellScripts:
add OnEffectLaunch, OnEffectLaunchTarget, OnEffectHit, OnEffectHitTarget hooks for new effect handle modes and remove OnEffect hook.
A generic rule of thumb how to update your scripts (will work for nearly all cases) for spell system noobs:
if your spell script used GetHitXXXX function, you need to use OnEffectHitTarget, otherwise use
OnEffectHit
2011-09-25 13:29:50 +02:00
QAston
fe25ce4fa3 Core/AI: Replace many Unit::IsHostileTo with Unit::IsValidAttackTarget or Creature::canCreatureAttack. 2011-09-17 00:56:59 +02:00
Spp
af05915b9e [Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions) 2011-09-15 14:12:57 +02:00
Chaplain
f5a668ae8d Core: Cleanup. 2011-08-30 23:09:39 +03:00
Lopin
868c1c53f2 Core/GameObjects: Unrevealed GO_FLAG_UNK1. Now GO_FLAG_NOT_SELECTABLE makes gameobjects to be unselectable even in GM mode 2011-08-19 11:45:49 +02: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
LihO
19d5177d39 Scripts/AQ20: Crash fix 2011-08-06 16:44:22 +02:00
Spp
7e53a73059 Core/Vehicles: Remove Vehicle.h dependency from other header files 2011-08-03 12:28:42 +02:00
Spp-
e47b96af3e Core: Append single character to stream as character, not as a string 2011-07-29 14:18:28 +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
1e3c23a4e8 Core/Spells: Set UNIT_FIELD_TARGET to current spell cast target for proper facing the target 2011-07-15 12:33:03 +02:00
Nay
0c23e1597a DB/Misc: Add scripts & gossip to npc 10578; Template update and auras for corpses in Grizzly Hills; Remove a console error (Closes #2247) 2011-07-07 18:56:44 +01:00
Nay
4147106373 DB/NPCs: Add some random gossips and template updates. Should fix some combat bugs in Ulduar. Closes #2241 2011-07-06 18:17:44 +01:00
Nay
c572adea15 Scripts/Silithus: Fix Wind Stones gameobjects (fixes many quests in this zone). Closes #95 2011-07-05 22:07:40 +01:00
click
1aff85f541 Core: Cleaning up hungarian notation - Phase8: pSummon -> summon (also did related hits) 2011-07-03 00:28:03 +02:00
click
db045c40ad Core: Cleaning up hungarian notation - Phase5: pKiller -> killer 2011-07-02 23:58:05 +02:00
click
f676585cac Core: Cleaning up hungarian notation - Phase5: pWho -> who 2011-07-02 23:53:38 +02:00
click
f997363c08 Core: Cleaning up hungarian notation - Phase3: pVictim -> victim 2011-07-02 23:50:02 +02:00
click
70115f52f7 Core: Cleaning up hungarian notation - Phase3: pTarget -> target 2011-07-02 23:16:45 +02:00
click
169f5da8c3 Core: Cleaning up hungarian notation - Phase2: pPlayer -> player 2011-07-02 22:52:42 +02:00
click
f91ee24184 Core: Start cleaning up hungarian notation - Phase1: pCreature -> creature 2011-07-02 22:18:03 +02:00
click
a9c9ab0efa Core: Clean up script variables to make variables consistant/standardized, and some additional warning-removals:
+ Fix compilewarning in Unit.cpp
+ Remove/comment out unused parameters for some commandscripts/scripts (warnings)
+ Replace "plr" with "player" all over the scriptbase for consistency
2011-07-01 03:00:39 +02:00
Spp-
6fd41ae50e Scripts: Reorder file names in Commands/CMakeList file and cosmetic changes in all scripts 2011-06-30 14:24:56 +02:00
click
f7b0e58a14 Core: Remove a few warnings (unused variables), clean up tabs whitespaces 2011-06-23 09:13:58 +02:00
click
f778c5e739 Whitespace cleanups... 2011-06-18 19:51:28 +02:00
Shocker
2bef7477bb Scripts/Culling of Stratholme: Allow Infinite Corruptor to deal melee attacks 2011-06-16 00:36:37 +03:00
kaelima
be229ef4cf Scripts/Ruins of Ahn'Qiraj: Accidently removed copyright in one file. Sorry ScriptDev2. 2011-06-13 17:51:35 +02:00
kaelima
5720a4d9a5 Ruins of Ahn'Qiraj:
- Rewritten instance script
- Kurinnaxx has been rewritten.
- Moam has been rewritten.

Rest of the bosses is TODO.

Also fix yet another typo in my latest commit, lol.
2011-06-13 13:21:02 +02:00
kaelima
f45121ebe9 Core/Scripts: Avoid some possible crashes
Temporary fix since Sartura obviously needs a rewrite.
2011-06-13 13:06:02 +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
3e20e4ebe6 Scripts/Azuremyst Isle: Actually fixed what was stated in last commit :P 2011-06-02 15:38:42 +02:00
kaelima
843d4288f8 Scripts/Azuremyst Isle: Fix The Prophecy of Akida.
- Issues with gameobject resetting resolved.
- Will now move more blizz-like.

There are more cage release quests smiliar to this witch could probably be generalized.
2011-06-02 15:03:46 +02:00
kaelima
ae0d349a3c Core/Defines: Update enum TextEmotes, values and names from client. (These emotes comes in CMSG_TEXT_EMOTE). 2011-05-30 22:57:37 +02:00
click
2d1b3ccaa1 Compile warnings fixes 2011-05-27 14:45:44 +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
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
QAston
1121fcfb90 Core/Scripts: Remove hook GetAuraEffectTriggerTarget from CreatureAI.h
The hook was made for one obsolete script, which turned out to not work anyways.
2011-05-15 18:53:02 +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
ecc95a8690 Core/CreatureTextMgr: Converted chat types to use values found in sniff, without any need for conversions 2011-05-13 22:44:01 +02:00