Hey guys, What's the best way for me to create a ConditionParser? Should be something like this? Do I need to use XmlElement? Thank you Code: namespace ff14bot.NeoProfiles { public class GetCount : ConditionParser { public static int GetCount(uint a) { if (MainFun.Counter.ContainsKey(a)) { return MainFun.Counter[a]; } return 0; } } }
Not even close. First ConditionParser is a static class and as such cannot be inherited. Second anything that is static can be accessed. ie: Code: namespace ff14bot.Managers { public static class myclass { public static int InterestingFunction(bool boringvariable) { return int.MaxValue; } } } Could be accessed just by doing Condition="myclass.InterestingFunction(false)"