Commit Graph

116 Commits

Author SHA1 Message Date
megamage
2bddcc4303 [8251] Store in some DB tables only data for first rank. Author: VladimirMangos
* Allow add to DB data only for first rank in table `mangos_spell_bonus_data` and `mangos_spell_proc_event`.
    * Copy data for other ranks for speedup use at loading for this data and data from `spell_proc_item_enchant`.

--HG--
branch : trunk
2009-07-31 10:21:57 +08:00
QAston
2a402ff6c7 *Merge required after backout.
--HG--
branch : trunk
2009-07-30 11:52:40 +02:00
QAston
a07a3417e3 *Merge required after backout.
--HG--
branch : trunk
2009-07-30 11:51:48 +02:00
QAston
9c52a12e08 Backed out changeset 6ba74f274cb9 - mangos [8249]
--HG--
branch : trunk
2009-07-30 11:44:23 +02:00
QAston
7fa41e654d Backed out changeset 774aad302c74 - mangos [8247]
--HG--
branch : trunk
2009-07-30 11:42:43 +02:00
megamage
af2d5e3fd4 [8250] Cleanup code and data for spell_threat Author: nos4r2zod
* Load table data to std::map instead SQLStorage and add check loaded spell existance.
    * Drop from table not existed spells.

--HG--
branch : trunk
2009-07-30 11:37:08 +08:00
megamage
7121d98480 [8249] Implement support spell_proc_item_enchant table for ppm item enchantments triggering at hit.
* Added a new SQL table, spell_proc_item_enchant, for "custom" ppmRates on Item Enchants that do not use auras.
      With table data this must fix ppm for effect from 8033 and ranks enchanting, and item 6947/10918 and ranks enchanting.

    * Implemented SPELLMOD_FREQUENCY_OF_SUCCESS (26).
      That must fix work talent 14113, spell 32645 with ranks, glyph 41094 and item set effect 64917 in frequency part.

    Thanks to MaS0n as author alternative patch that partly used in this patch.
    Thanks to Thenecromancer as author alternative patch that ideas inspire MaS0n's patch writing and then this patch also.

Author: nos4r2zod

*Note: has been implemented before. Only use part of the patch.

--HG--
branch : trunk
2009-07-30 11:33:28 +08:00
megamage
6116231223 [8247] Some data for spell_bonus_data for DK spells. Author: nos4r2zod
I found TC seems to have these data. In the future *.tbd is used for review. Please do not apply them.

--HG--
branch : trunk
2009-07-30 11:15:04 +08:00
megamage
a94cccbf4d [8237] Apply attack power multiplier to creature bonus attackpower. Author: Lynx3d
Note: mindmg/maxdmg in creature_template expected including attackpower part in its.
    attackpower field only show part of attackpower not affected by AP multiplier.

    Thanks also to Seizer for take part in reseach and patch review.

--HG--
branch : trunk
2009-07-30 11:02:07 +08:00
megamage
5d9d64e6f0 [8229] Improve stealth detection code for player case. Author: Ambal
--HG--
branch : trunk
2009-07-30 10:38:53 +08:00
megamage
f9d0ccf857 [8215] Update sql/mangos_spell_check.sql. Author: VladimirMangos
--HG--
branch : trunk
2009-07-24 09:48:13 +08:00
megamage
f481e7b14d [8191] Drop code related to use long time empty spell_affect table. Author: XTZGZoReX
After switch to 3.x.x all data get explcitly from ClassMask fields in spell.dbc
    and no need in custom values.

--HG--
branch : trunk
2009-07-23 09:30:05 +08:00
megamage
ffcbd11b2c [8190] Update killing quest objectives base at creature_template KillCredit fields. Author: GriffonHeart
Note: for avoid double counting must be removed C++ scripts and EventAI scripts that do same thing in old way.

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

    Also implement KillCreditN field check at loading.

--HG--
branch : trunk
2009-07-20 12:30:37 +08:00
megamage
9b85919899 [8158] Update playercreateinfo_action base at UDB data for this table. Author: VladimirMangos
* Some fixes added for used UDB data base at not applied old mangos sql update and drop some wrong data.
    * Primary key added to avoid button duplicates for (race,class) pair.
    * This update expected to fix recently problems with empty action bars for new created characters

    Note: This sql update not affect existed characters.

--HG--
branch : trunk
2009-07-12 17:59:34 +08:00
megamage
d93977db11 [8145] Use constant name instead not-safe explicit value. Author: Ambal
--HG--
branch : trunk
2009-07-12 17:42:28 +08:00
megamage
6b40a74b4c [8115] Replace table contecnt by expected data from mangos.sql Author: VladimirMangos
For finally fix problem with new crated characters in addition to [8107].

