Commit graph

447 commits

Author SHA1 Message Date
Den
706c97c943 [11453] Fixed tier 8 4p bonus affect work
Also small spells ordering fix in `spell_proc_event`.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-09 05:50:24 +04:00
stfxpi
0c33b7bedf [11452] Implement spell 14537 effects.
Also re-add in correct way sql update for prev. commit.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-09 05:30:46 +04:00
BThallid
7237fe7f62 [11436] Really save/load item 5/6 objectives counters in quest status.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-08 01:55:32 +04:00
VladimirMangos
8807af4a18 [11433] Remove remains 'internalItemHandler' as default in past item script name. 2011-05-07 18:38:42 +04:00
TOM_RUS
e39a8b55a0 [11391] Auction: multi sell, sale pending list and other fixes. 2011-04-24 21:57:49 +04:00
zergtmn
2835aa5f20 [11385] Add support for static vehicle spawns
Signed-off-by: zergtmn <zerg@myisp.com>
2011-04-20 23:23:47 +06:00
mns
531103b9e5 [11348] Ignore spell power for item spell 43733.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-14 04:34:46 +04:00
Darkknight900
d83c75b555 [11337] Better wording. v1.01
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-12 17:57:13 +04:00
Schmoozerd
ea516bef45 [11335] Let npc info command display more information.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-12 13:59:26 +04:00
NoFantasy
3cd5a2fb9c [11312] Better wording.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-03 22:38:29 +04:00
VladimirMangos
b92ebd994f [11310] Make .npc add/.gobject add commands work safe.
Reserve at server startup some guods follow last used in static DB spawns guid
for creatures/gameobjects for use in .npc add/.gobject add commands.
This allow safe select guids not used in all map copies. Guids for temporary spawns
used from range frollow after reserved guids range.

This also let select new static spawns guids (added in game chat command) near to already used static guids.
So it let avoid gaps in static guids lists.

Amount reserved guids set in new GuidReserveSize.* config options.
2011-04-03 21:22:58 +04:00
zergtmn
4687fa8cb4 [11299] Handle aura durations in SpellAuraHolder
- Unit::CalculateSpellDuration split into two functions
    - CalculateSpellDuration taking into account combo points and caster-side spell mods
    - Unit::CalculateAuraDuration taking into account target-side spell mods
- Diminishing is now applied before duration reduction mods
- Implement saving per-effect periodic timers to DB (required for auras affected by haste)
2011-03-30 23:29:01 +06:00
Iriskin
a9b7f00a9e [11234] Fixed typo in .debug spellcoefs help string.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-03-09 17:20:58 +03:00
zergtmn
02c1bc6557 [11217] Drop effect indexes from *_addon.auras field 2011-03-05 01:50:49 +05:00
VladimirMangos
9312ef7e78 [11214] Implement .debug spellcoefs command
Command show default calculated and DB stored coefficients for spell direct/dot heal/damage.
2011-03-03 18:56:29 +03:00
Neveragain
bef47ce126 [11205] Implement talent 48492 and ranks.
Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2011-02-27 15:24:47 +01:00
Lynx3d
3f86c5a865 [11200] Move hard-coded AP coefficients for spells 1776, 8680, 13218 and ranks to spell_bonus_data table. 2011-02-23 13:06:29 +01:00
VladimirMangos
c7eb17b912 [11190] Implement pool_creature_template/pool_gameobject_template.
New table similar `pool_creature`/`pool_gameobject` but store creature/go ids
instead guids. At loading to poll added all guids for specific entry id.
This let not list explictly guids when need list in pool all guids for some entry id.
Mostly for quest pool spawns or unique creature/go random possitions for example.

At load tested that guid added to pool using new tables data not listed in guid tables.
2011-02-20 07:35:14 +03:00
VladimirMangos
a6584c4401 [11169] Implemented pool system related commands.
.lookup pool $pooldescpart - list of pools (anywhere) with substring in description
.pool list   - list of pools with spawn in current map (only work in instances)
               Non-instanceable maps share pool system state os useless attempt get all pols at all continents.
