Help Auto cmd cleo

astro22

Member
Joined
May 20, 2024
Messages
7
Reaction score
0
So i downloaded this cleo and changed command and position . But i have a problem , when it's go to position one it's perfectly type the " materials get " cmd and buy mat . But in second position that it should send " materials deliver " command in the delivery position . Server say " invalid action name " when i type cmd manually it's ok but this cleo can't send cmd . ( the first command in first position works completely fine )
 

Attachments

  • AutoCMD.rar
    7.9 KB · Views: 8

astro22

Member
Joined
May 20, 2024
Messages
7
Reaction score
0
This is script : https://pastebin.com/1gdjhZcn

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'AUTOCMDSENDER'
0662: NOP "MADE BY XZYTRO-SPRINGFIELD COLLABORATION"

:GET_INFO_FROM_INI
wait 0
if
0AAB: file_exists "CLEO\autocmdsender.ini"
else_jump @REJECT
0AF0: 0@ = get_int_from_ini_file "cleo\autocmdsender.ini" section "DELAY" key "MILISECONDS"
0AF4: 1@v = read_string_from_ini_file "cleo\autocmdsender.ini" section "COMMAND1" key "TYPE"
0AF4: 5@v = read_string_from_ini_file "cleo\autocmdsender.ini" section "COMMAND2" key "TYPE"
0AF4: 10@v = read_string_from_ini_file "cleo\autocmdsender.ini" section "COMMAND3" key "TYPE"
0AF4: 15@v = read_string_from_ini_file "cleo\autocmdsender.ini" section "COMMAND4" key "TYPE"
0AF2: 20@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS1" key "X"
0AF2: 21@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS1" key "Y"
0AF2: 22@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS2" key "X"
0AF2: 23@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS2" key "Y"
0AF2: 24@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS3" key "X"
0AF2: 25@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS3" key "Y"
0AF2: 26@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS4" key "X"
0AF2: 27@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS4" key "Y"

:MAIN
wait 0
if and
056D: actor $PLAYER_ACTOR defined
0256: player $PLAYER_CHAR defined
else_jump @MAIN

WHILE TRUE
wait 0
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 20@ 21@ radius 5.0 5.0
then
0AF9: samp say_msg "/%s" 1@v
wait 0@
end
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 22@ 23@ radius 5.0 5.0
then
0AF9: samp say_msg "/%s" 5@v
wait 0@
end
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 24@ 25@ radius 5.0 5.0
then
0AF9: samp say_msg "/%s" 10@v
wait 0@
end
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 26@ 27@ radius 5.0 5.0
then
0AF9: samp say_msg "/%s" 15@v
wait 0@
end
end

:REJECT
wait 0
0ACD: show_text_highpriority "~B~FILE MISSING : '~R~Autocmdsender.ini~B~'" time 2500
0A93: end_custom_thread

This is .ini file : https://pastebin.com/7R0YrgPy

;------------------------------------------------------------;
; Automatic command sender for RP servers ;
; Made by xzytro-springfield collaboration ;
; ugbase.eu ;
;------------------------------------------------------------;
; Important Notes ;
; -----------------------------------------------------------;
; 1. [FREQUENCY] is the frequency of sending the commands ;
; (send command, wait for some seconds, send again) ;
; --- ;
; 2. Do not put "/" before the commands, the cleo already ;
; sends '/' automaticly. To send /getmats, put 'TYPE=getmats';
; --- ;
; 3. Position Z does not matter, the only thing that needs ;
; to be entered is the X and Y coordinates. ;
; --- ;
; 4. MILISECONDS=4000 means the frequency is each 4 seconds ;
; --- ;
;------------------------------------------------------------;
; ;
;-----------------COMMAND-RE-SEND-FREQUENCY------------------;
[DELAY]
MILISECONDS=3000
;-------------------------COMMAND-1--------------------------;
[COMMAND1]
TYPE=materials get

[POS1]
X=2771.1284
Y=-1628.4475
;-------------------------COMMAND-2--------------------------;
[COMMAND2]
TYPE=MATERIALS DELIVER

[POS2]
X=1712.9458
Y=913.2939
;----------------THANKS FOR USING OUR MOD--------------------;
 

astro22

Member
Joined
May 20, 2024
Messages
7
Reaction score
0
Show us your "autocmdsender.ini" please.

This is script : https://pastebin.com/1gdjhZcn

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'AUTOCMDSENDER'
0662: NOP "MADE BY XZYTRO-SPRINGFIELD COLLABORATION"