--HG--
branch : trunk
2009-07-07 06:38:24 +08:00
megamage
e1d93bd00f *Backup your DB!
[8098] Support uint32 spell ids in code. Author: VladimirMangos

    * Propertly work with uint32 spell ids in player action bar
    * Fix in same time bug with not save equipment set button with id==0
    * Merge misc field in character_action and playercreateinfo_action to action field as 3 byte
    * Propertly load uint32 spell ids from character_spell
    * Fixed types for some pet/creature related structure for spell id storing.

--HG--
branch : trunk
2009-07-01 18:07:20 -05:00
megamage
d9ec2d2196 [8072] First step to get rid of data blob.
Adds new fields gender, level, xp, money, playerBytes, playerBytes2 and playerFlags to characters table.

    The update will not work if your database contains characters with an old data field (not fitting to the actual client version).

    It's recommended to backup your character database before applying this patch.

--HG--
branch : trunk
2009-06-27 17:39:51 -05:00
megamage
e4cfd63181 [8067] Fixed tabs and trailing whitespaces in code. Author: VladimirMangos
--HG--
branch : trunk
2009-06-27 17:10:17 -05:00
megamage
fe89fbfbdb [8057] Move code from Event AI to class Creature function for reuse in other scripting cases. Author: NoFantasy
--HG--
branch : trunk
2009-06-27 15:37:33 -05:00
megamage
d401ede8f2 [8051] Fixed some drinking mana regen spells. Author: bobaz
--HG--
branch : trunk
2009-06-27 15:27:09 -05:00
megamage
a2f10c496f [8030] Fixed spell 64901 work and related target selection code refactoring. Author: VladimirMangos
* Replace 64904 by 64901 in spellbook and action bars.
    * Implement proper max mana percent buff
    * Implement proper target selection.
    * Move group/raid targets seelction code to functions for reuse code.

