ZPS
-
Posts
15 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Posts posted by ZPS
-
-
Actually, the latest version is here https://github.com/bwsrv/mangos/commits/transport
But as rsa said, this is only adapted old patch.
-
-
How are you going to use ! (not)?
Example:
SelectAttackingTarget(ATTACKING_TARGET_RANDOM, 0, SPELL, !(SELECT_FLAG_NOT_IN_MELEE_RANGE));
May be I don't understand something, but I think that code, which handle SELECT_FLAG_NOT_IN_MELEE_RANGE -
if (selectFlags & SELECT_FLAG_IN_MELEE_RANGE && !CanReachWithMeleeAttack(pTarget))
return false;
will have no sense.
-
Add one more select flag to SelectAttackingTarget. SELECT_FLAG_NOT_IN_MELEE_RANGE - is used when you want to select ranged targets (which are not in melee range).
diff --git a/src/game/Creature.cpp b/src/game/Creature.cppindex 8929bf8..4c09923 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -2078,6 +2078,9 @@ bool Creature::MeetsSelectAttackingRequirement(Unit* pTarget, SpellEntry const*
if (selectFlags & SELECT_FLAG_IN_MELEE_RANGE && !CanReachWithMeleeAttack(pTarget))
return false;
+ if (selectFlags & SELECT_FLAG_NOT_IN_MELEE_RANGE && CanReachWithMeleeAttack(pTarget))
+ return false;
+
if (selectFlags & SELECT_FLAG_IN_LOS && !IsWithinLOSInMap(pTarget))
return false;
diff --git a/src/game/Creature.h b/src/game/Creature.h
index 96a4a65..38ecf84 100644
--- a/src/game/Creature.h
+++ b/src/game/Creature.h
@@ -316,13 +316,14 @@ enum AttackingTarget
enum SelectFlags
{
- SELECT_FLAG_IN_LOS = 0x001, // Default Selection Requirement for Spell-targets
- SELECT_FLAG_PLAYER = 0x002,
- SELECT_FLAG_POWER_MANA = 0x004, // For Energy based spells, like manaburn
- SELECT_FLAG_POWER_RAGE = 0x008,
- SELECT_FLAG_POWER_ENERGY = 0x010,
- SELECT_FLAG_POWER_RUNIC = 0x020,
- SELECT_FLAG_IN_MELEE_RANGE = 0x040,
+ SELECT_FLAG_IN_LOS = 0x001, // Default Selection Requirement for Spell-targets
+ SELECT_FLAG_PLAYER = 0x002,
+ SELECT_FLAG_POWER_MANA = 0x004, // For Energy based spells, like manaburn
+ SELECT_FLAG_POWER_RAGE = 0x008,
+ SELECT_FLAG_POWER_ENERGY = 0x010,
+ SELECT_FLAG_POWER_RUNIC = 0x020,
+ SELECT_FLAG_IN_MELEE_RANGE = 0x040,
+ SELECT_FLAG_NOT_IN_MELEE_RANGE = 0x080,
};
// Vendors
P.S.: Btw, tag "[ code ]" is awful...
-
-
UDB forum is online.
-
Core does not compile on FreeBSD 7.2
-
can anyone confirm a few persistent issues with this patch?
1. grouping with a hunter / warlock / class with summoned 'pet' standing on a different map to the rest of the group causes client critical errors
2. server crashes - http://paste2.org/p/937668 (this may have been fixed)
they seem to be the 2 problems that need urgent attention... If someone with the knowledge can step in and show us noobs what to do and organise us towards a goal i may let them have my babies.
Patch against server crash:
----------------------------- src/game/Vehicle.cpp ----------------------------- index 3fc4aef..6e69ce2 100644 @@ -637,6 +637,9 @@ void Vehicle::Dismiss() void Vehicle::RellocatePassengers(Map *map) { + if (m_Seats.empty()) + return; + for(SeatMap::iterator itr = m_Seats.begin(); itr != m_Seats.end(); ++itr) { if(itr->second.flags & SEAT_FULL)
-
Charlie2025, I noticed one redundant file in your outdoor repository: /src/game/OutdoorPvPMgr.cpp.orig
-
No ideas more?.. Triplex have private messages off, I can't write him
-
i'm not 100% sure, but i think you have to search in BattleGroundMgr.cpp for
"// if arena, enable horde versus horde or alliance versus alliance teams here"
and delete everything under this.. until the function ends
this will enable horde vs alliance only
Heh, I tried, but Triply rewrote those code and removed those comment...
-
Vice versa.
I want rated arena matches to be only Horde vs Alliance.
-
How to prohibit one faction rated arenas now (horde vs horde and ally vs ally)? Before [7336] (Implemented new BattleGroundQueue invitation system) I used this patch:
diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp index a582f38..bfd0ae6 100644 --- a/src/game/BattleGroundMgr.cpp +++ b/src/game/BattleGroundMgr.cpp @@ -828,7 +828,7 @@ void BattleGroundQueue::Update(uint32 bgTypeId, uint32 queue_id, uint8 arenatype // there weren't enough players for a "normal" match // if arena, enable horde versus horde or alliance versus alliance teams here - else if(bg_template->isArena()) + else if(!isRated && bg_template->isArena()) { bool bOneSideHordeTeam1 = false, bOneSideHordeTeam2 = false; bool bOneSideAllyTeam1 = false, bOneSideAllyTeam2 = false;
But this part of code was removed, and now I can't understand where and what checkI should set.
Please, help me. Thanks.
-
Fishing in instances works. Check Zul'gurub for example. I think that something wrong is with map. Server considers, that there is no water there...
Playerbot
in OldCore modifications
Posted
Crashfix: https://github.com/mangosR2/mangos/commit/7165eaed1db6fd20072219fc0cd0c95040e7898d