Commit graph

3229 commits

Author SHA1 Message Date
VladimirMangos
adb09fd0f4 [9930] Move enum QuestTypes to QuestDef.h where it only used.
This is also fix build at GCC
2010-05-19 04:30:09 +04:00
VladimirMangos
54c2da8d53 [9929] Move apply spell coeffs and level penalties code to new function.
* No reson have 6 copies near to exactly same code.

* This fix problem with apply attack power bonus in some case.
  Thanks to Wowka321 for find and reseach problem.
2010-05-19 02:50:31 +04:00
bloutix
a457f35b21 [9928] Fix build...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-19 01:21:24 +04:00
VladimirMangos
d5c7e7b7d2 [9927] Support new raid allowed quest types. 2010-05-18 15:36:50 +04:00
zergtmn
611b53fab8 [9926] Typos in Unit::DealDamageMods
Can be source very strange damage/absorb and any near stored/calculated in memory values. and crashes also.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-18 14:21:22 +04:00
VladimirMangos
d86dcd60d7 [9925] Add more log filters
* damage - different direct damage calculation tracing
* combat - combat state updates, roll attack result and etc
* spell_cast - spell cast progress and aura apply
2010-05-18 12:38:52 +04:00
VladimirMangos
b6d7365ac9 [9924] Implement .server log filter and .server log level comamnds.
* .server log filter comamnd let temporary (until config reload or restart)
  set log filters state. Or look at filters state.
* .server log level renamed from .server set loglevel but now let look at log level also.
2010-05-18 12:03:02 +04:00
zergtmn
ffd2cf874d [9923] Fixed typo in prev commit.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-18 10:35:24 +04:00
LordJZ
60bdbed8f4 [9922] Rename BG_WS_UNK1 -> BG_WS_TIME_ENABLED
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-18 04:59:58 +04:00
VladimirMangos
bed8794a75 [9921] In case player who tap creature in group leave group it must anyway rewarded with group. 2010-05-18 04:48:33 +04:00
KillerFrca
e5dc7a098c [9920] Restore group rewarding at player kill.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-18 04:37:59 +04:00
VladimirMangos
bfffc715e5 [9919] Output player name in ObjectGuid player output string. 2010-05-17 12:59:19 +04:00
VladimirMangos
696a4b6db0 [9918] Fixed player's tapped creature loot access by group in diff cases
* If player tap creature in group and leave then group will have access to creature loot if not disbanded
* If player tap creature and after join to group then creature loot will accesable only by player
* Also RewardPlayerAndGroupAtKill divided to simgle player and group reward versions used for group tap
  and single player tap cases.
2010-05-17 12:56:57 +04:00
VladimirMangos
96d50bf55a [9917] Fixes in loot roll timer work and related cleanups.
* Changes include (in fact as part cleanup) fix got NeedBeforeGreed locked item after expire roll timer
  suggested by somedruid@mangos.lighthouseapp.com.
* Added cancel rolling at creatuer corpse remove.
* For NeedBeforeGreed and GroupLoot sued common code for prepare item roll.
2010-05-17 05:29:01 +04:00
Darkruler
0b7f090a37 [9916] Fixed .account onlinelist work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-17 02:20:32 +04:00
VladimirMangos
ce761f4925 [9915] Clarify game_event field values and fix typos.
Thanks to BrightStone for pointing to ;)
2010-05-17 01:57:54 +04:00
NoFantasy
628f11e1a7 [9914] Add script effect of spell 51864, 51889 and 51910
In addition, dummy effect of spell 51866 and 51872 and dummy aura effect of spell 51870.
Dummy effect of 51866 might need additional work (see comments).

Code expect additional spell cast by AI (summon dummy at death of related quest target creatures).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-16 13:52:51 +02:00
NoFantasy
fab9a3ae96 [9913] Fix TARGET_SCRIPT searcher and also look for objects that are Pet*
Pet (guardian, mini-pet) may also be the target of TARGET_SCRIPT, and are not considered a grid object.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-16 09:29:49 +02:00
VladimirMangos
6d5d8778fa [9912] Partly revert [9911] :/ 2010-05-16 09:51:52 +04:00
VladimirMangos
112afc260c [9911] Check script using and existance at creature_movement_scripts load. 2010-05-16 09:26:48 +04:00
LordJZ
0828c3aa81 [9910] Implement expected from 3.2.x time limit for BattleGroundWS.
With updates and fixes from zergtmn.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-16 07:56:44 +04:00
VladimirMangos
df6bd3df30 [9909] Prevent SQL injection in equipment sets code.
Author of original verison: Machiavelli
2010-05-16 05:25:02 +04:00
LordJZ
92b7920cbb [9908] Add missing break. Not affect current code work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-16 03:38:34 +04:00
LordJZ
ad1926585e [9907] Make comment really proccessed by doc generator.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-16 03:32:59 +04:00
Patman128
2ee1bb5219 [9906] More user friendly output at DB version check fail.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-16 03:03:25 +04:00
darkstalker
c018563669 [9905] Correct SMSG_INSTANCE_DIFFICULTY structure (fixes raid difficulty display).
Signed-off-by: XTZGZoReX <xtzgzorex@gmail.com>
2010-05-16 00:31:53 +02:00
VladimirMangos
aaa33d5385 [9904] Add new config option for wait mode at startup error.
Note: it not applied to crashes and shutdowns after mangosd/relamd startup completed.
You can continue without delay (as now) and fast exist, or wait <Enter>, or some secs
for continue. Last can be helpful for see for example not applied sql update revision
data and etc.
2010-05-16 02:19:40 +04:00
Lynx3d
f492ee6794 [9903] Fixed build problem at *nix.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-15 23:41:42 +04:00
VladimirMangos
efba75312d [9901] Second attempt fix sql update :/ 2010-05-15 12:45:28 +04:00
darkstalker
9fb36ed021 [9900] Fix SPELL_MOD_SPELL_BONUS_DAMAGE applying
Signed-off-by: Laise <fenrisse@gmail.com>
2010-05-15 11:37:07 +03:00
VladimirMangos
3424dbf1fa [9899] Fixed sql update for ptrev. commit. 2010-05-15 11:37:42 +04:00
VladimirMangos
1f741a16b3 [9898] Implement redundent values check in spell_bonus_data
Also do table content cleanup base at added feature.