--HG--
branch : trunk
2009-06-17 18:35:40 -05:00
megamage
e489988bf4 [8021] Implement triggering part of shaman talent 51483 and ranks. Author: Beaste. sql by QAston
--HG--
branch : trunk
2009-06-15 23:17:48 -05:00
megamage
00f4a31b73 [8016] Work at npc click table data use. Author: VladimirMangos
* New fields in `npc_spellclick_spells` for allow set npc spell click mode from quest to infinity
      or to another quest, or from reward quest.
    * Not expect (and forbid set UNIT_NPC_FLAG_SPELLCLICK in DB and set it at `npc_spellclick_spells` loading.
    * Apply some speedups for creature checks affected by spel click state

*Also add target position of 51852. By Roland

--HG--
branch : trunk
2009-06-15 23:07:43 -05:00
megamage
5f9cc4138b [7994] Include in mangos.sql/characters.sql changes from sql/updates/7988_*.sql Author: VladimirMangos
Also fix old typos in item_template data in mangos.sql

--HG--
branch : trunk
2009-06-11 19:48:53 -05:00
megamage
9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00
megamage
30cc6348f3 *Some merge of Mangos before update to 3.1.3. TC2 will update to 3.1.3 after about 10 hours.
--HG--
branch : trunk
2009-06-10 14:43:20 -05:00
megamage
4e130dcdfd [7980] Implement item use target requirements store and check (new table item_required_target). Author: NoFantasy
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

    * Also implement this table reload
    * Static Spell::SendCastResult function for call not from spell code.
      Can be also used in scripts where need send explicitly spell cast error to client.

--HG--
branch : trunk
2009-06-08 17:25:02 -05:00
megamage
8419f9b059 [7945] Implement support quest data for DetailsEmoteDelay and OfferRewardEmoteDelay value for set time ordering details and reward emotes. Author: NoFantasy
--HG--
branch : trunk
2009-06-03 19:23:49 -05:00
megamage
cc022341ac [7908] Extract class data from creature_*_addon bytes0 fields, drop its, amd add unit_class field to creature_template. Author: NoFantasy
--HG--
branch : trunk
2009-05-29 21:24:23 -05:00
megamage
451471d438 [7904] Change creature damage calculation formula. Author: Seizerkiller
* Add new creature_template field `dmg_multiplier`
    * Make attackpower include in creature damage not dependent from attack speed.

    NOTE: included in sql update recalculation for creature damage related fields only make
    temporary possible usable values. Real values need revisited by DB devs for correctness.

--HG--
branch : trunk
2009-05-28 18:29:59 -05:00
megamage
c61ef6c73c [7902] Speed up Creature and GO loads. Author: AlexDereka
--HG--
branch : trunk
2009-05-27 23:24:22 -05:00
megamage
5101c7c4c5 [7896] Rename creature_template class/race fields to trainer_class/trainer_race for clarify use. Author: NoFantasy
--HG--
branch : trunk
2009-05-27 16:36:09 -05:00
megamage
8b26c1c728 [7893] Fixed work chat guild commands that expect guild name in args. Now guild name always must be in "". Author: VladimirMangos
--HG--
branch : trunk
2009-05-26 16:19:11 -05:00
megamage
09b386a786 [7886] Drop use table petcreateinfo_spell
This is first commit in chain for remove oudated and not used pet functionality.

    * Use instead dropped table CreatureSpellData.dbc if creature_template.PetSpellDataId set (mostly hunter pets)
    * Use creature_template.spellN if not set creature_template.PetSpellDataId (mostly different summon creatures)
    * Fixed bug with not removing from action bar spell icon for not ranked unlearned spells.

    Note: summoned controllable creatures without PetSpellDataId must have expected spells in spellN feilds for creature_template.

[7887] Drop pet spell teaching code, including field in character_pet.

Author: VladimirMangos

--HG--
branch : trunk
2009-05-24 12:16:12 -05:00
megamage
aa67033cc7 [7885] Fixed talent 34914 and ranks proc spell to correct spellid. Author: qsa
--HG--
branch : trunk
2009-05-24 11:32:44 -05:00
megamage
4ebe23324b [7879] Fixed proc for 31571 and ranks. Author: Tanatos
--HG--
branch : trunk
2009-05-24 11:13:45 -05:00
Kudlaty
be6fad0de1 Correct typo in previous commit
--HG--
branch : trunk
2009-05-22 17:47:10 +02:00
Kudlaty
3bd9858417 Add a column to npc_spellclick_spells table to check if quest is completed/rewarded or incompleted
1: completed or rewarded; 3: incompleted; default 3

--HG--
branch : trunk
2009-05-22 17:43:14 +02:00
megamage
ac33cb94f3 [7855] Add description command to pool_* tables for simplify DB development. Author: Seizerkiller
Note: this fields not used and not loaded by mangos.

--HG--
branch : trunk
2009-05-19 15:43:17 -05:00
megamage
ca4c3eb847 [7851] Fixed typo to allow work '.tele name' command.
[7850] Fixed '.pinfo name' work, move reputation code from it to new command '.character reputation [$name]'.
Provide and use universal way for get locale and locale index for chat/console command use.
Author: VladimirMangos

--HG--
branch : trunk
2009-05-19 15:34:07 -05:00
megamage
3569f949d7 [7839] Rafactoring player targeting code in chat command and related cleanups/improvments.
* New extractOptFirstArg function for easy get 2 args in case option playe name as first arg.
    * New extractPlayerTarget function for get player pointer/guid/name for online/offline player base at provided name
      or if not provided by current seelction with error cases processing.
    * Property apply mute/unmute in case use different character name from loggined currently for account.
    * .reset commands can be used from console now
    * .repairitems comamnd can be used from console now but only to online player.

Author: VladimirMangos

--HG--
branch : trunk
2009-05-17 10:57:55 -05:00
megamage
a442a9b914 [7831] Prevent have hunter pet with level greater player levels at level changes. Propertly set hunter pet xp values at level update. Author: VladimirMangos
--HG--
branch : trunk
2009-05-15 13:44:49 -05:00
megamage
1390440f14 [7823] Fix ScalingStatValue field size in item_template table. Author: DiSlord
--HG--
branch : trunk
2009-05-14 15:37:28 -05:00
megamage
7c373f24d8 [7817] Add missing sql-updates to mangos.sql (7776, 7777, 7782) Author: Brueggus
--HG--
branch : trunk
2009-05-13 18:30:32 -05:00
megamage
e85e4c386b [7796] Implement .lookup taxinode and .go taxinode commands. Author: VladimirMangos
--HG--
branch : trunk
2009-05-08 18:47:27 -05:00
megamage
27d3ebbb92 [7777] Fixed talent 30299 and ranks procing also from holy dmg. Author: Corfen
--HG--
branch : trunk
2009-05-06 16:38:05 -05:00
megamage
e69d2cbed9 [7776] Completed implementation of CMSG_SPELLCLICK Author: arrai
For vehicles, you have to add the correct SPELL_AURA_CONTROL_VEHICLE spells to
    npc_spellclick_spells, otherwise you won't be able to use them

--HG--
branch : trunk
2009-05-05 16:56:15 -05:00
megamage
d4c75dddea [7720] Fixed crash at .character level use from console. Include GM name in message for command target if report need. Author: VladimirMangos
--HG--
branch : trunk
2009-04-27 18:46:44 -05:00
megamage
f9c4047441 [7714] Implement new command .character level for set level provided level. Author: VladimirMangos
--HG--
branch : trunk
2009-04-27 18:15:30 -05:00