Commit graph

2841 commits

Author SHA1 Message Date
NoFantasy
b56a088d6d [9441] Add dummy effect of spell 50133/43882
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-23 18:37:27 +01:00
VladimirMangos
6295275529 [9440] Store in plauer spell list structure instead pointer.
Just not reason in element persistanse storage as std::map
store pointer to structure with size < 16 bits.
2010-02-23 19:11:52 +03:00
DasBlub
528b2cf324 [9439] Auto-exclude from git tracking changes any non universal binding subdir files
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also resolve small exclude conflict for dep subdir.
2010-02-23 04:36:46 +03:00
NoFantasy
2475c4aa00 [9438] Add base code of effect for spell 45668, but in commented form.
The spell triggering 45668 need to be corrected before it can trigger this as expected.
2010-02-23 02:34:02 +01:00
VladimirMangos
0dfc2093d5 [9437] Move waypoint's GetResetPosition function body to .cpp. 2010-02-23 04:16:48 +03:00
Timawyn
d62336cec2 [9436] Correctly display the party leader's name in chat
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-02-22 23:49:23 +01:00
VladimirMangos
d3fc17a81d [9435] Avoid useless creature running around at evade
* If creature near respawn point and by defult do random movement
  then restart from current point
* If creature have default waypoints movegen restart from last
  updated point. Not reload waypoints
2010-02-22 22:56:13 +03:00
VladimirMangos
f47f5a1deb [9434] Prevent crash at script call that modify movegen list at MovementInform call. 2010-02-22 22:04:08 +03:00
VladimirMangos
244d25189c [9433] Implement detection subzones 4716 and 4740 of zone 4395. 2010-02-22 18:53:49 +03:00
patman128
ebee99c396 [9432] Propertly show zone coords in .gps after recent changes.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-22 18:53:27 +03:00
NoFantasy
548a656a76 [9431] Remove dummy effect (old code and wrong) of spell 34665
Let script handle dummy effect like expected for this type.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-22 16:49:07 +01:00
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