Original check code provided by nos4r2zod.
2010-05-15 11:25:21 +04:00
VladimirMangos
6e92d43237 [9897] Avoid multiply AP bonus coeff. with spell power bonus.
Problem exist in original code before recent commits.
2010-05-15 11:17:38 +04:00
nos4r2zod
b2b8ca1d70 [9896] Cleanup spell bonus coeff use code
* Avoid coeff calculation if target value is 0.0f
* Avoid use spell_bonus_data coeffs for creature damage.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-15 11:17:17 +04:00
nos4r2zod
e880e7d236 [9895] Move DotFactor+GetSpellCastTimeForBonus call to CalculateDefaultCoefficient
* This coeff used if not spell_bonus_data provided for spell
* Continue prev. commit line expected that creature casts not affected by DotFactor

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-15 11:16:02 +04:00
nos4r2zod
4951f846dd [9894] Move GetCastingTimeForBonus and some other code to GetSpellCastTimeForBonus.
Important changes:

* Chaged way caluclation "-5% of total per any additional effect" to percent
  apply instead use raw value that correct only for 3500 cast time spells.
* GetSpellCastTimeForBonus result now alwasy not applied to creature casted spells
  Before it not applied only to instant spells. Please test if this ok in all cases.
* Leech effect modify spell casting time move into GetCastingTimeForBonus and then called
  also for melee spells. But only creature spells exist with melee class damage and its
  not affected by GetCastingTimeForBonus anyway now.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-15 11:15:05 +04:00
nos4r2zod
34a1cc31d0 [9893] Fixed some spelling typos in function/structure names.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-15 11:14:03 +04:00
j4r0d
19b5d777cd [9892] Cleanups for BattleGroundEY code
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also prevent send uninitilized mark data in case BATTLEGROUND_EY end.
Simplify related code.
2010-05-14 23:29:49 +04:00
NoFantasy
312a076491 [9891] Implement *_scripts for creature_movement
New field script_id in creature_movement can be filled for each waypoint point and run the corresponding script from creature_movement_scripts.
Script_id can be any value and several points/creatures can share the same script (with limits of course, such as script depending on location and other factors).

DB projects are advised to move current text, spells and emotes data in creature_movement fields as these fields are strictly no longer needed and may be fully removed in the future.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-14 12:16:54 +02:00
NoFantasy
5a72466935 [9890] Add TYPEMASK_WORLDOBJECT to enum TypeMask
Check typemask and replace a few dynamic_cast with more simple casts.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-13 17:51:49 +02:00
NoFantasy
31ec245b68 [9889] Extend features available for SCRIPT_COMMAND_TALK
* Allow other than Creature to talk.
* Add "buddy-talk", using creature entry in datalong2 (the npc who will do the talk instead of the original source). Value in datalong3 is how far to look for the buddy.
* Add data_flags making it possible to have conversations between units, controlling who does the talking and to whom, including make player do the talking when player is not already the source.

Notes and details are added in the comments for SCRIPT_COMMAND_TALK

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-13 16:39:04 +02:00
Laise
0344a8e838 [9888] Party restore IsKnowHowFlyIn and add area arg 2010-05-13 15:15:46 +03:00
Laise
a002f22916 [9887] Fix special mounts using in Dalaran 2010-05-13 14:42:55 +03:00
VladimirMangos
080727cbfa [9886] Implement new commands for account search
* .lookup account email, .lookup account ip, .lookup account name
* For new commands and for .lookup player versions use first arg as part of email/ip/name search
* Use similar output format for player/account lists.
2010-05-13 11:44:03 +04:00
tomrus88
a3e61dc560 [9885] Added VS2010 projects for maps extractor.
(based on commit 211997d)
2010-05-13 06:20:52 +04:00
Laise
188db9691f [9884] Code style fixes thx to hunuza & Wowka321 2010-05-12 17:43:15 +03:00
NoFantasy
b208effca6 [9883] Change SCRIPT_COMMAND_TALK to support CHAT_TYPE_* using enum ChatType
Making data consistent with other, similar tables like EventAI's text tables.
This convert existing data and also adds support for all chat types.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-12 14:09:38 +02:00
Laise
41c58f3be9 [9882] Add support for mounts dependent from riding skill and location 2010-05-12 13:34:10 +03:00
NoFantasy
faf3e287c7 [9881] Add additional fields to *_scripts tables for storage of more data.
Currently not in use by any SCRIPT_COMMAND_* but we have secret plans to be revealed in the future!

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-12 12:02:38 +02:00
VladimirMangos
fecf6fdb72 [9880] Prepare world state inint packet data in more clean way.
* Avoid use hardcoded field amount values
* Avoid use world state update packets just after world state init packet
* Attempt make code look less horrible in general.
2010-05-12 09:28:03 +04:00