Warlord123
-
Posts
9 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Posts posted by Warlord123
-
-
Link is normal.
Patch from link.
index 149aaa0..7b17437 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -12295,7 +12295,35 @@ void Player::SendEquipError( uint8 msg, Item* pItem, Item *pItem2, uint32 itemid case EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED_IS: { ItemPrototype const* proto = pItem ? pItem->GetProto() : sObjectMgr.GetItemPrototype(itemid); - data << uint32(proto ? proto->ItemLimitCategory : 0); + uint32 LimitCategory=proto ? proto->ItemLimitCategory : 0; + if (pItem) + // check unique-equipped on gems + for(uint32 enchant_slot = SOCK_ENCHANTMENT_SLOT; enchant_slot < SOCK_ENCHANTMENT_SLOT+3; ++enchant_slot) + { + uint32 enchant_id = pItem->GetEnchantmentId(EnchantmentSlot(enchant_slot)); + if(!enchant_id) + continue; + SpellItemEnchantmentEntry const* enchantEntry = sSpellItemEnchantmentStore.LookupEntry(enchant_id); + if(!enchantEntry) + continue; + + ItemPrototype const* pGem = ObjectMgr::GetItemPrototype(enchantEntry->GemID); + if(!pGem) + continue; + + // include for check equip another gems with same limit category for not equipped item (and then not counted) + uint32 gem_limit_count = !pItem->IsEquipped() && pGem->ItemLimitCategory + ? pItem->GetGemCountWithLimitCategory(pGem->ItemLimitCategory) : 1; + + if( msg == CanEquipUniqueItem(pGem, pItem->GetSlot(),gem_limit_count)) + { + LimitCategory=pGem->ItemLimitCategory; + break; + + } + } + + data << uint32(LimitCategory); break; } default:
-
Hack fix in topic http://ru-mangos.ru/showthread.php?p=15645#post15645
-
-
-
but need to add quests table and remake rep. table. And ofc to add more id's.
Reputation tables are full. he table has 2 parts. The common and for each pair of races.
(0, 47, 'Ironforge', 0, 530, 'Darkspear Trolls') Used for translation to Human(ID 1) to Orc (ID 2).
If need transfer Human(1) to Troll(8) (1, 47, 'Ironforge', 8, 76, 'Orgrimmar') must be used.
This code implement replace (0, 47, 'Ironforge', 0, 530, 'Darkspear Trolls') to (1, 47, 'Ironforge', 8, 76, 'Orgrimmar') for Human(1) \\ Troll(8)
CREATE TEMPORARY TABLE current_rep SELECT Trep.race_A AS race_1, Trep.rep_A AS rep_1, Trep.commentA AS comment1, Trep.race_H AS race_2, Trep.rep_H AS rep_2, Trep.commentH AS comment2 FROM character_reputation AS Rep, transfer_reputation AS Trep WHERE faction = rep_A AND guid = SrcP AND ((race_A = SrcR AND race_H = DestR) OR (race_A = 0 AND rep_A NOT IN (SELECT rep_A FROM transfer_reputation WHERE (race_A = SrcR AND race_H = DestR) AND rep_A = transfer_reputation.rep_A) ) );
+ // Delete Friend List + CharacterDatabase.PExecute("DELETE FROM `character_social` WHERE `guid`= '%u'",GUID_LOPART(guid));
It is necessary to delete the character from other friend lists.
DELETE FROM character_social WHERE guid = <char_guid> OR friend = <char_guid>;
Need to implement some checks before faction change. http://eu.blizzard.com/support/article.xml?locale=en_GB&articleId=39811
"If the character is a Guild Master, you will not be able to perform a Faction Change."
-
I would like to help. I have made similar functionality on sql. Tables have been made by data http://www.wow-europe.com/en/info/fa...ange/index.xml.
Transfer reputations, achievments, many items, spells, 95% mount (except random, no data), languages ,some Death Knight quest.
My stored procedure and datatables link http://rapidshare.com/files/386382735/transfer_v0.19.sql.html
Sorry for my English.
-
-
[fix] Implement Death Coil bonus from Sigil of the Vengeful Heart
What bug does the patch fix? What features does the patch add?
Implement bonus to Death Coil from http://www.wowhead.com/?item=45254.
For which repository revision was the patch created?
revision 9614
Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.
--
Who has been writing this patch? Please include either forum user names or email addresses.
by myself
*** a/src/game/Unit.cpp Wed Mar 24 07:57:48 2010 --- my/src/game/Unit.cpp Fri Mar 26 06:25:39 2010 *************** uint32 Unit::SpellDamageBonus(Unit *pVic *** 9085,9090 **** --- 9085,9099 ---- } } } + //Death Coil + if (spellProto->SpellFamilyFlags & UI64LIT(0x002000)) + { + // search for Item - Death Knight T8 DPS Relic + if (Aura* Sigil = GetDummyAura(64962)) + { + DoneTotal += Sigil->GetModifier()->m_amount; + } + } break; } default:
[Patch] Cleanup rage gain calculation
in ... under reviewOld
Posted
[em]diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 0076aa2..3be2b16 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -618,23 +618,17 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
switch(cleanDamage->attackType)
{
case BASE_ATTACK:
- {
- if(cleanDamage->hitOutCome == MELEE_HIT_CRIT)
- weaponSpeedHitFactor = uint32(GetAttackTime(cleanDamage->attackType)/1000.0f * 7);
- else
- weaponSpeedHitFactor = uint32(GetAttackTime(cleanDamage->attackType)/1000.0f * 3.5f);
-
- ((Player*)this)->RewardRage(damage, weaponSpeedHitFactor, true);
-
- break;
- }
case OFF_ATTACK:
{
+ int32 coeff=350;
+
if(cleanDamage->hitOutCome == MELEE_HIT_CRIT)
- weaponSpeedHitFactor = uint32(GetAttackTime(cleanDamage->attackType)/1000.0f * 3.5f);
- else
- weaponSpeedHitFactor = uint32(GetAttackTime(cleanDamage->attackType)/1000.0f * 1.75f);
+ coeff *= 2;
+
+ if (cleanDamage->attackType==OFF_ATTACK)
+ coeff /= 2;
+ weaponSpeedHitFactor = uint32(GetAttackTime(cleanDamage->attackType)* coeff/100000);
((Player*)this)->RewardRage(damage, weaponSpeedHitFactor, true);
break;
[/em]