public void Execute(string ICQUIN, string ICQPassword, string targetUINS, string userInput_LootDataString, int bandagesAlertCount = 100) { if (!string.IsNullOrEmpty(ICQUIN) && !string.IsNullOrEmpty(ICQPassword) && !string.IsNullOrEmpty(targetUINS)) { uint uin = 0; uint.TryParse(ICQUIN.Replace(" ", ""), out uin); if (uin > 0) { icqInformer = new ICQInformer(_messanger, uin, ICQPassword, targetUINS.Split(',')); } } if (UseBandages) { BandageHealer bh = new BandageHealer(_messanger, icqInformer, bandagesAlertCount); healer = new AutoHealer(bh); healer.AutoHeal(); } abUser = new AutoAbilityUser("is bleeding", "by the bleed attack", 22, _messanger); abUser.AutoUsePrimaryAbility(); monsterTracker = new MonsterTracker(_messanger); monsterTracker.AutoTrack(); lootArrayProvider = new DataContextProvider(userInput_LootDataString); looter = new AutoLooter(_messanger, lootArrayProvider.OutData); looter.AutoLoot(); }
public BandageHealer(Action <string> sendConsoleMessage, ICQInformer icqInformer, int bandagesLeftICQInform, int maxLife = 0) { _sendConsoleMessage = sendConsoleMessage; _maxLife = (maxLife == 0) ? Stealth.Client.GetSelfMaxLife() : maxLife; _backpackId = Stealth.Client.GetBackpackID(); _icqInformer = icqInformer; _bandagesLeftIcqInform = bandagesLeftICQInform; }