.pool spawns - list current creatures/objects listed in pools and spawned (added to grid data, not meaning show in world).
.pool spawns #pool_id - list current creatures/objects listed in #pool_id and spawned (added to grid data, not meaning show in world).
.pool #pool_id - pool information and full list creatures/gameobjects included in pool
2011-02-15 14:43:46 +03:00
VladimirMangos
f73868a703 [11117] Allow for non-instancable maps have InstanceData and instance scripts.
* New table added for non-instanced maps (except BG/arena):
    - `mangos`.`world_template` (script mapping to non instanced data)
    - `characters`.`world` (saved script data string storage)

* InstancedData created for any map types including BGs/arenas, that allow have scripts
  state for any maps, but BG/arena instance data not saved.

Note: Possible structures will renamed later for clarify apply to any type maps,
but avoid for now for simplify changes and hard affect to script library sources.
2011-02-08 04:15:13 +03:00
blueboy
332c4174d2 [11116] Fixed sql update guards data.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

silverice, please use git_id -s instead manual editing for sql updates ;)
2011-02-07 14:34:11 +03:00
Lynx3d
24164ef020 [11058] Add 2P bonus of item set 894 and 4P bonus of item set 884 to spell_proc_event 2011-01-21 14:35:50 +01:00
VladimirMangos
bf04f46011 [11040] Fixed spell bonuses apply to healing from 58757
Thanks Lynx3d for help in patch writing.
2011-01-18 21:59:20 +03:00
Lynx3d
b46731ff7c [11036] Update some data in spell_threat, making use of the new parameters
NOTE: Most lower rank data more or less guessed due to lack of reliable data!
2011-01-18 14:00:33 +01:00
x3n
d35be7f4c1 [11023] Implement support for threat multiplier and AP based threat bonus for spells.
* Higher ranks are now automatically filled when not listed in spell_threat
* Added some loading checks to detect inconsistent data

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2011-01-17 12:55:24 +01:00
VladimirMangos
f1957ab478 [11018] Fixed security leveld for 'send mass mail' in DB. 2011-01-16 22:26:02 +03:00
VladimirMangos
6a8af38e68 [11002] Implement 8 pieces effect of itemset 204. 2011-01-13 10:50:33 +03:00
VladimirMangos
b7f4a41fcd [10998] Re-write work proc of stackable spells with charges in more simple way
Some spells have procCharges > 0 and in same time maxStack > 1. It's support has been implemented more year ago
but current way work with single aura from stack remove at proc always made some spells work wrongly
(7 spells (with ranks) in 3.3.5a). In fact only 3 spell (with ranks) need this "one from stack" way and
all form its have similarity: Its apply max stack from start and decrease stacks at proc hit.
Another prove for correctness this way: in 2.x exist single spell with charges and maxstack that expect full aura stack remove.

So implemented opposition way: normal aura proc remove always full aura holder stack.
Special 3 cases have overwrite code for work with stack in correct for its way.

Fixed work:

* items 31857 and 50259
* recipe 46027 effects.
* talent 63730 and ranks

Affected by code changes talents 51528 and 55166 tested and work.

Spell 34026 use similar decrease stack at hit but req. independent patch for full implemention, so not work.
2011-01-11 05:15:51 +03:00
Iriskin
52c4accb99 [10993] Fixed typo in recently add DB field comment.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-10 01:05:32 +03:00
VladimirMangos
39e7b19267 [10989] Implement post-3.1 and later fishing changes.
* Fishing now prowide junk loot at fail skill check.
  This can be disabled for old way work using SkillFail.Loot.Fishing option.
  Junk loot expected to be listed in fishing_loot_template entry 0.

* Fishing can gain skill grow at skill fail check case.
  Controlled by SkillFail.Gain.Fishing option.

* Fishing from fishing pool gameobject can't be fail.
  Controlled by SkillFail.Possible.FishingPool
2011-01-09 14:37:56 +03:00
VladimirMangos
d2b3977fee [10988] Propertly note for not loaded script library version.
* Better support localization in case built-in version notes.
* Move script library version functions to ScriptMgr
2011-01-09 06:06:52 +03:00
VladimirMangos
6b9de2c958 [10973] Implement game event mail sends at event start/stop.
Also implement save game event state to DB mostly for avoid
send mails at resume game event after server downtime.

Thanks to X-Savior for inspiring and original research.
2011-01-06 12:40:15 +03:00
VladimirMangos
da228b707d [10972] Implement mass mail gm commands.
* New comamnds mirror related normal sedn commands:
   - send mass items
   - send mass mail
   - send mass money

