Graveen wrote:If you can't see the problem, then this is the problem
// Duel should end if players join group and trys to attack
if (ad.Attacker.Group != null && ad.Attacker.Group.IsInTheGroup(ad.Target))
{
DuelStop();
}
public virtual bool AddMember(GameLiving living)
{
lock (m_groupMembers)
{
if (m_groupMembers.Contains(living))
return false;
m_groupMembers.Add(living);
}
living.Group = this;
living.GroupIndex = (byte)(MemberCount - 1);
UpdateGroupWindow();
// update icons of joined player to everyone in the group
UpdateMember(living, true, false);
// updae all icons for just joined player
GamePlayer p = living as GamePlayer;
if (p != null)
{
p.Out.SendGroupMembersUpdate(true);
if (p.DuelTarget != null)
p.DuelStop();
}
SendMessageToGroupMembers(living.Name + " has joined the group.", eChatType.CT_System, eChatLoc.CL_SystemWindow);
GameEventMgr.Notify(GroupEvent.MemberJoined, this, new MemberJoinedEventArgs(living));
return true;
}
Return to “%s” DOL Code Contributions
Users browsing this forum: No registered users and 1 guest