Advertisement
Wyran

Implement overloading of SpellEffect.dbc. Fix quest 25464.

Feb 15th, 2013
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.75 KB | None | 0 0
  1. From 8cbb425323143978e23a7ae6e3c9b20e016cccfe Mon Sep 17 00:00:00 2001
  2. From: Wyran Wyrm <[email protected]>
  3. Date: Fri, 15 Feb 2013 13:20:42 +0100
  4. Subject: [PATCH] Implement overloading of SpellEffect.dbc from database. Also
  5.  fix quest 25464.
  6.  
  7. ---
  8. .../world/2013_02_15_01_world_spelleffect_dbc.sql  | 37 ++++++++++++++++++++++
  9.  src/server/game/DataStores/DBCStores.cpp           |  2 +-
  10.  src/server/game/DataStores/DBCfmt.h                |  2 ++
  11.  3 files changed, 40 insertions(+), 1 deletion(-)
  12.  create mode 100644 sql/updates/world/2013_02_15_01_world_spelleffect_dbc.sql
  13.  
  14. diff --git a/sql/updates/world/2013_02_15_01_world_spelleffect_dbc.sql b/sql/updates/world/2013_02_15_01_world_spelleffect_dbc.sql
  15. new file mode 100644
  16. index 0000000..3b891ad
  17. --- /dev/null
  18. +++ b/sql/updates/world/2013_02_15_01_world_spelleffect_dbc.sql
  19. @@ -0,0 +1,37 @@
  20. +-- Add spelleffect_dbc table, matching fields from SpellEffect.dbc.
  21. +-- Author: Wyran.
  22. +
  23. +DROP TABLE IF EXISTS spelleffect_dbc;
  24. +
  25. +CREATE TABLE `spelleffect_dbc` (
  26. +   `Id` int (10),
  27. +   `Effect` int (10),
  28. +   `EffectValueMultiplier` float ,
  29. +   `EffectApplyAuraName` int (10),
  30. +   `EffectAmplitude` int (10),
  31. +   `EffectBasePoints` int (10),
  32. +   `EffectBonusMultiplier` float ,
  33. +   `EffectDamageMultiplier` float ,
  34. +   `EffectChainTarget` int (10),
  35. +   `EffectDieSides` int (10),
  36. +   `EffectItemType` int (10),
  37. +   `EffectMechanic` int (10),
  38. +   `EffectMiscValue` int (10),
  39. +   `EffectMiscValueB` int (10),
  40. +   `EffectPointsPerComboPoint` float ,
  41. +   `EffectRadiusIndex` int (10),
  42. +   `EffectRadiusMaxIndex` int (10),
  43. +   `EffectRealPointsPerLevel` float ,
  44. +   `EffectSpellClassMask1` int (10),
  45. +   `EffectSpellClassMask2` int (10),
  46. +   `EffectSpellClassMask3` int (10),
  47. +   `EffectTriggerSpell` int (10),
  48. +   `EffectImplicitTargetA` int (10),
  49. +   `EffectImplicitTargetB` int (10),
  50. +   `EffectSpellId` int (10),
  51. +   `EffectIndex` int (10),
  52. +   `Comment` text
  53. +);
  54. +
  55. +INSERT INTO `spelleffect_dbc` (`Id`, `Effect`, `EffectValueMultiplier`, `EffectApplyAuraName`, `EffectAmplitude`, `EffectBasePoints`, `EffectBonusMultiplier`, `EffectDamageMultiplier`, `EffectChainTarget`, `EffectDieSides`, `EffectItemType`, `EffectMechanic`, `EffectMiscValue`, `EffectMiscValueB`, `EffectPointsPerComboPoint`, `EffectRadiusIndex`, `EffectRadiusMaxIndex`, `EffectRealPointsPerLevel`, `EffectSpellClassMask1`, `EffectSpellClassMask2`, `EffectSpellClassMask3`, `EffectTriggerSpell`, `EffectImplicitTargetA`, `EffectImplicitTargetB`, `EffectSpellId`, `EffectIndex`, `Comment`) VALUES
  56. +('1000000','90','0','0','0','0','0','1','0','0','0','0','40334','0','0','0','0','0','0','0','0','0','2','0','75193','0','Kill credit for quest 25464.');
  57. diff --git a/src/server/game/DataStores/DBCStores.cpp b/src/server/game/DataStores/DBCStores.cpp
  58. index abaa16e..8ea5b3b 100644
  59. --- a/src/server/game/DataStores/DBCStores.cpp
  60. +++ b/src/server/game/DataStores/DBCStores.cpp
  61. @@ -517,7 +517,7 @@ void LoadDBCStores(const std::string& dataPath)
  62.      LoadDBC(availableDbcLocales, bad_dbc_files, sSpellAuraRestrictionsStore,  dbcPath,"SpellAuraRestrictions.dbc");//14545
  63.      LoadDBC(availableDbcLocales, bad_dbc_files, sSpellCastingRequirementsStore, dbcPath,"SpellCastingRequirements.dbc");//14545
  64.      LoadDBC(availableDbcLocales, bad_dbc_files, sSpellCategoriesStore,        dbcPath,"SpellCategories.dbc");//14545
  65. -    LoadDBC(availableDbcLocales, bad_dbc_files, sSpellEffectStore,            dbcPath,"SpellEffect.dbc");//14545
  66. +    LoadDBC(availableDbcLocales, bad_dbc_files, sSpellEffectStore,            dbcPath,"SpellEffect.dbc", &CustomSpellEffectEntryfmt, &CustomSpellEffectEntryIndex);//14545
  67.      LoadDBC(availableDbcLocales, bad_dbc_files, sSpellCastTimesStore,         dbcPath, "SpellCastTimes.dbc");//14545
  68.      LoadDBC(availableDbcLocales, bad_dbc_files, sSpellDifficultyStore,        dbcPath, "SpellDifficulty.dbc", &CustomSpellDifficultyfmt, &CustomSpellDifficultyIndex);//14545
  69.      LoadDBC(availableDbcLocales, bad_dbc_files, sSpellDurationStore,          dbcPath, "SpellDuration.dbc");//14545
  70. diff --git a/src/server/game/DataStores/DBCfmt.h b/src/server/game/DataStores/DBCfmt.h
  71. index 66c519e..5547dda 100644
  72. --- a/src/server/game/DataStores/DBCfmt.h
  73. +++ b/src/server/game/DataStores/DBCfmt.h
  74. @@ -124,6 +124,8 @@ const std::string CustomSpellDifficultyfmt = "ppppp";
  75.  const std::string CustomSpellDifficultyIndex = "id";
  76.  char const SpellDurationfmt[] = "niii";
  77.  char const SpellEffectEntryfmt[] = "nifiiiffiiiiiifiifiiiiiiiix";
  78. +const std::string CustomSpellEffectEntryfmt = "ppppppppppppppppppppppppppa";
  79. +const std::string CustomSpellEffectEntryIndex = "Id";
  80.  char const SpellEntryfmt[] = "niiiiiiiiiiiiiiifiiiissxxiixxifiiiiiiixiiiiiiiix";
  81.  const std::string CustomSpellEntryfmt = "pppppppppppppppppppppaaaappaapppppppppappppppppa";
  82.  const std::string CustomSpellEntryIndex = "Id";
  83. --
  84. 1.8.0.msysgit.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement