Jump to content

kich0

Members
  • Posts

    144
  • Joined

  • Last visited

  • Donations

    0.00 GBP 

Everything posted by kich0

  1. just make a horse in creature_template with entry 38545
  2. I believe 49 people is client limitation in who list.
  3. I'm using this patch by przemratajczak -> http://github.com/kicho/test/commit/84e70d795f6dc80e0fff6abe843c89cd249f03cd
  4. its easy, just add lines with + and remove lines with -
  5. I am using this fix Player.cpp @@ -8379,7 +8385,7 @@ uint8 Player::FindEquipSlot( ItemPrototype const* proto, uint32 slot, bool swap break; case INVTYPE_2HWEAPON: slots[0] = EQUIPMENT_SLOT_MAINHAND; - if (CanDualWield() && CanTitanGrip()) + if (CanDualWield() && CanTitanGrip() && proto && proto->SubClass != ITEM_SUBCLASS_WEAPON_POLEARM && proto->SubClass != ITEM_SUBCLASS_WEAPON_STAFF) slots[1] = EQUIPMENT_SLOT_OFFHAND; break; case INVTYPE_TABARD: Player.h @@ -1933,7 +1933,15 @@ class MANGOS_DLL_SPEC Player : public Unit void SetCanBlock(bool value); bool CanDualWield() const { return m_canDualWield; } void SetCanDualWield(bool value) { m_canDualWield = value; } - bool CanTitanGrip() const { return m_canTitanGrip; } + bool CanTitanGrip() const + { + Item *mainItem = GetItemByPos( INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_MAINHAND ); + + if (mainItem && ( mainItem->GetProto()->SubClass == ITEM_SUBCLASS_WEAPON_POLEARM || mainItem->GetProto()->SubClass == ITEM_SUBCLASS_WEAPON_STAFF )) + return false; + + return m_canTitanGrip ; + } void SetCanTitanGrip(bool value) { m_canTitanGrip = value; }
  6. kich0

    Evo-X

    and this is related to mangos... how?
  7. maybe something like this would do the thing? diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 4aa95a5..11a8cac 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -6532,8 +6532,8 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx) } // check if "Glyph of Raise Dead" ,corpse- or "Corpse Dust" is available - bool canCast = p_caster->CanNoReagentCast(m_spellInfo) || FindCorpseUsing<MaNGOS::RaiseDeadObjectCheck>(); + bool canCast = p_caster->CanNoReagentCast(m_spellInfo) || unitTarget->isDead() && unitTarget->GetCreatureType()==CREATURE_TYPE_HUMANOID; if (!canCast && p_caster->HasItemCount(37201,1)) { p_caster->DestroyItemCount(37201, 1, true); canCast = true; diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index b04cf54..46ea551 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -463,9 +463,6 @@ WorldObject* Spell::FindCorpseUsing() return result; } -// explicitly instantiate for use in SpellEffects.cpp -template WorldObject* Spell::FindCorpseUsing<MaNGOS::RaiseDeadObjectCheck>(); - void Spell::FillTargetMap() { // TODO: ADD the correct target FILLS!!!!!!
  8. i see some errors due to template WorldObject* Spell::FindCorpseUsing<MaNGOS::RaiseDeadObjectCheck>(); (spell.cpp) after http://github.com/mangos/mangos/commit/c365a17a8f66a4a83b429ef6cb746d6f43afa9d6
  9. sap removes stealth if i remember right?
  10. don't really like the idea of patched cpp file why don't you instead make a github repo?
  11. you mean specific case like if (m_spellInfo->Id == 60192) { if (m_caster->GetTypeId() == TYPEID_PLAYER) ((Player*)m_caster)->RemoveSpellCooldown(60202, true); } ?
  12. spelleffects.cpp @@ -2499,6 +2500,10 @@ void Spell::EffectTriggerSpell(SpellEffectIndex effIndex) caster = IsSpellWithCasterSourceTargetsOnly(spellInfo) ? unitTarget : m_caster; caster = IsSpellWithCasterSourceTargetsOnly(spellInfo) ? unitTarget : m_caster; } + if (m_caster->GetTypeId() == TYPEID_PLAYER && m_spellInfo->CategoryRecoveryTime && spellInfo->CategoryRecoveryTime + && m_spellInfo->Category == spellInfo->Category) + ((Player*)m_caster)->RemoveSpellCooldown(spellInfo->Id); + caster->CastSpell(unitTarget,spellInfo,true,NULL,NULL,m_originalCasterGUID); }
  13. yeah its mind control , there are some basic support patches but don't expect much, aynway wrong topic for this..
  14. maybe an option in config would be the best... SHA_PASS 0/1 aldo it would be messy
  15. or if you use mysql just use REPLACE instead of INSERT
  16. If you see other topic from him he asks for "Race War" mod for his server so its probably that
  17. that means that your DB is for revision 8734 and you are using core revision 8866 - you have to apply all sql updates between 8734 and 8866 (take a look at you SQL folder)
  18. yep in my opinion it's not ready for GIT yet...
  19. also mentioning revision of MaNGOS wouldn't hurt..
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use