What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Can we add custom methods for ConditionParser?

iyake

Member
Joined
Oct 19, 2014
Messages
143
1) Is there a way to get orderbot to use plugin/custom methods for the condition attribute? i.e. if I wanted to define a HasAtLeastHQ(itemId, Count) method somewhere and have all if/while conditions use it.

2) Is there a way to invoke the parser on a string to get the resulting boolean so that we can leverage condition parser for our own tags?
 
1) just creating a public static class inside the ff14bot namespace should be sufficient. I've already added HasAtLeastHQ etc for the next version which should be ready in a few days.

2)
Code:
var Conditional = ScriptManager.GetCondition(Condition);
return Conditional();
 
Back
Top