maxibaby Posted January 2, 2016 Share Posted January 2, 2016 Hello guys, would love to know how can i check if my character is walking or running, and if stamina > X, get him running instead of walking Quote Link to comment Share on other sites More sharing options...
Chris Posted January 2, 2016 Share Posted January 2, 2016 /** Here ya go **/ if (getSettings().getRunEnergy() > 30 && !getSettings().isRunning()) getSettings().setRunning(true); 1 Quote Link to comment Share on other sites More sharing options...
AresScripts Posted January 2, 2016 Share Posted January 2, 2016 if (!getScript().getSettings().isRunning() && getScript().getSettings().getRunEnergy() > 20){ if(getScript().getSettings().setRunning(true)) getScript().sleep(300); } Hope this helps -Ares Quote Link to comment Share on other sites More sharing options...
maxibaby Posted January 2, 2016 Author Share Posted January 2, 2016 Love ya Quote Link to comment Share on other sites More sharing options...