As you can see from the following screenshot:
http://i28.tinypic.com/2s76n1u.jpg
There are still some errors compiling with the latest rev of ArcEmu. Yes I did update the GuaEngine![]()
As you can see from the following screenshot:
http://i28.tinypic.com/2s76n1u.jpg
There are still some errors compiling with the latest rev of ArcEmu. Yes I did update the GuaEngine![]()
Fixed, update the engine.
http://i27.tinypic.com/29xvhtz.jpg
Still getting errors when compiling![]()
Tried all I could, but arc doesn't support unit selections so GetTarget() is now broken on the ArcEmu branch. I seriously wonder why I brought up arc support again.
Gastric there are just Syntax errors they are easy to fix. Take GetSeletion() not GetTarget() I wrote new lua commands and I had the same errors
Malulu, GetSelection() is not a member of Unit*, therefore cannot be used.
GetSelection() is a Member of Unit...
Unit:SummonCreature(X); -- Summons Creature at Summoners Location
Unit:FollowSummoner(); -- Summoned Creature follows the summoner
This is for my pet project. Would be greatly appreciated.
gastric what about x64? for both aspire cores?
Last edited by morpheux; 07-30-2009 at 11:07 PM.
Epic, +Rep
In the Arc core to get the selection of the unit they use GetNextTarget(). It is a member of unit, too.
Here's an example of when it's used in the core:Unit* AIInterface::GetNextTarget()
I hope this is what you are looking for.float combatReach[2]; // Calculate Combat Reach
float distance = m_Unit->CalcDistance(GetNextTarget());
combatReach[0] = GetNextTarget()->GetModelHalfSize();
combatReach[1] = _CalcCombatRange(GetNextTarget(), false);
if( (
// distance >= combatReach[0] && //removed by Zack. You can create an exploit with this that creature will never attack
distance <= combatReach[1] + DISTANCE_TO_SMALL_TO_WALK )
// || gracefull_hit_on_target == GetNextTarget()
) // Target is in Range -> Attack
I fail to see how GetNextTarget() is going to generate the Unit's selection.
Alright, you are correct, in my tests GetNextTarget never returned anything, even though, in the core, when they call the 'current target' they always use GetNextTarget.
But ->GetUInt64Value(UNIT_FIELD_TARGET) successfully returned the GUID of what the unit was targeting.
If that still isn't what you need then you could make a function that checks the unit's target. It would check if the unit is casting, if true, return ->GetCurrentSpell()->m_targets.m_unitTarget, otherwise return the main tank, since if it's not casting then it would be targeting main tank anyway.
But my most recommended suggestion is to try ->GetUInt64Value(UNIT_FIELD_TARGET).
Just trying to help.
Much obliged, my time is short and I really don't give 2 shits about ArcEmu support
Updating the engine now.