private void RightClickQuestgiver(IWowObject obj) { if (obj.GetType() == typeof(IWowGameobject)) { Bot.Wow.InteractWithObject(obj.BaseAddress); } else if (obj.GetType() == typeof(IWowUnit)) { Bot.Wow.InteractWithUnit(obj.BaseAddress); } }
public void SetTarget(IWowObject unit) { _reader.WriteUInt64((uint)Offsets.WowGame.TargetLastTargetGuid, unit.Guid); SendKey(MappedKeys.TargetLastTarget); SetPlayerFacing(unit.Location); }