Commit graph

1119 commits

Author SHA1 Message Date
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
VladimirMangos
2f7db4801e [10953] Add changes from [10949] to mangos.sql 2011-01-03 15:20:59 +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
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03: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
cb1e82d663 [10943] Fixed mangos.sql after rename table to game_event_creature_data 2010-12-31 00:27:37 +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
801fcca274 [10877] Traditional 'Waypoint' post-fix in mangos.sql 2010-12-14 19:31:25 +03:00
Neo2003
9b5dd492da [10869] Fixed typo in mangos.sql added in recent commit.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-13 17:35:54 +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
b6ea36192e [10829] Update SpellFamily check functions.
* Move SPELLFAMILY_* to DBCEnums.h and name it as SpellFamily
* Use enum in Unit::GetAura, move family mask code to new SpellEntry helper function.
* Avoid all auras scan in search of triggred spell for 20243.
2010-12-06 08:40:39 +03: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
VladimirMangos
525836734c [10783] Fixed comment in characters.sql 2010-11-25 17:00:10 +03: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
VladimirMangos
f671f09950 [10753] Lost mangos.sql changes in one from recent commits. 2010-11-20 02:59:50 +03:00
VladimirMangos
6154cb3b43 [10749] Convert Gameobject owner to objectguid use. 2010-11-19 20:55:19 +03:00
VladimirMangos
f034a9bd0a [10746] Use objetguid for other .list auras command part 2010-11-19 17:06:33 +03:00
insider42
355f172fc6 [10743] Add AP/RAP bonus data to spell_bonus_data.
Also remove related hardcoded cases.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 06:03:19 +03:00
QAston
f27741460f [10742] Add spell_bonus_data.spell_bonus_data field and support for RAP bonuses use for spells damage from table.
Thanks to insider42 for prepering patch for mangos repo.

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

Also added loading check for redundant ap/ap_dot data in table.
2010-11-19 05:23:29 +03:00
NoFantasy
f5e40a5fda [10726] Correct one SQL in tools, table was renamed.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-16 08:54:18 +01:00
NoFantasy
7032423d6f [10704] Add the option to close gossip window in gossip system
Field action_menu_id in gossip_menu_option table can be set to -1 where close gossip is expected, instead of sending a new menu.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-08 23:18:58 +01:00
VladimirMangos
a163425b57 [10684] Fixed mangos.sql creature_template default content after adding vendor_id 2010-11-05 21:21:54 +03:00
VladimirMangos
2f144d9d29 [10682] New table 'item_convert' for convertion items.
* Implment vendor at show replace BoA item with reputation requirement
  by identical item without rep. reqs for player that fit this requirements
  of original item.

* Table also can be used for store item convertion data form one team items
  to similar other team items. This case not impement but added function easy
  used for it.

* Note: strict single convert for item not created problem for both way use:
  item converted for same team or all, can't be original item for conversion to
  another team.
2010-11-05 00:41:16 +03:00
VladimirMangos
0bf8b0aa79 [10679] New table npc_vendor_template for comon item data for diff vendors.
In vendor list show own vedor items + template ites if any.
Vendor template item lists selected by id stored in creature_template.vendor_id
2010-11-04 20:22:47 +03:00
Deleterios
549b44d8ec [10664] Rename arena_team_stats fields for better fit to stored values.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-01 02:37:10 +03:00
VladimirMangos
f48e768a70 [10662] Implement partly item looting
* Not deleted normal item loot at first loot window close.
* Save current item loot content to DB for later continue looting.
* Cleanup spell effect SPELL_EFFECT_OPEN_LOCK check code
* Cleanup Player::AutoStoreLoot calls
2010-11-01 02:04:08 +03:00
NoFantasy
449a708728 [10660] Make quest for game event be independent of source
Create new table and convert existing data.
Simplify how game event quests are activated during event by adding generic function to set quest active/inactive.
Any quest in game_event_quest are disabled until event start (and deactivated once stopped)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-31 11:35:09 +01:00
NoFantasy
a38f97f71c [10655] Add support for monthly quests
Quest that can repeated each month are set by quest_template.SpecialFlags |0x04 flag
Quest are reset at midnight the first day of each month.
Note: for the time being, quest must also be set repeatable (SpecialFlags |0x01)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-29 20:39:01 +02:00
NoFantasy
331a7e7f5b [10654] Allow creature to offer same quest for more than one game event
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-28 13:26:39 +02:00
VladimirMangos
31c9efd219 [10629] Drop function GuidHigh2TypeId
Added ObjectGuid version Aura::GetCasterGuid()

But for prevent big problen with backporting AuraHolder
to mangos-0.12 in most cases still used old uint64 version
Aura::GetCasterGUID.

Recommended use new version where possible in clean way
as done for some cases in commit already.
2010-10-20 09:12:43 +04:00
VladimirMangos
fdc5a1dd67 [10628] SQL update for prev. commit 2010-10-20 08:23:18 +04:00
VladimirMangos
c955941b55 [10627] Use ObjectGuid for player's selection and unit's target 2010-10-20 08:19:48 +04:00
NoFantasy
77b064e19a [10621] Add new field RequiredClasses for quest_template
* SkillOrClass is converted to RequiredSkill (and then field can contain skill id only)
* Field ZoneOrSort has no longer a function in quest requirement, and RequiredClasses must be used instead where class limits are expected.

To restrict a quest to one class or more, use bitmask of class in RequiredClasses. RequiredSkill works like before.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-19 00:33:16 +02:00
nos4r2zod
90e4480439 [10604] A couple more spell_proc_event entries for relics.
Missing items were 38360, 40714, 45509, 45144, 50454, 50455, 50456, 50457, 50458, 50459, 50460, 50461, 50462, 50464.

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2010-10-13 11:43:19 +02:00
Lynx3d
f41909a14b [10582] Add spell_proc_event data for some relic related spells.
Missing ones were 67356, 67363, 67365, 67379, 67381, 67384, 67386, 67389, 67392.
2010-10-06 22:57:02 +02:00
DasBlub
f3903d2261 [10568] Drop unused column 'realmid' from the table 'character_tutorial' 2010-09-30 22:51:39 +02:00