Commit graph

152 commits

Author SHA1 Message Date
VladimirMangos
ab2bdc3e69 [7518] Implement new script command SCRIPT_COMMAND_PLAY_SOUND (look in World.h for args)
* Also rewrite use SMSG_PLAY_OBJECT_SOUND/SMSG_PLAY_SOUND
  Now WorldObject have 2 function for sound level dependent from distance (PlayDistanceSound)
  and for not depednet (PlayDirectSound)
* Old Player::PlaySound function removed and uses need to be updated to WorldObject functions
  Note: function called for _source_ of sound in different from old function.
* chat command .debug ps removed and .debug playsound can used for bother packects test:
  if no selection used SMSG_PLAY_SOUND, if selection exist including self then SMSG_PLAY_OBJECT_SOUND.
2009-03-23 00:27:01 +03:00
tomrus88
28dc20c6e2 Small code cleanup and partial merge with dev branch 2009-03-21 19:07:38 +03:00
Seline
ebd292a226 [7499] Implement post effect for DoT spell 41917
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-19 22:48:06 +03:00
Seline
5a2c08ed7f [7498] Implement GO spawn part of spell 39837 work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Small fix in GO spawn duration. Aura remove at GO remove fixed in prev commit.
2009-03-19 22:13:47 +03:00
VladimirMangos
9ddb37c6c1 [7484] Cast proper triggred spell at spell 27808 tick. 2009-03-18 10:51:55 +03:00
Lightguard
bde638ace7 [7476] Implement druid's talent 61336.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Some improvements added to patch. Related cleanups.
2009-03-17 01:27:16 +03:00
VladimirMangos
c99a849eb9 [7475] Move Player::IsInFeralForm to Unit::IsInFeralForm 2009-03-16 23:22:52 +03:00
VladimirMangos
f4e37fa566 [7471] Ignore player target case for spell 29528 instead error reports in log. 2009-03-16 20:17:53 +03:00
VladimirMangos
e904d7c2c0 [7469] Allow scripting aura spell triggering in case not existed spell. 2009-03-16 18:24:06 +03:00
VladimirMangos
037840d5ba [7451] Implement correct work SPELL_AURA_PERIODIC_MANA_LEECH for percent mana cost spells.
This is fix work of spell 3034 and 5138.
2009-03-13 19:23:13 +03:00
VladimirMangos
329fb3f9d1 [7440] Use server-side only zone info. Optimize related calles in case zone and subzone use.
This in some cases make some zones not explorable if it not have server side data in current maps
but not allow cheating with zone set from client.
2009-03-11 10:08:12 +03:00
DiSlord
6a90d60327 [7428] Add new .map file format use more compact data store and use
Rewrite .map extractor
 + extract more useful data
 + add "-f 0" option for disable size/accuracy optimisation
 + Compatability vs 2.4.3 client data
More fast get .map data
Implement fatigue timer
Rewrite breath timer
Allow absorb/resist for lava/slime environmental damage

Need re-extract map for work.

Signed-off-by: DiSlord <dislord@nomail.com>
2009-03-09 19:38:35 +03:00
VladimirMangos
4dad8f40d0 [7419] Fixed some type convertion warnings. 2009-03-09 08:23:25 +03:00
balrok
54f2dbefa0 [7403] much more unneeded includes removed
now i extended my script:
NAME="Chat"; ack -c $NAME | ack ":1$" | sed 's/:1//' | xargs /usr/bin/ack-grep -l "include \""$NAME".h\"" | xargs /bin/sed -i '/include "'$NAME'.h"/d'

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-08 02:22:17 +03:00
VladimirMangos
fee3278e57 [7376] Allow store in spell_area.aura_spell negative values for "not has aura" requirement.
Also
* Allow have in aura_spell spells with SPELL_AURA_PHASE in first effect.
* Allow negative aura_spell chaining in spell_area table.
* Better check at loading duplicate data (by requiremnt set) in spell_area table.
2009-03-04 01:27:56 +03:00
VladimirMangos
2b10d8fd71 [7364] Really implenent server-side anti-cheating cooldown check for spells with SPELL_ATTR_DISABLED_WHILE_ACTIVE.
Move apply cooldown for like spells to aura apply (GO registering for owner in GO summon spell case)
Store "infinity" cooldown for like spells, ignore it at save and reapply it at aura loading.

Note: one problem still exist for like spells: at loading/far teleport spell icon lost diabled state at client.
      Need sedn some unknown data in SendInitialPacketsBeforeAddToMap or SendInitialPacketsAfterAddToMap for restore it state.
2009-03-01 10:21:47 +03:00
VladimirMangos
ed6123c804 [7363] Propertly set cooldown at server side for category spells at cooldown event send to client.
Also support item dependent cooldown set propetly at cooldown event send to client.
Last will used in follow potion cooldown delay in combat patch.
2009-03-01 10:14:45 +03:00
VladimirMangos
2b9eeb782e [7362] Use IN_MILISECONDS where appropriate, other cleanups. 2009-03-01 05:22:56 +03:00
VladimirMangos
1fca6de6f3 [7349] Implement spell cast depenences from area/quest.aura state store in new table spell_area.
* It allow store requirenments: area, active or rewarded quest (until possible another quest not rewarded),
  aura present at character, character race/gender.
* Listed spell can marked as auto-casted when fit requirents. In this case spell requirements checked at
  zone/subzone update (and then resurraction also), quest start/reward, dummy aura apply.
