Commit graph

753 commits

Author SHA1 Message Date
NoFantasy
787fb83763 [10303] Clarify bool used for script call ProcessEventId
isStart is default true. For transport/taxi cases, it may be false for event id's at arrival (event id ending)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-01 02:19:31 +02:00
VladimirMangos
4f19017872 [10300] Fixed some strange GetAura arg values. 2010-07-31 21:46:24 +04:00
NoFantasy
2ad9cd34b2 [10299] Add new script call ProcessEventId
Let script library know when some event is about to start. Event id's may be found in several sources, such as spells, GO's and transport/taxi paths.
Database scripts may be prevented by returning true from script side whenever needed. If false, DB script will run like normal.
New database table event_id_scripts will need a ScriptName for the event id, in same way as for example areatrigger_scripts.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-31 17:52:38 +02:00
dpedroia15
181428e132 [10295] Add dummy effect of spell 24930
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 19:30:09 +02:00
NoFantasy
25d9fd265b [10293] Correct a not exitan...non-existin... a word that is often spelled wrong
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 18:26:08 +02:00
Lynx3d
33e7d46519 [10248] Implement applying proper penalty spell when making use of talent 46917. 2010-07-23 07:45:57 +02:00
Lynx3d
a4a6a7a609 [10237] Implement additional damage proc on hit for Spell 8024 and ranks. 2010-07-21 03:19:52 +02:00
pasdVn
d59cd7c2f2 [10233] Fixed check in SpellAuraHolder::HasMechanicMask
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-20 15:05:47 +04:00
Laise
d8c1374fcd [10232] Fix mechanic-related check, thanks to VladimirMangos 2010-07-20 13:20:35 +03:00
Lynx3d
01d326b90d [10202] Rename isInFlight() to IsTaxiFlying() and UNIT_STAT_IN_FLIGHT to UNIT_STAT_TAXI_FLIGHT.
Also add IsFreeFlying() function to Player class.
2010-07-17 02:06:28 +02:00
Laise
ae51168ffc [10199] Fix 33763 and ranks final heal and mana return on dispel and on expire 2010-07-16 21:35:00 +03:00
virusav
a27ecef96d [10195] Some gender dependent spells
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-15 05:32:46 +04:00
VladimirMangos
04ec18afce [10187] 2 non-sense code lines cleanup. 2010-07-13 03:55:52 +04:00
Lynx3d
5e89098a61 [10165] New collission system (vmap) implementation
Important:
* You have to re-extract and assemble vmaps
* Update your config file, new option 'vmap.enableIndoorCheck' added

New features:
* Include WMO+DBC area information for correct subarea identification and indoor check
* Support for WMO liquid (fishing/swimming in cities, instances and oterh WMO based environments)

Technical changes:
* New Bounding Interval Hierarchy (BIH) data structure for better performance
* Referenced model data for reduced memory usage,
  needs more files, but reduces overall file size from ~1.9GB to ~550MB

Additional Authors:
arrai (DBC handling and indoor detection)
faramir118 (windows support and bug investigation)
And of course thanks Vladimir for a lot of patience and support!
2010-07-08 23:17:26 +02:00
Lynx3d
0096bf6ebb [10157] Fix makefile and make gcc happy. 2010-07-07 19:31:23 +02:00
Laise
a32b3063a2 [10156] Add shared object for auras of same spell and move spell proc code to its own file, also spread procs by auras and effect indexes. 2010-07-07 19:08:26 +03:00
NoFantasy
abe6776358 [10155] Add script effect of spell 66744
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-06 15:15:23 +02:00
NoFantasy
4024a1c50c [10121] Add a few comments about DYNAMICOBJECT_BYTES + fix typo in one. 2010-06-29 12:23:29 +02:00
NoFantasy
b8540cf04d [10116] Remove some wrongly initialized fields for dynamic object.
This will correct visual appearance of spells like for example id 26573.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-28 12:55:39 +02:00
NoFantasy
3eb2d2910e [10112] Rename GetObjectSize function to GetObjectBoundingRadius
To reflect better what the function should actually return and also to clarify when used in misc calculations.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-27 14:14:23 +02:00
VladimirMangos
b8246b1dbb [10100] Fixed some cases assign low guid to full guid update field. 2010-06-23 10:51:38 +04:00
SilverIce
e427ce80cc [10052] Camera System
(based on SilverIce's repo commit 4f2f4ab + next 3 more)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-14 07:23:03 +04:00
VladimirMangos
64f959fb82 [10050] Implement apply non-trade slot item enchanting at trade complete.
Base at original patch provided by arrai.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-11 22:46:16 +04:00
Insider42
d757ba2a73 [10040] Expected RAP bonus to damage for spell 1510 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-06 22:15:27 +04:00
sixsixnine
2ca1b3fcea [10037] Fixed poison consume by spell 32645 and ranks.
It will consume only caster casted poisons.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-06 19:09:31 +04:00
Ceris
7ed98198a7 [10022] Fix damage for 14278 and 16511 and ranks when dagger is equipped
Signed-off-by: Laise <fenrisse@gmail.com>
2010-06-02 18:39:59 +03:00
NoFantasy
e0ccfef7ef [10005] Add script effect of spell 41055 and 45206.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-29 15:55:51 +02:00
NoFantasy
716afa0e4b [10004] Add script effect of spell 43365, 50217, 50218 and 50238.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-29 15:51:12 +02:00
XTZGZoReX
d6ea8e35ab [9999] Remove a piece of trailing whitespace. 2010-05-28 17:53:20 +02:00
VladimirMangos
86bef7ace5 [9984] Implement item 43214 work.
* Original version suggested by timmit.
* Required DB support for target requirement.
2010-05-27 19:14:02 +04:00
VladimirMangos
f0b1c5bd74 [9958] Implement item 34753, 43015, 43478, 43480, 46887. 2010-05-23 00:32:58 +04:00
VladimirMangos
94f7a7709d [9956] Spell 45524 expected apply debuf 55095 to target at cast. 2010-05-22 16:19:29 +04:00
NoFantasy
7151b4e538 [9948] Remove a few not needed checks in spell script effect
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-21 09:28:37 +02:00
VladimirMangos
2591a2333a [9947] More skinning fixes.
* Restore work with money loot.
* Old code sometime generate empty loot windows for normal loot and sometime skip its.
  Code changed to be more consistent. Added new option Corpse.EmptyLootShow that control
  show empty normal loot window in some cases enabled by default:
   - if creature expected to be lootable but loot generated empty by some reasons.
   - if creature can be skinnable
  If option disabled thne code attempt avoid empty normal loot windows for empty cases.
* Possible fixed case instant despawn non-skinable creature after normal loot complete.
2010-05-21 11:10:59 +04:00
j4r0d
c2fc89c86c [9946] Prevent remove unexpected for remove spell at cast 35729.
Also drop removed spell call for spells 19574/34471.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-21 07:55:36 +04:00
VladimirMangos
33c9af577c [9945] Update mangos_spell_check.sql
* Add all data from Spell.cpp
* Add missing data from recent commist for added parts of SpellEffect.cpp
2010-05-21 07:33:52 +04:00
NoFantasy
bca866cd8c [9943] Add a small delay for npc despawn related to spell 51840
This will solve problem with summoned GO that does not appear before later, but does not solve problem with visual effects (which is a generic problem with many spells).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-21 00:14:53 +02: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
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
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
Insider42
2edc375e48 [9877] One more meteor-like spell.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-12 05:26:10 +04:00
zergtmn
aa8a36afd4 [9873] Drop outdated code for 18788
Signed-off-by: Laise <fenrisse@gmail.com>
2010-05-11 16:19:21 +03:00
Insider42
a4c5734256 [9872] Update damage/energize calculation for 1454 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-11 14:48:04 +04:00
VladimirMangos
3a2c28ca68 [9866] More weapon damage split spells. 2010-05-11 10:47:55 +04:00
Insider42
c4ee01422d [9865] Add support split damage for spells 66765, 67333.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also small cleanup in mangos_spell_check.sql
2010-05-11 10:30:16 +04:00
MaS0n
4e8c18e9de [9863] Implement SPELL_EFFECT_BREAK_PLAYER_TARGETING (93)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-11 08:09:41 +04:00
NoFantasy
a0d9ffcc5f [9860] Add script effect of spell 54182
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-10 20:43:03 +02:00
NoFantasy
8c81f0d058 [9859] Add dummy effect of spell 51964
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-10 19:56:57 +02:00
Laise
884e4f8ecc [9858] Restore work of 1064 and ranks, broken in [9854] 2010-05-10 19:30:09 +03:00
NoFantasy
aff0d77692 [9856] Add dummy effect of spell 51840
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-09 23:15:49 +02:00