Commit Graph

158 Commits

Author SHA1 Message Date
Nay
ebfa6bbcd1 SQL: Fix remaining errors... *sighs* 2012-01-14 01:53:21 +00:00
Venugh
ab923f7157 Core/Scripts: typo from last commit. thx Discovered. 2012-01-14 00:22:26 +01:00
Venugh
46d1736d0d Core/Scripts: Convert Torek script_texts to creature_text.
Apply coding style in it.
2012-01-14 00:20:03 +01:00
kiper
8299627ed9 Update headers for 2012. HAPPY NEW YEAR!!! 2012-01-01 00:32:13 +01:00
Spp
3792b470e0 Core/Scripts: Replace rand with urand in most cases (using regexp)
Used: perl -pi -e 's/([0-9]+) \+ rand\(\)\%([0-9]+)/"urand(".$1.", ".($1+$2).")"/ge'
2011-12-28 10:51:16 +01:00
Discover-
9b8d18e7cd Scripts/Quests: Add a double check in summoning for two of my previous scripts, as well as revert changing WDB data. 2011-12-25 17:17:28 +01:00
Discover-
275aa8a7d8 DB/Miscellaneous: Implement humans transforming into worgens at night inside Pyrewood Village.
And yet again some silly typo's, sorry guys.

Closes #3062
2011-12-25 01:21:09 +01:00
Discover-
173fb48fe2 Core/Quests: Script quest Portals to Legion.
Core/Desolace: Clean up some terrible code..
2011-12-25 01:05:00 +01:00
Machiavelli
6c03bf9535 Core/Misc: Some random meaningless Engrish to English conversion in a method name because Discovered is too lazy to do it himself. 2011-12-19 22:06:29 +01:00
horn
b119558ee1 Core/Dungeon Finder: Fixed LFG rewards in UK, ToCH, CoS and DTK. 2011-12-18 23:42:23 +01:00
Spp
d59c5e627f Fix warnings 2011-12-15 11:12:15 +01:00
Shauren
358b33239a Core: Fixed remaining C6246: Local declaration of 'x' hides declaration of the same name in outer scope. from previous commit 2011-11-23 19:17:33 +01:00
kaelima
be0b2fcf97 Core/Grid:
- Simplified CellArea calculation (Original author: SilverIce)

- Removed unused code in Cell class (Original author: SilverIce)

- Improve some Visit functions.
2011-10-19 17:40:44 +01:00
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