F forgasim New Member Joined Oct 16, 2014 Messages 2 Reaction score 0 Oct 16, 2014 #1 As per the title, Im just trying to set up a way to make my account drink workers comps each time it comes off cool down and im failing at finding the commands in the API
As per the title, Im just trying to set up a way to make my account drink workers comps each time it comes off cool down and im failing at finding the commands in the API
G goldenlion New Member Joined Oct 20, 2013 Messages 106 Reaction score 0 Oct 17, 2014 #2 UseItem("Worker's Compensation");
G grunt7 New Member Joined Sep 21, 2014 Messages 6 Reaction score 0 Oct 17, 2014 #3 I don't use the cooldown. Something like this has been working for me while(!UseItem("Worker's Compensation")) { Thread.Sleep(msec); }
I don't use the cooldown. Something like this has been working for me while(!UseItem("Worker's Compensation")) { Thread.Sleep(msec); }
K Karls New Member Joined Apr 11, 2014 Messages 324 Reaction score 2 Oct 18, 2014 #4 Something like that? (me.opPoints is your current labor points) Code: while (true) { if (me.opPoints < 3500 && itemCooldown("Worker's Compensation") == 0) UseItem("Worker's Compensation"); else Thread.Sleep(1000); }
Something like that? (me.opPoints is your current labor points) Code: while (true) { if (me.opPoints < 3500 && itemCooldown("Worker's Compensation") == 0) UseItem("Worker's Compensation"); else Thread.Sleep(1000); }
G grunt7 New Member Joined Sep 21, 2014 Messages 6 Reaction score 0 Oct 18, 2014 #5 Yes, that is much better.