Commit graph

3139 commits

Author SHA1 Message Date
NoFantasy
7eeaed6d10 [9430] Implement preservation of current health percent at UpdateEntry use
Updated creature will now have the same amount of health (in percent) as the original creature after update.
For cases where full restoration of health is expected, function have option to disable preservation.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-22 01:22:07 +01:00
Blaymoira
9e5e0cf3b4 [9429] Fix problems related to SPELL_AURA_MOD_DURATION_OF_EFFECTS_BY_DISPEL and duration reduction of some positive auras
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-02-21 16:50:18 +01:00
NoFantasy
5ec0c18d2c [9428] Remove redundant calls to Set(Max)Health, already done by SelectLevel function.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-21 16:19:16 +01:00
NoFantasy
67c5e57b0a [9427] Add helper functions for Unit::Get/SetHealthPercent
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-21 11:46:35 +01:00
VladimirMangos
6b0189fed3 [9426] Really rename to ACHIEVEMENT_CRITERIA_REQUIRE_S_EQUIPED_ITEM_LVL 2010-02-21 03:37:48 +03:00
VladimirMangos
df652c56c0 [9425] More achievement types support.
Implemented new achievement criteria requirement:
* ACHIEVEMENT_CRITERIA_REQUIRE_S_EQUIPED_ITEM_LVL (item level and item quality equiped in specific slot)

Implemented suppoprt achievement types:
* ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM (required DB data)
* ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL (required DB data)

Also achievment types used only for statistics:
* ACHIEVEMENT_CRITERIA_TYPE_CREATE_AUCTION
* ACHIEVEMENT_CRITERIA_TYPE_WON_AUCTIONS
* ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_VENDORS
* ACHIEVEMENT_CRITERIA_TYPE_GOLD_EARNED_BY_AUCTIONS
* ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM
* ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM
2010-02-21 03:20:26 +03:00
NoFantasy
8bb13412e5 [9424] Some code/comments cleanup in EffectScriptEffect
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 19:02:06 +01:00
NoFantasy
6c44c6f5a7 [9423] Implement dummy effect of spell 46485
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 18:35:39 +01:00
VladimirMangos
b2019913d4 [9422] Return success result for Zone<->map coordinates convertions.
This will prevent #INF-inity values in gps for zones where
zone coordinates calculation impossible with current code.

Also fix small typo in debug output format for honor
2010-02-20 17:50:37 +03:00
NoFantasy
a916e31316 [9421] Some code cleanup in EffectDummy, also correcting order of spell id
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 14:53:05 +01:00
NoFantasy
e8c2d62c19 [9420] Implement aura dummy effect for spell 35357
Also adjusting dummy spell 45990 slightly, despawn after some time instead of die instantly.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 14:24:04 +01:00
X-Savior
f9a5d37bf6 [9419] Implement dummy effect of spell 45990
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 10:33:57 +01:00
NoFantasy
828014dba1 [9418] Implement dummy effect of spell 45980
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 09:08:57 +01:00
NoFantasy
04e6187049 [9417] Correct spelling of horizontal.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 00:59:59 +01:00
NoFantasy
61556d8ff0 [9416] Implement dummy effect of spell 46606
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 00:03:09 +01:00
VladimirMangos
233e75ab4b [9415] Dome not catched cases for MAX_EFFECT_INDEX use. 2010-02-19 19:57:07 +03:00
VladimirMangos
231720c10f [9414] Some lost changes for prev. commit. 2010-02-19 17:54:49 +03:00
VladimirMangos
79a54286fd [9413] Use SpellEffectIndex in EffectDummy* script calls.
Scripts used this script calls will need update...
2010-02-19 17:42:41 +03:00
VladimirMangos
dd2f02699e [9412] Add #include DBCEnum.h for headers where SpellEffectIndex used.
This must fix Unix build problem.
2010-02-19 17:20:19 +03:00
VladimirMangos
84080aaf60 [9411] More SpellEffectIndex using in apropriate cases 2010-02-19 06:45:11 +03:00
NoFantasy
6469c21c41 [9410] Correct a typo in enum name, CAST_INTERRUPT_PREVIOUS
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-19 02:13:46 +01:00
VladimirMangos
11b84d27c2 [9409] Use SpellEffectIndex as arg type for spell effect handlers. 2010-02-19 01:06:17 +03:00
VladimirMangos
ff8d494ed4 [9408] Add MAX_EFFECT_INDEX to enum SpellEffectIndex and use it. 2010-02-18 23:33:16 +03:00
VladimirMangos
2a5ce2198c [9407] If instance have reset time not let rate make it less 1 day.
This also fix crash at instance reset data loading at server startup.
2010-02-18 16:17:08 +03:00
Gotisch
34c51c7bf6 [9406] Documentation mail system.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2010-02-18 06:41:31 +03:00
VladimirMangos
5af05a314e [9405] Make all movements instant applied.
* Drop delayed moves list in Map code
* Apply movement coords update always at call including movement to different cell/grid.
* Instead removed functionality mark creature as need move notify broadcast at next tick, do it.

