Likes: 0
Results 1 to 5 of 5
-
11-03-10, 02:27 PM #1
[C++]ProcChance fix of several trinkets + Consecration fix - Swift Retribution.
Register to remove this adAs this is a simple fix, I'm just releasing it here.
Note : This are easy fixes. (Some of the trinkets get their credits given to Malacka from ShyEmu.)
Me : Consecration patch & other trinkets
Code:Index: src/arcemu-world/SpellFixes.cpp =================================================================== --- src/arcemu-world/SpellFixes.cpp +++ src/arcemu-world/SpellFixes.cpp @@ -7096,6 +7096,7 @@ { sp->proc_interval = 45000; sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_RANGED_ATTACK; + sp->EffectTriggerSpell[1] = 37064; } // Forge Ember @@ -7104,6 +7105,7 @@ { sp->proc_interval = 45000; sp->procFlags = PROC_ON_CAST_SPELL; + sp->EffectTriggerSpell[1] = 37660; } // Mirror of Truth @@ -7112,6 +7114,7 @@ { sp->proc_interval = 45000; sp->procFlags = PROC_ON_CRIT_ATTACK; + sp->EffectTriggerSpell[1] = 40684; } // Majestic Dragon Figurine @@ -7119,6 +7122,7 @@ if( sp != NULL ) { sp->procFlags = PROC_ON_CAST_SPELL; + sp->EffectTriggerSpell[1] = 40430; } // Flow of Knowledge @@ -7127,6 +7131,8 @@ { sp->proc_interval = 45000; sp->procFlags = PROC_ON_CAST_SPELL; + sp->EffectTriggerSpell[1] = 44912; + } // Embrace of the Spider @@ -7135,6 +7141,7 @@ { sp->proc_interval = 45000; sp->procFlags = PROC_ON_CAST_SPELL; + sp->EffectTriggerSpell[1] = 39229; } // Anvil of Titans @@ -7143,6 +7150,7 @@ { sp->proc_interval = 45000; sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_RANGED_ATTACK; + sp->EffectTriggerSpell[1] = 44914; } // Soul of the Dead @@ -7151,6 +7159,7 @@ { sp->proc_interval = 45000; sp->procFlags = PROC_ON_SPELL_CRIT_HIT; + sp->EffectTriggerSpell[1] = 40382; } // Illustration of the Dragon Soul @@ -7158,6 +7167,7 @@ if( sp != NULL ) { sp->procFlags = PROC_ON_CAST_SPELL; + sp->EffectTriggerSpell[1] = 40432; } // Grim Toll @@ -7166,6 +7176,7 @@ { sp->proc_interval = 45000; sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_RANGED_ATTACK; + sp->EffectTriggerSpell[1] = 40256; } // Fury of the Five Flights @@ -7173,6 +7184,7 @@ if( sp != NULL ) { sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_RANGED_ATTACK; + sp->EffectTriggerSpell[1] = 40431; } // Bandit's Insignia @@ -7181,6 +7193,7 @@ { sp->proc_interval = 45000; sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_RANGED_ATTACK; + sp->EffectTriggerSpell[1] = 40371; } // Meteorite Whetstone @@ -7189,6 +7202,7 @@ { sp->proc_interval = 45000; sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_RANGED_ATTACK; + sp->EffectTriggerSpell[1] = 37390; } // Sonic Booster @@ -7197,6 +7211,7 @@ { sp->proc_interval = 60000; sp->procFlags = PROC_ON_MELEE_ATTACK; + sp->EffectTriggerSpell[1] = 40767; } //Totem of the Third Wind - bad range
Code:Index: SpellFixes.cpp =================================================================== --- SpellFixes.cpp (revision 14) +++ SpellFixes.cpp (working copy) @@ -7288,6 +7288,7 @@ sp->proc_interval = 45000; sp->procFlags = PROC_ON_CAST_SPELL; sp->EffectTriggerSpell[1] = 37660; + sp->procChance = 10; } // Mirror of Truth @@ -7297,6 +7298,7 @@ sp->proc_interval = 45000; sp->procFlags = PROC_ON_CRIT_ATTACK; sp->EffectTriggerSpell[1] = 40684; + sp->procChance = 10; } // Majestic Dragon Figurine @@ -7305,6 +7307,7 @@ { sp->procFlags = PROC_ON_CAST_SPELL; sp->EffectTriggerSpell[1] = 40430; + sp->procChance = 10; } // Flow of Knowledge @@ -7314,6 +7317,7 @@ sp->proc_interval = 45000; sp->procFlags = PROC_ON_CAST_SPELL; sp->EffectTriggerSpell[1] = 44912; + sp->procChance = 10; } @@ -7324,6 +7328,7 @@ sp->proc_interval = 45000; sp->procFlags = PROC_ON_CAST_SPELL; sp->EffectTriggerSpell[1] = 39229; + sp->procChance = 10; } // Anvil of Titans @@ -7333,6 +7338,7 @@ sp->proc_interval = 45000; sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_RANGED_ATTACK; sp->EffectTriggerSpell[1] = 44914; + sp->procChance = 10; } // Soul of the Dead @@ -7342,6 +7348,8 @@ sp->proc_interval = 45000; sp->procFlags = PROC_ON_SPELL_CRIT_HIT; sp->EffectTriggerSpell[1] = 40382; + sp->procChance = 25; + } // Illustration of the Dragon Soul @@ -7350,6 +7358,7 @@ { sp->procFlags = PROC_ON_CAST_SPELL; sp->EffectTriggerSpell[1] = 40432; + sp->procChance = 100; } // Grim Toll @@ -7359,6 +7368,7 @@ sp->proc_interval = 45000; sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_RANGED_ATTACK; sp->EffectTriggerSpell[1] = 40256; + sp->procChance = 15; } // Fury of the Five Flights @@ -7367,6 +7377,7 @@ { sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_RANGED_ATTACK; sp->EffectTriggerSpell[1] = 40431; + sp->procChance = 100; } // Bandit's Insignia @@ -7376,6 +7387,7 @@ sp->proc_interval = 45000; sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_RANGED_ATTACK; sp->EffectTriggerSpell[1] = 40371; + sp->procChance = 15; } // Meteorite Whetstone @@ -7385,6 +7397,7 @@ sp->proc_interval = 45000; sp->procFlags = PROC_ON_MELEE_ATTACK | PROC_ON_RANGED_ATTACK; sp->EffectTriggerSpell[1] = 37390; + sp->procChance = 15; } // Sonic Booster @@ -7394,6 +7407,7 @@ sp->proc_interval = 60000; sp->procFlags = PROC_ON_MELEE_ATTACK; sp->EffectTriggerSpell[1] = 40767; + sp->procChance = 15; } //Totem of the Third Wind - bad range
The problem was that it actually did do some damage, but the damage done wasn't linked to the spelldamage nor was it's school defined as holy. You could fix it by just defining it like this :
Code:Index: SpellFixes.cpp =================================================================== --- SpellFixes.cpp (revision 3174) +++ SpellFixes.cpp (working copy) @@ -3013,6 +3013,13 @@ sp->procFlags = PROC_ON_SPELL_CRIT_HIT; } + // Paladin - Consecration + if( sp->NameHas == SPELL_HASH_CONSECRATION ) + { + sp->School = SCHOOL_HOLY; //Consecration is a holy redirected spell. + sp->Spell_Dmg_Type = SPELL_DMG_TYPE_MAGIC; //Speaks for itself. + } +
Paladin : Swift Retribution.
Code:// Swift Retribution if( sp->NameHash == SPELL_HASH_SWIFT_RETRIBUTION ) { sp->EffectApplyAuraName[0] = SPELL_AURA_MOD_HASTE; sp->EffectBasePoints[0] = 3; }
› See More: [C++]ProcChance fix of several trinkets + Consecration fix - Swift Retribution.
-
11-03-10, 04:54 PM #2
Nice release.
-
28-03-10, 05:21 AM #3
-
08-04-10, 02:24 PM #4
-
09-04-10, 06:33 PM #5
Register to remove this adPerfect, Great script Cocain.
Don't Forget to for useful releases!. It gives you good luck! Just Like Lucky charms!