* Instead player name it expect or numeric racemask or textual race/team name or 'all'.
2011-01-06 06:55:51 +03:00
Lynx3d
32649abe6b [10951] Add some missing spell_proc_event entries for set bonuses.
- set 898, 4 pieces
- set 891, 2 and 4 pieces
- set 889 and set 901, 4 pieces
2011-01-03 01:07:30 +01:00
VladimirMangos
9ae7104251 [10950] Check for scripting lib that it build with exactly same mangos rev.
This prevent use outdated script DLL with hidden possible incompatibilities
in used from core inline functions  or defines.
2011-01-02 20:19:21 +03:00
NoFantasy
0da3463758 [10949] Fix the word accessable -> accessible in log message
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-02 01:30:21 +01:00
siduskana
984f690e71 [10946] Drop redundent spell_proc_event data.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-01 18:50:50 +03:00
VladimirMangos
84b5ee3b43 [10945] Restore check scripting lib API at load.
Also report result of script library load/reload to chat/console.
2011-01-01 18:39:09 +03:00
VladimirMangos
d38df50a7e [10932] Imporvments gameevent creature morphing.
* Table `game_event_model_equip` renamed to `game_event_creature_data`
* Table allow now store same creatures for different events, BUT
  expected that related events no active in same time.
* Added possibility switch entry at gameevent time.
  This let have diff factions/loot and etc for creatures.
* Added possibility cast spells at gameevent start/end.
  Exist some spells that expected casted to creature at gameevent start
  for model replace, and for animation in other cases.

Note: `game_event_creature_data`.`modelid` field posisble will removed soon in fowor related spell use.
      Ofc, when spells will implemented in core.
2010-12-29 01:38:49 +03:00
Lynx3d
edfddc06fa [10906] Fix Glyph 45806 to trigger from 49184 and ranks instead of unrelated spells.
Also fix attack power coefficient for 49184 and ranks.
2010-12-22 01:06:19 +01:00
Den
07172bc5ae [10883] Implement item 49982, 50641 equip effect
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-17 16:13:15 +03:00
VladimirMangos
1d8f222621 [10867] Implement templates for trainer spell data in npc_trainer_template.
New table let avoid duplication similar trainer spells for different trainers.
2010-12-13 16:39:53 +03:00
VladimirMangos
9b3535f803 [10864] Implement itemsets 881, 882 at heal/damage target effect. 2010-12-12 11:19:50 +03:00
Den
fefa8ab9db [10863] Fixed triggering/use effects for item 54589, 54573, 37734, 32500, 28590.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-12 10:23:08 +03:00
Quriq14
c7205a6837 [10862] Fixed not show and lost mail items in returned expire mails.
Also
* Use typename for mail item info vector.
* Include tools/characters_mail_items_cleanup.sql for cleanup lost mail items.
  It also included as sql update part. Sql update also fix receiver for stored
  in DB expired mail items.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-12 09:10:08 +03:00
Lynx3d
4cf8c0cf47 [10835] Add/correct a couple more spell_proc_event entries for trinket related spells
*Affected items: 45131, 45219, 50359, 50366, 50360, 50365,
          50353, 50348, 50362, 50363, 50342, 50343, 50358
2010-12-08 01:31:48 +01:00
VladimirMangos
0c8a7c3826 [10788] Replace bytes in single field bytes2 by independent fields for creature_addon. 2010-11-27 23:56:08 +03:00
Lynx3d
28ccd9975d [10786] A bit spell proc housekeeping
* PPM values for enchanting spells 13898, 20029, 20032, 44524, 44576
* Correct cooldown for enchanting spell 59625
* Add procEx and cooldown for item 50198
2010-11-27 00:52:41 +01:00
insider42
a34deecfc0 [10764] Implement talent 44543 and ranks charges work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix IGNORE_UNIT_TARGET_NON_FROZEN in part allow casting spell that required frozen target.
2010-11-21 05:32:17 +03:00
insider42
f7b4b88e02 [10762] Implement SPELL_AURA_IGNORE_UNIT_STATE (252).
Original patch provided by Wojta

Note: From patch excluded talent 44543 and ranks stacking code.
      It look like need another implemention different from suggested,
      or at least more research.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

In patch added enum IgnoreUnitState and related checks now more cheating protected.
2010-11-21 01:42:25 +03:00