CLEO Help Looking for help with this triggerbot

CLEO related
Status
Not open for further replies.

peka

Active member
Joined
Oct 14, 2018
Messages
46
Reaction score
6
Hello.
Soo i downloaded the triggerbot from springfield, here is the code:

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
thread "trig"
wait 1000

:TRIG_15
wait 0
if
00E1: player 0 pressed_key 6
else_jump @TRIG_186
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
0AB1: call_scm_func @TRIG_228 4 300.0 1@ 2@ 3@ 4@ 5@ 6@ 7@ 8@ 9@
0AB1: call_scm_func @TRIG_327 6 4@ 5@ 6@ 7@ 8@ 9@ 10@ 11@ 12@
0AB1: call_scm_func @TRIG_993 4 10@ 11@ 12@ 1.0 0@
if
not 0@ == -1
else_jump @TRIG_186
0AB1: call_scm_func @TRIG_193 1 34

:TRIG_186
jump @TRIG_15

:TRIG_193
1@ = 12006488
005A: 1@ += 0@ // (int)
0A8C: write_memory 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0

:TRIG_228
0A9F: 12@ = current_thread_pointer
0AB1: call_scm_func @TRIG_885 2 12@ 4 10@
0AB1: call_scm_func @TRIG_885 2 12@ 7 11@
0AA6: call_method 5327216 struct 11989032 num_params 6 pop 0 11@ 10@ 3@ 2@ 1@ 0@
0AB2: ret 6 4@ 5@ 6@ 7@ 8@ 9@

:TRIG_327
0A96: 11@ = actor $PLAYER_ACTOR struct
0AB1: call_scm_func @TRIG_415 17 0@ 1@ 2@ 3@ 4@ 5@ 1 1 1 1 0 0 0 11@ 0 0 0 6@ 7@ 8@ 9@ 10@
0AB2: ret 3 6@ 7@ 8@

:TRIG_415
if
not 13@ == 0
else_jump @TRIG_447
0A8C: write_memory 12045672 size 4 value 13@ virtual_protect 0

:TRIG_447
0A8C: write_memory 12045680 size 1 value 11@ virtual_protect 0
0A9F: 26@ = current_thread_pointer
0AB1: call_scm_func @TRIG_885 2 26@ 0 22@
0AB1: call_scm_func @TRIG_885 2 26@ 3 23@
0AB1: call_scm_func @TRIG_885 2 26@ 17 24@
0AB1: call_scm_func @TRIG_885 2 26@ 21 25@
0AA7: call_function 5683712 num_params 12 pop 12 16@ 15@ 14@ 10@ 9@ 8@ 7@ 6@ 25@ 24@ 23@ 22@ 31@
if
not 13@ == 0
else_jump @TRIG_620
0A8C: write_memory 12045672 size 4 value 0 virtual_protect 0

:TRIG_620
if
not 31@ == 0
else_jump @TRIG_864
if and
not 17@ == 0.0
not 18@ == 0.0
not 19@ == 0.0
else_jump @TRIG_864
050A: 20@ = distance_between_XYZ 0@ 1@ 2@ and_XYZ 17@ 18@ 19@
if
12@ == 1
else_jump @TRIG_844
0A9F: 26@ = current_thread_pointer
0AB1: call_scm_func @TRIG_885 2 26@ 27 30@
0AA7: call_function 7233968 num_params 7 pop 7 30@ 5@ 4@ 3@ 2@ 1@ 0@ 31@
if
not 31@ == 0
else_jump @TRIG_844
0087: 17@ = 27@ // (float)
0087: 18@ = 28@ // (float)
0087: 19@ = 29@ // (float)
050A: 20@ = distance_between_XYZ 0@ 1@ 2@ and_XYZ 27@ 28@ 29@

:TRIG_844
0AB2: ret 5 17@ 18@ 19@ 20@ 21@

:TRIG_864
0AB2: ret 5 3@ 4@ 5@ 0.0 0

:TRIG_885
if
not 0@ == 0
else_jump @TRIG_978
1@ *= 4
0A8E: 2@ = 0@ + 220 // int
if
2@ == 1
else_jump @TRIG_956
1@ += 10783072
jump @TRIG_971

:TRIG_956
005A: 1@ += 0@ // (int)
1@ += 60

:TRIG_971
jump @TRIG_985

:TRIG_978
1@ = 0

:TRIG_985
0AB2: ret 1 1@

:TRIG_993
29@ = 0
0A8D: 4@ = read_memory 12010640 size 4 virtual_protect 0
4@ += 4
0A8D: 4@ = read_memory 4@ size 4 virtual_protect 0
5@ = 0

:TRIG_1040
0A8D: 6@ = read_memory 4@ size 1 virtual_protect 0
4@ += 1
if and
6@ >= 0
128 > 6@
else_jump @TRIG_1187
005A: 6@ += 5@ // (int)
if and
803C: not $PLAYER_ACTOR == 6@ // (int)
056D: actor 6@ defined
else_jump @TRIG_1187
Actor.StorePos(6@, 8@, 9@, 10@)
050A: 7@ = distance_between_XYZ 0@ 1@ 2@ and_XYZ 8@ 9@ 10@
if
8025: not 7@ > 3@ // (float)
else_jump @TRIG_1187
29@ = 1
jump @TRIG_1212

:TRIG_1187
5@ += 256
5@ > 35584
else_jump @TRIG_1040

:TRIG_1212
if
29@ == 1
else_jump @TRIG_1238
0AB2: ret 1 6@

:TRIG_1238
0AB2: ret 1 -1

Is it possible to turn this cleo into an .exe that can be injected into the game that would work on the r2 version of samp. I would pay for it if it's needed.
Thanks!
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
sure, u need to search/make all the corresponding c++ funcs for each cleo func and transform the code line by line into a runnable .exe console-app-style or an injectable .dll style
also, i'd rather create my own from scratch than trying to decypher and transform that lmeo
 

peka

Active member
Joined
Oct 14, 2018
Messages
46
Reaction score
6
sure, u need to search/make all the corresponding c++ funcs for each cleo func and transform the code line by line into a runnable .exe console-app-style or an injectable .dll style
also, i'd rather create my own from scratch than trying to decypher and transform that lmeo
Okay, thanks for the comment. Are you maybe able to do it and then send it to me in pms, willing to pay if needed, i would really like to do it but im new to coding and stuff.
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
Haha. Why should i PM you? You are the one who needs something, not me. And also it was a joke w/ 99$. I tried to make a trigger for my old VS cheat and it was detectable by SAMPCAC and i had no ideea why :/
 

peka

Active member
Joined
Oct 14, 2018
Messages
46
Reaction score
6
Haha. Why should i PM you? You are the one who needs something, not me. And also it was a joke w/ 99$. I tried to make a trigger for my old VS cheat and it was detectable by SAMPCAC and i had no ideea why :/
Oh okay lol, nothing then i guess :p
 
Status
Not open for further replies.
Top