Jump to content

NoHad

Members
  • Posts

    24
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

About NoHad

  • Birthday 01/01/1

NoHad's Achievements

Member

Member (2/3)

0

Reputation

  1. NO, when you have aura of mind-numbing poison from rogue.. And Priest use spell with the same icon ( Abolish Disease ) Poison is replaced with abolish disease , Icons with the same icon were interrupting And the same for other spells with the same icon
  2. Added Config option for Pet.Los now you can Handle. Now you can set if you want to get working attack command of pet throught texture or no.. it works as if your's target is behind the texture and you've setted 0 pet will not go attack if you click on attack ( it's default on mangos ) and if you set 1 he will go attack diff -r 428e6a81b03d0786a1201d374a9208604e06e84c -r 8c5d352b91e4b6ac54666eea1b9f9220f6e5bb75 src/game/PetHandler.cpp --- a/src/game/PetHandler.cpp Tue Jan 10 10:57:59 2012 +0100 +++ b/src/game/PetHandler.cpp Tue Jan 10 11:07:15 2012 +0100 @@ -105,8 +105,13 @@ if(GetPlayer()->IsFriendlyTo(TargetUnit)) return; // Not let attack through obstructions - if(!pet->IsWithinLOSInMap(TargetUnit)) - return; + if(sWorld.getConfig(CONFIG_BOOL_PET_LOS)) + { + + if(!pet->IsWithinLOSInMap(TargetUnit)) + return; + + } // This is true if pet has no target or has target but targets differs. if(pet->getVictim() != TargetUnit) diff -r 428e6a81b03d0786a1201d374a9208604e06e84c -r 8c5d352b91e4b6ac54666eea1b9f9220f6e5bb75 src/game/World.cpp --- a/src/game/World.cpp Tue Jan 10 10:57:59 2012 +0100 +++ b/src/game/World.cpp Tue Jan 10 11:07:15 2012 +0100 @@ -839,6 +839,7 @@ bool enableLOS = sConfig.GetBoolDefault("vmap.enableLOS", false); bool enableHeight = sConfig.GetBoolDefault("vmap.enableHeight", false); std::string ignoreSpellIds = sConfig.GetStringDefault("vmap.ignoreSpellIds", ""); + setConfig(CONFIG_BOOL_PET_LOS, "vmap.PetLos", false); if (!enableHeight) sLog.outError("VMAP height use disabled! Creatures movements and other things will be in broken state."); diff -r 428e6a81b03d0786a1201d374a9208604e06e84c -r 8c5d352b91e4b6ac54666eea1b9f9220f6e5bb75 src/game/World.h --- a/src/game/World.h Tue Jan 10 10:57:59 2012 +0100 +++ b/src/game/World.h Tue Jan 10 11:07:15 2012 +0100 @@ -326,6 +326,7 @@ CONFIG_BOOL_STATS_SAVE_ONLY_ON_LOGOUT, CONFIG_BOOL_CLEAN_CHARACTER_DB, CONFIG_BOOL_VMAP_INDOOR_CHECK, + CONFIG_BOOL_PET_LOS, CONFIG_BOOL_PET_UNSUMMON_AT_MOUNT, CONFIG_BOOL_PVP_TOKEN_ENABLE, CONFIG_BOOL_BG_ROTATE, diff -r 428e6a81b03d0786a1201d374a9208604e06e84c -r 8c5d352b91e4b6ac54666eea1b9f9220f6e5bb75 src/mangosd/mangosd.conf.dist.in --- a/src/mangosd/mangosd.conf.dist.in Tue Jan 10 10:57:59 2012 +0100 +++ b/src/mangosd/mangosd.conf.dist.in Tue Jan 10 11:07:15 2012 +0100 @@ -153,7 +153,12 @@ # Requires VMaps enabled to work. # Default: 1 (Enabled) # 0 (Disabled) -# +# +# vmap.PetLos +# Check LOS for pets, to avoid them going through walls etc. +# Default: 0 (disable, less CPU usage) +# 1 (enable, each pet attack command will check for LOS) +# # # DetectPosCollision # Check final move position, summon position, etc for visible collision with other objects or @@ -215,6 +220,7 @@ vmap.enableHeight = 1 vmap.ignoreSpellIds = "7720,32375" vmap.enableIndoorCheck = 1 +vmap.PetLos = 0 DetectPosCollision = 1 TargetPosRecalculateRange = 1.5 Enjoy
  3. Fixed [snakes from Snake trap must have 94 and 96 hp not 9000]: There is the fix: File: Pet.cpp ------------------------------------------------------------------------------------------------------------- UpdateAllStats(); + + if(getPetType() == GUARDIAN_PET) + switch (GetEntry()) + { + case 19833: //Snake Trap - Venomous Snake + SetMaxHealth(94); + break; + case 19921: //Snake Trap - Viper + SetMaxHealth(96); + break; + } SetHealth(GetMaxHealth()); SetPower(POWER_MANA, GetMaxPower(POWER_MANA)); -------------------------------------------------------------------------------------------------------------- Enjoy
  4. Fixed [stealth Check for Casting Target]: If someone were casting spell and target get into a stealth it was sucessfuly casted, and the same with vanish there is fix: diff -r aacaf6e3d037d5321445c87c6c5b5e3c1d138c40 -r 9d057e753a04874c7e3c767faea94f89210cf853 src/game/Spell.cpp --- a/src/game/Spell.cpp Mon Dec 12 14:39:44 2011 +0100 +++ b/src/game/Spell.cpp Mon Dec 12 14:43:29 2011 +0100 @@ -2421,6 +2421,15 @@ void Spell::cast(bool skipCheck) { + + if (Unit *pTarget = m_targets.getUnitTarget()) + if (pTarget->isAlive() && (pTarget->HasAuraType(SPELL_AURA_MOD_STEALTH) || pTarget->HasAuraType(SPELL_AURA_MOD_INVISIBILITY)) && !pTarget->IsFriendlyTo(m_caster) && !pTarget->isVisibleForOrDetect(m_caster, m_caster, true)) + { + SendCastResult(SPELL_FAILED_BAD_TARGETS); + finish(false); + return; + } + SetExecutedCurrently(true); if (!m_caster->CheckAndIncreaseCastCounter()) Enjoy
  5. Fixed [Check for Generic Icons] : They were interrupting by themself if the icons were the same for example: mind numbing poison -> interrupted by abolish disease ( or something like that it's priest ability ) diff -r 012b2a6b1785f82f1a9bf58b3fe5910666a2af54 -r aacaf6e3d037d5321445c87c6c5b5e3c1d138c40 src/game/SpellMgr.cpp --- a/src/game/SpellMgr.cpp Sat Dec 03 09:43:27 2011 +0100 +++ b/src/game/SpellMgr.cpp Mon Dec 12 14:39:44 2011 +0100 @@ -1982,6 +1982,22 @@ break; } + // generic spells + if (!spellInfo_1->SpellFamilyName) + { + if (!spellInfo_1->SpellIconID + || spellInfo_1->SpellIconID == 1 + || spellInfo_1->SpellIconID != spellInfo_2->SpellIconID) + return false; + } + + // check for class spells + else + { + if (spellInfo_1->SpellFamilyFlags != spellInfo_2->SpellFamilyFlags) + return false; + } + // more generic checks if (spellInfo_1->SpellIconID == spellInfo_2->SpellIconID && spellInfo_1->SpellIconID != 0 && spellInfo_2->SpellIconID != 0) Enjoy
  6. I Think that's not bug report(I'm sure) but i don't know where to post this topic. So I'm writing to bug report and i'm searching for help :-) On OregonCore this fix is working it means showing to friend list join position of player ( for example: Orgrimmar ) Not arena :-) so there is one Part of Code: friendInfo.Area = MapManager::Instance().GetZoneId(pFriend->GetBattleGroundEntryPoint().GetMapId(), pFriend->GetBattleGroundEntryPoint().GetPositionX(), pFriend->GetBattleGroundEntryPoint().GetPositionY(), pFriend->GetBattleGroundEntryPoint().GetPositionZ()); And it wrotes me errors like this: 4>..\\..\\src\\game\\SocialMgr.cpp(213): error C2039: 'GetZoneId' : is not a member of 'MapManager' 4> \\src\\game\\MapManager.h(51) : see declaration of 'MapManager' 4>..\\..\\src\\game\\SocialMgr.cpp(213): error C2039: 'GetMapId' : is not a member of 'WorldLocation' 4> \\src\\game\\Object.h(71) : see declaration of 'WorldLocation' 4>..\\..\\src\\game\\SocialMgr.cpp(214): error C2039: 'GetPositionX' : is not a member of 'WorldLocation' 4> \\src\\game\\Object.h(71) : see declaration of 'WorldLocation' 4>..\\..\\src\\game\\SocialMgr.cpp(215): error C2039: 'GetPositionY' : is not a member of 'WorldLocation' 4> \\src\\game\\Object.h(71) : see declaration of 'WorldLocation' 4>..\\..\\src\\game\\SocialMgr.cpp(216): error C2039: 'GetPositionZ' : is not a member of 'WorldLocation' 4> \\src\\game\\Object.h(71) : see declaration of 'WorldLocation' It means there are no defned things in worldlocation and player, so how to get it working , how it have mangos there definitions ? thx to reply :-)
  7. When I'm for example in tanaris and I use .gob tar it freezes server on 3 seconds and I've targeted the object. But when i'm in Origrmmar and there are Christmas Events and I use .gob tar I've setted in configuration file this: LogLevel = 3 and when I Use in Orgrimmar .gob tar server crashes and to putty console it wrote me this error: unauthorized access memory(SIGSEGV) Sry for my English and PLS help
  8. Hello I've some problems on Windows it work's really good server is not crashing.. And Hunter's mark as i've topiced on windows with the same core works really good. I've compiled the same core on Linux and server is crashing on commands .gob tar and Hunter's mark is getting to combat.. But on my Windows Local server it works fine on .gob tar it's not crashing and hunter's mark works. Why ? where is the problem ?
  9. Yes now i have important patches.. but there is problem some code lines are in different zone it means path code in level3.cpp started on 3354 line but me started on 3358 when i remake path lines, it doesn't work and i really don't know why.. i've got errors like : error: patch failed: src/game/Level3.cpp:3358 error: src/game/Level3.cpp: patch does not apply So I really don't know why is there this problem..
  10. OoOO Big thanks :-) man
  11. I really don't know how on GitHub if you can send me PM or send me your's skype thx :-)
  12. OMG... i don't want to merge something to lost my work ... I only need fix, where the problem is or something.
  13. Hey man, i'll update it by hand but i need just 1 thing to know, on bitbucket if i click on commit what is on bitbucket's repo i can view a patch and get him to my core with git bash.. Can github repository of mangos make it too ? ( These patch.files ) are important
  14. 0870 it Means [s870] maybe i'll update but i must step by step because i have some fixes in this repo and i don't want to delete them ...
×
×
  • 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