public PropertyInfo GetFirtTargetedPropertyInfo() { if (PropertyInfo != null) { return(PropertyInfo); } if (BaseSite == null) { return(null); } return(BaseSite.GetFirtTargetedPropertyInfo()); }
public static void Main(string[] args) { //Initialize the site you want to test Site = new Bitsler(); //Create a list of param values List <BaseSite.LoginParamValue> param = new List <BaseSite.LoginParamValue>(); foreach (var x in Site.LoginParams) { Console.Write(x.Name + ": "); string value = Console.ReadLine(); param.Add(new BaseSite.LoginParamValue { Param = x, Value = value }); } //subscribe to site events Site.BetFinished += Site_BetFinished; Site.Error += Site_Error; Site.LoginFinished += Site_LoginFinished; Site.Notify += Site_Notify; Site.OnResetSeedFinished += Site_OnResetSeedFinished; Site.OnTipFinished += Site_OnTipFinished; Site.OnWithdrawalFinished += Site_OnWithdrawalFinished; Site.StatsUpdated += Site_StatsUpdated; //Log in using the params Site.LogIn(param.ToArray()); Site.Currency = 1; Console.WriteLine("Wait for site to finish logging in then press enter"); Console.ReadLine(); Console.WriteLine("Placing test bet"); //Site.PlaceBet(new PlaceDiceBet(100000001, false,75 )); NextTest(); Console.WriteLine("Press enter to reset seed"); Console.ReadLine(); Site.ResetSeed(); }
public int CalculateWinnableType(BaseSite Site) { if (Chance >= 50 && Roll > Site.MaxRoll - Chance && Roll < Chance) { WinnableType = 1; } else if (Chance < 50 && Roll < Site.MaxRoll - Chance && Roll > Chance) { WinnableType = 2; } else if (GetWin(Site)) { WinnableType = 3; } else { WinnableType = 4; } //check if roll is between overlap //else if chance <50% check if roll is between non overlap //else if win //else if loss return(WinnableType); }
public override bool GetWin(BaseSite Site) { throw new NotImplementedException(); }
public abstract bool GetWin(BaseSite Site);
public override bool GetWin(BaseSite Site) { return(((bool)High ? (decimal)Roll > (decimal)Site.MaxRoll - (decimal)(Chance) : (decimal)Roll < (decimal)(Chance))); }