Commit graph

366 commits

Author SHA1 Message Date
VladimirMangos
52701a58f6 [9509] Move custom data from item spell charges sign to new field NoConsumable.
Some items with negative by defaul charges not expected to be deletedt at no charges.
In past this fixed by using positive charges amount in like cases in different from
expected negative value. Adding new field for avoid this.
2010-03-03 09:14:09 +03:00
VladimirMangos
4a051e2443 [9496] HomeBind fixes.
* Use area id instead zone id for home bind zone info as expected.
  This will for example proper show capital name in area himebinding for capital; tavern.
* Clarify that player create zone in fact is area (subzone)
* Implement SPELL_EFFECT_BIND for normal homebinding.
  Also support spell target position mode used in 53823/53821 spells
* Add Spell::EffectEmpty for mark spell effects that used but not expect any code in handler.
  Example weapon spells that used just as known spell markers for client.

Original patch idea inspirit by Sadikum patch suggestion.
2010-03-01 13:08:52 +03:00
VladimirMangos
233e75ab4b [9415] Dome not catched cases for MAX_EFFECT_INDEX use. 2010-02-19 19:57:07 +03:00
VladimirMangos
84080aaf60 [9411] More SpellEffectIndex using in apropriate cases 2010-02-19 06:45:11 +03:00
VladimirMangos
ff8d494ed4 [9408] Add MAX_EFFECT_INDEX to enum SpellEffectIndex and use it. 2010-02-18 23:33:16 +03:00
NoFantasy
7c555add76 [9403] Replace number with enum name where explicitly used in array/other checks
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-17 19:07:00 +01:00
VladimirMangos
f9db93e78b [9397] Fixed unexpected rounding in healamount = healamount * int32(TakenTotalMod); 2010-02-16 00:28:12 +03:00
AlexDereka
ebfb0f9835 [9389] Cleanup config data. Use proper names and expected types. 2010-02-15 15:29:06 +03:00
AlexDereka
5368751c13 [9386] Store some config values in Rate emun. 2010-02-15 00:17:44 +03:00
VladimirMangos
6d4693e770 [9371] Implement .reload all_gossips
* For reload `gossip_menu`, `gossip_menu_option`, `gossip_scripts`,
  `npc_gossip`, `points_of_interest` by single command.
* Also fixed reloading `points_of_interest`.
2010-02-14 00:57:43 +03:00
Thyros
51b1fa9802 [9370] Implement .reload quest_poi (also reload quest_poi_points).
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-14 00:37:04 +03:00
NoFantasy
066daaecfd [9356] Correct output in case negative value in one error message.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-11 02:18:30 +01:00
AlexDereka
df457c3ff5 [9352] Remove unused varibles 2010-02-10 20:59:29 +03:00
VladimirMangos
c2f8d39920 [9342] Fixed group creating :(
Also prevent not read tail packet spam in soem cases in group handlers.
2010-02-09 17:08:00 +03:00
VladimirMangos
c9c578b5c3 [9339] Use group ids for indexing groups in DB
* Use group ids in DB
* Pack used group ids at server startup
* Finaly drop group search by leader guid.
2010-02-09 14:36:20 +03:00
VladimirMangos
b50c3a9355 [9338] Simplify group loading code. 2010-02-09 08:59:39 +03:00
VladimirMangos
9c346fc0a9 [9337] Use ACE PATH_MAX define magic 2010-02-09 03:34:02 +03:00
NoFantasy
08c364214b [9335] Clarify error log message after rewrite of monster_* to spline_* flags
Also change name of related field in code.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-09 00:32:22 +01:00
NoFantasy
8465d95d9f [9331] Implement DB storage of new quest fields RewRepValueIdN
Value can be -9 to 9. Value point to actual rewarded value in dbc store.
This id can then fully replace current use of RewRepValueN, as this field will most likely be reserved for custom reputation rewards (override RewRepValueId).
Old system/DB data will still work like normal, but be aware this may change in not too far away future.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-08 23:41:34 +01:00
AlexDereka
696cba9c37 [9330] Fixed msvc compile warnings. 2010-02-08 16:27:35 +03:00
VladimirMangos
8e0069f364 [9327] Replace leader based indexing groups by group ids.
* This must repolve problem with loot.
  Before if some mob killed by group member and then leader changed
  then group members can't loot this mob body.
* Possible resolve crashes at loot. Now group storage content not dependent from leader changes.
2010-02-08 08:25:06 +03:00
tomrus88
db547a008a Get rid of monster movement flags, since it's really spline flags.
Thanks to Ralek for research.
2010-02-07 15:03:36 +03:00
VladimirMangos
87a35b0489 [9317] Call linkedtrap summon in more cases.
* GAMEOBJECT_TYPE_BUTTON can have linked traps
* Spell::EffectSummonObject also can summon objects with linked traps

Thanks to patman128 for research second case.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-07 02:51:45 +03:00
NoFantasy
883bdbf799 [9312] Implement DB storage of new quest_template field RewHonorMultiplier
Also rename an existing field to RewHonorAddition.
Note: calculation of real reward must be corrected accordingly.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-06 12:17:42 +01:00
NoFantasy
f73b778cde [9309] Implement DB storage for new quest_template field 'RewXPId'.
Values 0-8, used to display XP reward in client log.
Please note that calculation of quest XP has changed, and formula must be corrected accordingly.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-05 14:29:27 +01:00
Foks
ca2efb713c [9305] Fix load quest locales, after implement CompletedText in 9291, v2.0
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-04 23:57:06 +03:00
VladimirMangos
d7d4c2da9f [9303] Restore skip one from startup (by DBC data) but not existed items. 2010-02-04 22:03:33 +03:00
NoFantasy
dd2239eea9 [9302] Fix load quest locales, after implement CompletedText in 9291
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-04 18:27:03 +01:00
NoFantasy
2718884192 [9300] A few more error message corrections/clarifications.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-04 12:08:33 +01:00
NoFantasy
39a61f213e [9299] Upgrade a few error messages from engrish v.1 to engrish v.2 :)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-04 00:46:25 +01:00
NoFantasy
a0a4f7a719 [9291] Implement DB storage for new quest field, CompletedText
Text will display in quest objectives window when quest is completed.
Also add locales storage

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-03 14:04:47 +01:00
VladimirMangos
66c8c75914 [9284] Realy fixed crash source added in [9228] now. 2010-02-02 14:52:52 +03:00
VladimirMangos
abce7740f8 [9233] Restore build at *nix after [9228]
Partly undo changes.