:GET_INFO_FROM_INI
wait 0
if
0AAB: file_exists "CLEO\autocmdsender.ini"
else_jump @REJECT
0AF0: 0@ = get_int_from_ini_file "cleo\autocmdsender.ini" section "DELAY" key "MILISECONDS"
0AF4: 1@v = read_string_from_ini_file "cleo\autocmdsender.ini" section "COMMAND1" key "TYPE"
0AF4: 5@v = read_string_from_ini_file "cleo\autocmdsender.ini" section "COMMAND2" key "TYPE"
0AF4: 10@v = read_string_from_ini_file "cleo\autocmdsender.ini" section "COMMAND3" key "TYPE"
0AF4: 15@v = read_string_from_ini_file "cleo\autocmdsender.ini" section "COMMAND4" key "TYPE"
0AF2: 20@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS1" key "X"
0AF2: 21@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS1" key "Y"
0AF2: 22@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS2" key "X"
0AF2: 23@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS2" key "Y"
0AF2: 24@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS3" key "X"
0AF2: 25@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS3" key "Y"
0AF2: 26@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS4" key "X"
0AF2: 27@ = get_float_from_ini_file "cleo\autocmdsender.ini" section "POS4" key "Y"

:MAIN
wait 0
if and
056D: actor $PLAYER_ACTOR defined
0256: player $PLAYER_CHAR defined
else_jump @MAIN

WHILE TRUE
wait 0
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 20@ 21@ radius 5.0 5.0
then
0AF9: samp say_msg "/%s" 1@v
wait 0@
end
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 22@ 23@ radius 5.0 5.0
then
0AF9: samp say_msg "/%s" 5@v
wait 0@
end
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 24@ 25@ radius 5.0 5.0
then
0AF9: samp say_msg "/%s" 10@v
wait 0@
end
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 26@ 27@ radius 5.0 5.0
then
0AF9: samp say_msg "/%s" 15@v
wait 0@
end
end

:REJECT
wait 0
0ACD: show_text_highpriority "~B~FILE MISSING : '~R~Autocmdsender.ini~B~'" time 2500
0A93: end_custom_thread

This is .ini file :https://pastebin.com/7R0YrgPy

;------------------------------------------------------------;
; Automatic command sender for RP servers ;
; Made by xzytro-springfield collaboration ;
; ugbase.eu ;
;------------------------------------------------------------;
; Important Notes ;
; -----------------------------------------------------------;
; 1. [FREQUENCY] is the frequency of sending the commands ;
; (send command, wait for some seconds, send again) ;
; --- ;
; 2. Do not put "/" before the commands, the cleo already ;
; sends '/' automaticly. To send /getmats, put 'TYPE=getmats';
; --- ;
; 3. Position Z does not matter, the only thing that needs ;
; to be entered is the X and Y coordinates. ;
; --- ;
; 4. MILISECONDS=4000 means the frequency is each 4 seconds ;
; --- ;
;------------------------------------------------------------;
; ;
;-----------------COMMAND-RE-SEND-FREQUENCY------------------;
[DELAY]
MILISECONDS=3000
;-------------------------COMMAND-1--------------------------;
[COMMAND1]
TYPE=materials get

[POS1]
X=2771.1284
Y=-1628.4475
;-------------------------COMMAND-2--------------------------;
[COMMAND2]
TYPE=MATERIALS DELIVER

[POS2]
X=1712.9458
Y=913.2939
;----------------THANKS FOR USING OUR MOD--------------------;
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,706
Solutions
1
Reaction score
110
Yeah it's the shitty @v vars you have to use for ini operations having a 16 character limit. You could try this mod as a superior alternative to be fair.
 

astro22

Member
Joined
May 20, 2024
Messages
7
Reaction score
0
Yeah it's the shitty @v vars you have to use for ini operations having a 16 character limit. You could try this mod as a superior alternative to be fair.
i downloaded this one and edited like this but still say invalid command and does not work properly . maybe i edited this wrong
IF_I_PRESS_VIRTUAL_KEY 48 DELAY 1000 THEN_SAY
I'M PRESSING THE KEY 0 .. AND I LOVE OPCODE.eXe

IF_I_PRESS_VIRTUAL_KEY 49 DELAY 1000 THEN_SAY
I'M PRESSING THE KEY 1

IF_I_PRESS_VIRTUAL_KEY 50 DELAY 1000 THEN_SAY
I'M PRESSING THE KEY 2

IF_I_PRESS_VIRTUAL_KEY 51 DELAY 0 THEN_SAY
IM SPAMMING THIS TEXT SO FAST!!!

IF_IM_NEAR
AddStaticVehicle(463,2771.9001,-1628.3331,11.7172,90.5302,27,126); // /materials get
THEN_SAY
/materials get

IF_IM_NEAR
AddStaticVehicle(463,1711.3568,915.1714,10.3789,228.4255,27,126); // /materials deliver
THEN_SAY
/materials deliver
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,207
Solutions
6
Reaction score
914
Location
Lithuania
This will send any text on position.
Ini file will be created once game launched.
 

Attachments

  • AutoTextOnPositionSender.cs
    41.8 KB · Views: 7
Top