Commit Graph

92 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
Fredi Machado
97142102e0 Core/Misc: Added 'f' after float values 2011-10-17 07:38:27 -03:00
kaelima
97e5140a1d Core/WaypointMgr: Allow to set orientation to waypoints.
- Instead of the need to use a waypoint_script to change orientation on waypoint arrival.
2011-10-15 18:38:27 +02:00
megamage
3ba22d0d06 Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for better management. 2011-10-10 17:39: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
Fredi Machado
fd76ef3cd0 Script/Commands: Codestyle and cleanups 2011-10-10 10:33:13 -03: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
Spp
9e517c963b Cosmetic: Replace "* )" with "*)" and "* /*" with "* /*" 2011-09-29 09:32:55 +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
Spp-
33ce07bdde Core: Minor cleanups (here and there)
- Fix warning
- Fix some typos
- Correct upper 'for' limit in LoadSkillLineAbilityMap
- Remove use of magic number in a query related to security levels
2011-09-13 14:15:35 +02:00
Spp-
45af1238cf Conditions/DisableMgr: converted from singleton to namespace with free functions. 2011-09-09 14:27:23 +02:00
Spp
d46ef045a6 Fix a typo in 327fe7c than changed the logic of a function and simplify IsXXXAccount functions 2011-09-08 18:32:52 +02:00
Spp-
327fe7c247 Core: Define helper functions to know if an account is Player, Moderator, GM, Admin or Console 2011-09-08 15:11:55 +02:00
Spp-
eddcb8ffbf AccountMgr singleton converted to namespace with free functions as it has no internal state 2011-09-08 10:49:58 +02:00
QAston
68037cdc3c Scripts/Commands: Allow c++ style comments in opcode.txt file for .debug send opcode command. 2011-09-01 10:46:15 +02:00
Chaplain
f5a668ae8d Core: Cleanup. 2011-08-30 23:09:39 +03:00
QAston
3476767eb0 Fix warnings from merged pull requests. 2011-08-21 11:59:06 +02:00
Joeri Thissen
4f1864cfe9 Scripts/Commands: Unify .go xy and .go xyz commands, also add orientation parameter to the .go xyz command (so the command is now: .go xyz #x #y [#z [#mapid [#orientation]]]) 2011-08-21 10:40:29 +02:00
leak
6db242473e Core/Commands: Console should be able to add/remove rights in any case 2011-08-13 13:24:48 +02:00
Cron
e2c1dac196 Scripts/Commands: Forgotten change & fix a mistake. 2011-08-09 07:43:42 -03:00
Cron
564fa1a557 Scripts/Commands: Killed some more engrish in debug CommandScripts. 2011-08-09 07:40:49 -03:00
Cron
dd6be6b2fd Scripts/Commandes: Kill some engrish. 2011-08-08 09:31:15 -03:00
Spp
e7327e7e94 Core: Fix compile without PCH and fix some warnings 2011-08-03 11:23:08 +02:00
Spp-
e47b96af3e Core: Append single character to stream as character, not as a string 2011-07-29 14:18:28 +02:00
Spp-
b2a84d9f1e Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons) 2011-07-27 12:14:27 +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
click
f91ee24184 Core: Start cleaning up hungarian notation - Phase1: pCreature -> creature 2011-07-02 22:18:03 +02:00
click
b7ed8b7c66 Core: Fix the achievement-command to use the new functionname. 2011-07-02 02:57:46 +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-
e9aa72cc7b Cosmetic: rename function escape_string to EscapeString 2011-06-30 14:52:44 +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
7762ddce57 Script/Commands: Fix non-PCH build after the addition of the .wpgps command 2011-06-29 17:18:38 +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
kaelima
142943d4c1 This reverts commit f580cddc09. 2011-06-28 13:05:15 +02:00
click
f580cddc09 Core: Add wintergrasp-patch to wintergrasp_cleanup branch - resurrected from an old work-repository, now over as a branch to work on.
Original patch by socolin, cand a ton of contributors :
mathman, joda, spp, silinoron, josh, malcrom, shauren, machiavelli, click, rat, leak, tobmaps, _manuel_, the tcfr team (via socolin), and tons of others for chiming in.

NOTE: THIS IS A WORKING-BRANCH, AND _NOT_ MENT FOR PUBLIC USE OR EVEN CONSIDERED STABLE!
2011-06-28 00:56:29 +02:00
kaelima
9a67aaa8b8 DB/Creature:
- Nuke the hacky column DeathState.
- Removed some hacks from Kologarn script, including some cleanup.
- Removed set deathstate command.

BIG thanks to Malcrom for replacing all creatures that had deathstate with proper dynamicflags/auras.
2011-06-27 20:22:53 +02:00
QAston
ac88fa026f Database/Spells: Add spell_proc table which is a replacement for spell_proc_event table. This is the initial patch from series of patches changing the way we currently handle procs in the core, and doesn't interfere with existing code in any way. 2011-06-26 13:54:44 +02:00
Nay
62908812cb Core/Gossip: Ditch gossip_scripts as it is no longer used. SAI is a better option 2011-06-19 15:24:59 +01: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
Shocker
fc11540c23 Chat/Commands: Allow .go creature to teleport to the actual location of a creature if player is in the same map with it 2011-06-06 16:07:07 +03: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
cb608283b2 Core/WaypointMgr: Fixed crashes when loading data with waypoint_data.id=0 and fixed memory leaks in .wp reload command 2011-05-24 23:13:47 +02:00
click
2717129d0d Core: Clean up whitespace and tabs 2011-05-09 10:59:54 +02:00
Shocker
ae7d55bb3b Core/Misc: Corrections after recent pull merge 2011-05-05 22:22:12 +03:00
Shocker
0baf01892c Merge pull request #31 from Ramusik/master
.modify scale on creatures, Combustion bug, Starfall supressing from root effects corrected, Dislodged Foreign Object no proc from heals, .learn all_myspells remove only player spells
2011-05-05 11:34:25 -07:00
leak
1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
leak
01a79947d5 More cleanup after last commit spree 2011-04-29 19:59:40 +02:00