Thanks to DasBlub and Lightguard for testing.
2010-01-22 00:34:47 +03:00
zhenya
4178d5bb6a [9228] Speedup groups store and other code work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-21 17:43:27 +03:00
Lightguard
0088d1300c [9216] Fixed hunter pet XP requirements.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also move calculation to function. And avoid use operator[] for access to per-area base xp table data.
2010-01-20 05:05:23 +03:00
VladimirMangos
d59c394370 [9192] Fixed typo in error output for lock id gameobject template data check. 2010-01-16 20:58:19 +03:00
XTZGZoReX
ee26f74796 [9176] Add commented check for unit_class == 0.
In fact creature unit class must not be 0, but some creatures (like triggers) have this.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-14 21:00:41 +03:00
TOM_RUS
7985fe3d0f [9143] Typos
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-11 01:26:24 +03:00
VladimirMangos
6769171a1d [9142] Move start outfit items check to server loading.
Also drop one not needed now hack.
2010-01-11 01:18:08 +03:00
VladimirMangos
dc643371c8 [9136] Merge branch '330' - Switch to support client version 3.3.0A
You need extract new dbc.

Also recommended extract new map/vmaps.

And apply ofc sql updates that including character convertion.

Special thanks to TOM_RUS for continue work at next client versions support :)
2010-01-10 07:29:44 +03:00
VladimirMangos
1da5166c3c [9132] Fixed crash at loading from player_classlevelstats level 0 data.
Added check that prevent loading data for unexpected level 0.
2010-01-09 21:12:52 +03:00
VladimirMangos
e15f548bed Merge branch 'master' into 330 2010-01-08 16:03:27 +03:00
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
VladimirMangos
aaa5cba89c [9116] Lost break/return in CONDITION_LEVEL cases. 2010-01-07 16:57:40 +03:00
NoFantasy
effe02fb25 [9111] Implement ConditionType CONDITION_LEVEL for PlayerCondition
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-05 01:59:14 +01:00
DasBlub
ebb063beb9 [9107] Fix most of the gcc warnings
* use UI64FMTD instead of "%u" for uint64 output
* on most *NIX systems, I64FMT is "%016lX" and not "%016llX"
* also fix typo: renamed GridMap::loadHeihgtData to GridMap::loadHeightData

Note: there are still many warnings from the 3rd party libraries g3dlite and ACE. Those warnings won't be fixed with that commit.
Also, a few warnings from MaNGOS are left, they'll be fixed later.

Signed-off-by: XTZGZoReX <xtzgzorex@gmail.com>
2010-01-03 15:30:22 +01:00
Hiram
253ad70197 Fixed build at branch.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix some lines related to internal quest flags mask.
2010-01-01 17:01:48 +03:00
tomrus88
90d76c61fa Merge remote branch 'origin/master' into 330 2009-12-19 21:04:49 +03:00
VladimirMangos
b95e3046c0 [9022] Fixed small typo in creature_template.difficulty_entry_N checks. 2009-12-19 01:30:06 +03:00
tomrus88
58892c5025 Merge remote branch 'origin/master' into 330 2009-12-18 00:11:59 +03:00