raff wrote:is it possible to write a random timer that goes down from a random time like 10-40sek and then it will run this code?
You could remeber the last jump with
Code: Select all
player.LastJump = os.time();
JumpGap = 10 + math.random(30)
and then do the check for that gap value
Code: Select all
if( os.difftime(os.time(), player.LastJump) > JumpGap ) then
...
I agree that the walking of the bot look not very human. In my opinion it is much to straight. And I think only to jump from time to time is not enough. If you jump to often, and I suppose ever 30 seconds is to often it looks also bottish. And perhaps that function should be called while walking, not while reaching a waypoint. Because of the fights between the waypoints, if would be difficult to find a good gap value ... I suppose you don't want to jump at every waypoit reach?
Think if you see one farming at a place. After two hours he is still there farming and jumping. That also looks not so great.
I would like to have a some options to configure the walking. One option/timer for random jumps and some for walking not so straight.