This must resolve porblesm with CreatureRelocation in past not always update position to new expected at call
And in resul next code fail or work in strange way. Mark creature for notifier call at next Update
let safe main part remopved functionality implemented in another way: prevent cascade (or infinity chain)
in move updates. In fiture possible implement move notify call not at each tick for save time.
2010-02-18 01:09:33 +03:00
VladimirMangos
e74f62ea31 [9404] Fixed glyph apply with with specs.
This resolve problem when glyph rejetect applied
at some spec if it applied already at another spec.
2010-02-18 00:59:11 +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
NoFantasy
5c05280c44 [9402] Add enum SpellEffectIndex to use with explicit effect index checks
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-17 16:52:44 +01:00
VladimirMangos
54559b5c03 [9401] Resolve porblems with waypoints moved/etc after [9400]
* Move movegen Interrupt/Reset calls from CreatureRelocation that called and from another movegens.
* Add this called to NearTeleportTo creature case and new MonsterMove* functions that considered
  as special moves similar instant movegens.
* NearTeleportTo/MonsterMove functions recomended used instead explicit use CreatureReolcation+SendMosterMOve pairs
  for proper reaction at movement from creature movement generators.
2010-02-17 17:22:43 +03:00
Lynx3d
c044d64618 [9400] Creature relocation acts like instant movement generator, so current generator expects interrupt/reset calls to react properly.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-16 23:09:28 +03:00
VladimirMangos
d536661cbf [9399] Simplify config options loading code. 2010-02-16 22:14:20 +03:00
VladimirMangos
d20e50a8e5 [9398] Some config enmus fixes. 2010-02-16 16:08:16 +03:00
VladimirMangos
f9db93e78b [9397] Fixed unexpected rounding in healamount = healamount * int32(TakenTotalMod); 2010-02-16 00:28:12 +03:00
Splinet
9e4829ecef [9396] Fixed compilation mysql_to_pgsql on *BSD.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2010-02-15 22:21:14 +03:00
AlexDereka
9653831074 [9395] Update cmake for mysql_to_pgsql. 2010-02-15 22:03:18 +03:00
marintrica
500b91c049 [9394] Add expected spell ids to error output.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-15 21:53:50 +03:00
mns
1697b12406 [9393] Add init value to config.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-15 21:52:36 +03:00
Lynx3d
b2718378ef [9392] Update creature/gameobject pool at despawn instead spawn prepare.
This let solve problem with not despawned creature/gameobject at pool update in case when related grid not loaded.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-15 21:43:06 +03:00
AlexDereka
941b2edb10 [9391] Remove unused defanes in Configs enums. 2010-02-15 19:55:24 +03:00
hunuza
462117198e [9390] Remove unneeded mail related queries on character load.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-02-15 15:31:21 +01:00
AlexDereka
ebfb0f9835 [9389] Cleanup config data. Use proper names and expected types. 2010-02-15 15:29:06 +03:00
VladimirMangos
58d188f21a [9388] Implement max cast chain length for triggered spells.
* New config option MaxSpellCastsInChain ( 0 is disabled old way work )
* Check added for prevent stack overflow crashes in case infinity triggered casts sequences
  with more useful error output instead crash.
* Default config steeing in 10 casts expected to allow all possible in game proper cast chains.
2010-02-15 12:19:27 +03:00
AlexDereka
574f396b0d [9387] Fix commit [9386] 2010-02-15 00:20:29 +03:00
AlexDereka
5368751c13 [9386] Store some config values in Rate emun. 2010-02-15 00:17:44 +03:00
VladimirMangos
6e5b74e0ca [9385] Lost sql update from [9382] 2010-02-14 22:13:23 +03:00
VladimirMangos
f4c38044c4 [9384] Resore use uint64 instead time_t in query, some other fixes. 2010-02-14 21:35:03 +03:00
VladimirMangos
5beb853bc4 [9383] Move back from archive subdir 9010_01_realmd_realmlist.sql
This need for correct work git_id tool used by devs.
All last sql updates for specific DB mangos/characters/realmd must be in sql/update.
2010-02-14 18:39:40 +03:00
Odyssey
9280574c1b [9382] Some missing .reload all_* commands descriptions in mangos.sql
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-14 18:34:02 +03:00
AlexDereka
ccfd42bf3e [9381] Fixed some compile warnings. 2010-02-14 18:16:07 +03:00