CLEO Help Mining run on foot help

CLEO related
Status
Not open for further replies.

pinkian

Member
Joined
Apr 3, 2014
Messages
10
Reaction score
0
Good day, I am working on my mining run bot that runs from point to point repetitively. Are there any opcodes that would make it possible? not teleporting, just running going to a coordinate.. Thank you

Code:
{$VERSION 3.1.1000}
{$CLEO .cs}

//-------------MAIN---------------
thread 'PINKIAN'

:PINKIAN_11
wait 0
if
  Player.Defined($PLAYER_CHAR)
else_jump @PINKIAN_11

:PINKIAN_12
wait 0
if and
0AB0:   key_pressed 57
0AB0:   key_pressed 48
else_jump @PINKIAN_11

0330: set_player $PLAYER_CHAR infinite_run 1
:PINKIAN_13
06AF: set_player $PLAYER_CHAR sprint_mode 1
07CD: AS_actor $PLAYER_ACTOR walk_to -1855.2616 -1650.1489 25.9632 stop_with_angle 270.0 within_radius 4.0
if 
00EC:   actor $PLAYER_ACTOR sphere 0 near_point -1855.2616 -1650.1489 25.9632 radius 1.0 1.0
else_jump @PINKIAN_13

:PINKIAN_14
07CD: AS_actor $PLAYER_ACTOR walk_to -1867.4261 -1607.9689 21.7578 stop_with_angle 270.0 within_radius 4.0
if 
00EC:   actor $PLAYER_ACTOR sphere 0 near_point -1867.4261 -1607.9689 21.7578 radius 1.0 1.0
else_jump @PINKIAN_14
jump @PINKIAN_13

// -1855.2616 -1650.1489 25.9632
// -1867.4261 -1607.9689 21.7578

Key would be 9+0
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
228
Location
( ͡° ͜ʖ ͡°)
What is your problem  :kidding:

07CD: AS_actor $PLAYER_ACTOR walk_to -1867.4261 -1607.9689 21.7578 stop_with_angle 270.0 within_radius 4.0

U already have an opcode to walk ...
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
228
Location
( ͡° ͜ʖ ͡°)
You forgot to add WAIT 0

WRONG:
:Bla
jf @BLA

CORRECT:
:BLA
WAIT 0
jf @BLA

Code:
{$VERSION 3.1.1000}
{$CLEO .cs}

//-------------MAIN---------------
thread 'PINKIAN'

:PINKIAN_11
wait 0
if
  Player.Defined($PLAYER_CHAR)
else_jump @PINKIAN_11

:PINKIAN_12
wait 0
if and
0AB0:   key_pressed 57
0AB0:   key_pressed 48
else_jump @PINKIAN_11
0330: set_player $PLAYER_CHAR infinite_run 1

:PINKIAN_13
WAIT 0
07CD: AS_actor $PLAYER_ACTOR walk_to -1855.2616 -1650.1489 25.9632 stop_with_angle 270.0 within_radius 4.0
if 
00EC:   actor $PLAYER_ACTOR sphere 0 near_point -1855.2616 -1650.1489 25.9632 radius 1.0 1.0
else_jump @PINKIAN_13

:PINKIAN_14
WAIT 0
07CD: AS_actor $PLAYER_ACTOR walk_to -1867.4261 -1607.9689 21.7578 stop_with_angle 270.0 within_radius 4.0
if 
00EC:   actor $PLAYER_ACTOR sphere 0 near_point -1867.4261 -1607.9689 21.7578 radius 1.0 1.0
else_jump @PINKIAN_14
jump @PINKIAN_13

// -1855.2616 -1650.1489 25.9632
// -1867.4261 -1607.9689 21.7578
 
Status
Not open for further replies.
Top