Lol, not really. Misconceptions about this bot and programming are caused by responses like that. I can't count how many times as I was learning I was turned away from a correct solution by listening to someone who didn't know what they were talking about, instead of trying and investigating for myself.
So you put this in here why?Logging.Write(Color.EatMe, "I have been stroking off Bossland for: " + (TimeSpan)var2.TotalMinutes().ToString());
lol that's halariousSo you put this in here why?
That doesn't tell you the at all how long ago the bot was started.![]()
Meh, wasn't my intention, take it as you may.
Also:
Lol, I had already posted the same thing, previously.![]()
So you put this in here why?
That doesn't tell you the at all how long ago the bot was started.![]()
Custom Action -> "var1 = DateTime.Now;" -- Record Start
Custom Action -> "var2 = (DateTime.Now - (DateTime)var1);" -- Check Time
Custom Action -> "Logging.Write(Color.Red, "Run Time: " + (TimeSpan)var2.TotalHours.ToString());
'object' does not contain a definition for 'TotalHours' and no extension method 'TotalHours' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
<?xml version="1.0" encoding="utf-8"?>
<Professionbuddy>
<CustomAction Code="var1 = DateTime.Now;" />
<While Condition="true" IgnoreCanRun="True">
<If Condition="(DateTime.Now - (DateTime)var1).TotalMinutes > 30" IgnoreCanRun="True">
<CustomAction Code="Lua.DoString("EatMe();");" />
</If>
</While>
</Professionbuddy>
PHP:<?xml version="1.0" encoding="utf-8"?> <Professionbuddy> <CustomAction Code="var1 = DateTime.Now;" /> <While Condition="true" IgnoreCanRun="True"> <If Condition="(DateTime.Now - (DateTime)var1).TotalMinutes > 30" IgnoreCanRun="True"> <CustomAction Code="Lua.DoString("EatMe();");" /> </If> </While> </Professionbuddy>
There you go?
Custom Action -> "var1 = DateTime.Now;" -- Record Start
Custom Action -> "var2 = (DateTime.Now - (DateTime)var1);" -- Check Time
Custom Action -> "Logging.Write(Color.Red, "Run Time: " + (TimeSpan)var2.TotalHours.ToString());
Logging.Write(Color.Red, "Run Time: " + ((TimeSpan)var2).TotalHours.ToString());
Actually I was just about to post that I figured it out![]()
We already did thatSure thing, as long as it's not like get the coords for all halloween buckets ^^