* Old hardcoded lines for similar check removed from sources and required DB support for work now.
2009-02-27 11:15:36 +03:00
VladimirMangos
ab7b358d44 [7321] Remove frozen aura state at aura remove only if not other frozen auras. 2009-02-22 00:00:25 +03:00
Tassader2
011bd0c1de [7317] Fixed units not considered frozen when stunned from frost auras.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-21 11:22:50 +01:00
VladimirMangos
a47330e3e4 Update spell auras list for 3.0.9 2009-02-19 19:11:18 +03:00
Maxxie
1fa4ecf482 [7294] Fix: Spell 59752 now removes all movement impairing effects and all effects which cause loss of control.
(cherry picked from commit 2a2167021c751201c6884c336cfe31b881357bef)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-18 01:18:22 +03:00
DiSlord
12e27aecee Fix work for some auras if used mod set duration to 0
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-17 20:36:18 +03:00
GriffonHeart
1fb8a52032 Propertly send SMSG_SET_PHASE_SHIFT to inform client about phase shift at phase change.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-15 12:00:47 +03:00
VladimirMangos
2817f301ad [7281] Cleanup in unused and incorrectly marked as unused aura names and comments. 2009-02-15 09:34:35 +03:00
DiSlord
56e97b4d9e [7280] Implement 287 SPELL_AURA_DEFLECT_SPELLS aura
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-14 19:08:06 +03:00
domingo
6b715047a7 [7274] Fixed work of warrior talent 12296.
* Proper tick in 3 sec
* Replace amount calculation hack by more proved formula.
* Ignore in combat state.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-13 08:59:26 +03:00
freghar
f04ec2b98b [7272] Trailing whitespace cleaning
The "please use git diff --check before commit" thing.

Signed-off-by: freghar <compmancz@gmail.com>
2009-02-12 15:14:40 +01:00
VladimirMangos
fb6fe325bf [7258] Fixed access to field of possible deleted periodic aura. 2009-02-10 06:14:52 +03:00
VladimirMangos
5e2553ff7e [7239] Support multiply items loot and not normal loot items in Player::AutoStoreLoot.
Use this function in more cases and simplify and fix some related code.
2009-02-07 10:34:11 +03:00
VladimirMangos
7d63f4ce02 Fixes and cleanups in loot code.
* Move not-normal loot tables generation in single place (Loot::FillLoot function) for group and non group case.
* Simplify LootView code.
2009-02-07 10:34:02 +03:00
KiriX
0f8c1ccd58 [7222] Revert "[7206] Not set creep walking mode for recial stealth ability 58984."
This reverts commit a261afd5f08ef9773d0af83b4286b19d4172a4ae.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-02 23:43:30 +03:00
DiSlord
419f86e939 Set only one charge for 54741 mage spell
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-31 20:37:28 +03:00
VladimirMangos
aa24bd836e [7207] Phase system development continue for DB/in_game objects
* Store phase mask for creatures/gameobjects/corpse in DB
* Propertly set phase for summoned creatures/gameobjects/pets/corpses/spell related dynobjects
* Select proper phase for spawned creature/gameobjects and save it in DB

TODO: in game commands.
2009-01-31 06:11:50 +03:00
VladimirMangos
b5da610388 Phase system development continue.
* Use WorldObject phase mask field instead explicit aura scan. This allow have phase for any world objects.
* Add phase checks to packet broadcasters/object searchers. This let correctly work say/yell/area
  and multi/random target spells/aggro assistance in phased areas or target selection.
* In GM-mode character presense (see and visible) in all phases except normal visibility efects including GM-visibility.

TODO: summoned objects phase set base at owner phase, load phase mask for creatures/gameobjects from DB, in game commands.
2009-01-31 06:06:01 +03:00
KiriX
0c43a425e8 [7206] Not set creep walking mode for recial stealth ability 58984.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-31 05:56:05 +03:00
VladimirMangos
a1b5c3cb02 Cleanup code for UNIT_FIELD_BYTES_1 parts.
Move defines to Unit (values can be used with creatures)
Better gameobject barber chairs check at loading.
2009-01-31 05:55:10 +03:00
DiSlord
b6a2f2ece2 use m_amount as item count for Aura::HandleChannelDeathItem
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-29 20:40:32 +03:00
DiSlord
80d9bb4ba6 Add new ranks for some hunter sting
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-29 20:39:40 +03:00
DiSlord
59861857e5 Replace values by defines
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-29 20:38:26 +03:00
DiSlord
727773e797 Allow dispell positive spells by mechanic on get mechanic immune aura
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-29 02:50:44 +03:00
DiSlord
b7c5513f2c Implement AURA_STATE_ENRAGE
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-29 02:50:39 +03:00
DiSlord
4ecfbcc2f5 Use spell_bonus_data table for store custom damage/healing bonus coefficients
Big thanks ApoC for help create table.
Fixed bonuses for stacked periodic
Warning need test all coefficients for correct bonus amount.
TODO:
 use this table for absorb bonus calculation
 use this table for melee spells AP bonuses
 use chain multipler in final damage/heal amount

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-28 02:23:16 +03:00
DiSlord
6d9a099a19 Rename some auras
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-28 02:13:09 +03:00
VladimirMangos
430c634fd3 [7195] Implement SPELL_AURA_PHASE (261) and basics of phases system work (for player/creatures/pets only) 2009-01-27 19:17:52 +03:00
DiSlord
170a0aaf3b [7190] Rewrite code for Unit::SpellHealingBonus (no big changes)
Implement SPELL_AURA_OVERRIDE_CLASS_SCRIPTS auras for healing mod
Remove dead code
Implement SPELL_AURA_MOD_HEALING_RECEIVED aura

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:13:12 +03:00
DiSlord
5ef636dab7 Remove warrior debuff after some auras end
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:12:14 +03:00
DiSlord
702105ccca Remove not need code (implemented by another way)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:12:08 +03:00
DiSlord
249d039d93 Implement 50 PELL_AURA_MOD_CRITICAL_HEALING_BONUS aura
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-26 22:11:40 +03:00