Commit Graph

152 Commits

Author SHA1 Message Date
Nay
5a4636c145 Core|DB/Quests: Rename and re-order fields in quest_template table, for the sake of consistency
Order should match SMSG_QUEST_QUERY_RESPONSE
2011-11-26 03:00:06 +00:00
Discover-
6a009702aa DB/SAI: Move some areatriggers to sai.
Quests: 11686, 13315/13351 and 6681
Closes #3719
Closes #3720
Closes #3721
2011-11-13 17:08:30 +01:00
tobmaps
c0c6000a44 Core/Misc: Fix spelling typo 2011-11-02 19:13:51 +07:00
kaelima
e1111886dd Scripts/Howling Fjord: Fix horde version of Of Keys and Cages 2011-10-29 14:12:36 +01:00
Discover-
a620a763a9 Scripts/Howling Fjord: Fix quest Of Keys and Cages
Closes #3540
2011-10-26 00:11:06 +01: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
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
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
Fredi Machado
2baca2d3ca Core/Scripts: Code style and cleanups in npc_special.cpp
- Removed hungarian notation
- moved types before the const keyword
- applied TC code style
- some code cleanups
2011-09-06 10:16:21 -03:00
horn
43052a47e1 Core/Achievements: Fixed some Alterac Valley achievements:
- Stormpike Perfection
- Frostwolf Perfection
- Everything Counts
2011-09-03 18:53:26 +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
dfa179b427 Scripts/Achievement: fix a typo. 2011-08-25 13:16:09 +02:00
Lopin
f72cff430d Core/Achievements: Added also check for player's team. Only defenders should get this achievement 2011-08-24 22:56:36 +02:00
Lopin
35b8425656 Core/Achievements: Added missing AchievementCriteriaScript. Thanks Spp for pointing it out 2011-08-24 22:42:57 +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
Spp
7e53a73059 Core/Vehicles: Remove Vehicle.h dependency from other header files 2011-08-03 12:28:42 +02:00
Spp-
1fc1da842e Core: Fix annoying compile warning and some other minor changes here and there 2011-08-01 13:46:00 +02:00
Machiavelli
f26edf09d3 Fix gcc build and remove redundant check from 0afc3c 2011-07-31 22:27:57 +02:00
Machiavelli
0afc3cf110 Core/ChatLog: Properly filter out addon messages in whisper, party, raid and battleground.
Original patch by tassader1000
2011-07-31 14:40:15 +02:00
Azazel
c5d0c6b464 Core/Misc: cleanup npc_professions script (shouldn't the whole script go to DB?). Fix some warnings. 2011-07-29 15:25:52 +06: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
Shocker
0cedb54219 Core/Achievements: Fix Didn't Stand a Chance 2011-07-27 03:33:11 +07:00
Sarjuuk
f526b61e1a Core/Spells: Grounding Totem should respect line of sight 2011-07-24 00:44:29 +07:00
tobmaps
bb0634c7c2 Core/Spells: Bonuses from SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN should be multiplicative 2011-07-23 22:17:16 +07:00
crackm
d06d174a4f Scripts/Sholazar Basin: Add support for areatrigger conditions for Quest: The Etymidian (12548)
Closes #896
Closes #1638
2011-07-23 18:25:19 +07:00
Shauren
5df24441d1 Scripts/Achievements: Fixed mass replace mistake 2011-07-03 13:35:36 +02:00
click
1aff85f541 Core: Cleaning up hungarian notation - Phase8: pSummon -> summon (also did related hits) 2011-07-03 00:28:03 +02:00
click
cc02a3fa79 Core: Cleaning up hungarian notation - Phase7: pOwner -> owner 2011-07-03 00:06:11 +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
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
horn
676967c9ac Core/Achievements: Fix The Sickly Gazelle
Closes #2154
2011-07-01 19:32:41 +03: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
4ec9ecd3e0 Scripts/EmeraldDragons: Fix a few small snaggs:
- Teleport highest aggro player to front of dragon if exceeding 50 yards
- Clean up target selection/handling slightly
- Remove UpdateAI-segments from the dragons, it's already handled in the base AI
2011-06-24 17:07:31 +02:00
QAston
31d32e28ee Fix build 2011-06-23 13:49:22 +02:00
click
235e164ba7 Scripts/Emerald Dragons: Fix Aura of Nature being refreshed on already affected targets 2011-06-17 01:22:22 +02:00
click
b138bc31ca Scripts/EmeraldDragons: Clean up a bit on the scripts:
- Remove script for Shade of Taerar, replaced with SAI equivalent (Malcrom)
- Remove script for Demented Druids, replaced with SAI equivalent (Malcrom)
- Add supportscript for Mark of Nature (Kaelima)
- Some other minor changes here and there
2011-06-12 17:13:28 +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
195cd813b1 Scripts/World: Fixed movement for dream fog when changing from MoveChase to MoveRandom.
Also removed unneeded line for their victim searcher.
2011-06-01 00:54:13 +02:00
click
4ccb21e51a Scripts/World: More dragonAI fixes 2011-05-31 18:36:11 +02:00
kaelima
53db8f4fb6 Scripts/World: Small cleanup 2011-05-31 18:04:47 +02:00
click
c49ce7fd83 Scripts/World: Fix silly mistakes - don't code and sleep at the same time (and good night from me!) 2011-05-31 09:06:35 +02:00
click
21e687f9e1 Scripts/World: Minor timer adjustments to the "shared" abilities for the Emerald Dragons - now even more blizzlike \o/ 2011-05-31 08:52:08 +02:00
click
7f7c5c4c89 Scripts/World: Fix some more on the Emerald Dragon AI:
- Add spellscript for Dream Fog sleep - now it ticks like it should
- Adjust movement-speed and timers for the Dream Fog NPC spawns (can now be outrun, and doesn't spawn like mad)
2011-05-31 05:52:29 +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