CLEO Run or Sprint recorded path [0.3.7]

Spix

Well-Known Member
Joined
Sep 23, 2013
Messages
353
Likes
0
Points
66
#1
Hi im releasing this mod in beta stage, just want to know what you guys want to add and improve, if you like it.

So what is this mod:

It will allow you to record a route. After you recorded the route/path, you can loop it / your character will run the path repeatedly. 

Commands: 

/.rec                  - Starts recording your character.
/.stoprec            - When you're done type /.stoprec to save the path.

/.play                - Your character starts to follow the recorded path.
/.stop                - Makes your character stop follow the path.


Install: Put everything inside the cleo folder.


This mod is in Beta Stage which means you can only have one path saved at the time. You can quit the server then join a new server and the path is still saved.

Sincerely Spexx  :-/
 

Attachments

OP
OP
Spix

Spix

Well-Known Member
Joined
Sep 23, 2013
Messages
353
Likes
0
Points
66
#4
SpexxTr0n said:
Hi im releasing this mod in beta stage, just want to know what you guys want to add and improve, if you like it.

So what is this mod:

It will allow you to record a route. After you recorded the route/path, you can loop it / your character will run the path repeatedly. 

Commands: 

/.rec                  - Starts recording your character.
/.stoprec            - When you're done type /.stoprec to save the path.

/.play                - Your character starts to follow the recorded path.
/.stop                - Makes your character stop follow the path.


Install: Put everything inside the cleo folder.


This mod is in Beta Stage which means you can only have one path saved at the time. You can quit the server then join a new server and the path is still saved.

Sincerely Spexx  :-/
Yeah, crypted, test it ingame it will work.

 

SobFoX

Well-Known Member
Joined
Jul 14, 2015
Messages
106
Likes
0
Points
16
Website
www.youtube.com
10
#7
Very nice, I would add that the system saves the recordings as well as examining everything you're doing all information you send to the server I was going that it will work on real-not Raknet for example, then it makes it so you can understand what that work
 

springfield

Well-Known Member
Staff member
Joined
Feb 18, 2005
Messages
2,935
Likes
17
Points
88
Website
www.ugbase.eu
#12
Oh, another mod by Spexx.
Let's see what is this.

Code:
{$CLEO}
                                                
Thread "BySpexx"       
wait 2000     

0B34: samp register_client_command ".play" to_label @Toggle
0B34: samp register_client_command ".stop" to_label @Restart
0AF0: [email protected] = get_int_from_ini_file "cleo\Paths\Options.ini" section "Options" key "sprint"

WHILE TRUE
    wait 0
        if
        [email protected] == true
        then
        [email protected] = 0       
        0A9A: [email protected] = openfile "CLEO\Paths\WalkPath.txt" mode "rb" 
            0A9D: readfile [email protected] size 4 to [email protected]
            0A9D: readfile [email protected] size 4 to [email protected]
            0A9D: readfile [email protected] size 4 to [email protected] 
            0AB1: call @char_goto 4 XYZ [email protected] [email protected] [email protected]  sprint [email protected] 
            repeat
            wait 0     
            [email protected] = 0xB73458
            [email protected] += 0x20
            0A8C: write_memory [email protected] size 1 value 0 virtual_protect 0
            [email protected] = 0xB73458
            [email protected] += 0x3
            0A8C: write_memory [email protected] size 1 value 255 virtual_protect 0     
            [email protected] += 1                       
            if
            00ED:   actor $PLAYER_ACTOR sphere 0 near_point [email protected] [email protected] radius 1.0 1.0 on_foot
            then       
            0AF8: samp add_message_to_chat "[%d]Reading Path{00FF00} X %f {0000FF}Y %f {FF0000}Z %f" color -1 [email protected] [email protected] [email protected] [email protected]             
            0A9D: readfile [email protected] size 4 to [email protected]
            0A9D: readfile [email protected] size 4 to [email protected]
            0A9D: readfile [email protected] size 4 to [email protected]    
            0AB1: call @char_goto 4 XYZ [email protected] [email protected] [email protected]  sprint [email protected]                                
            end                      
            UNTIL 0AD6:   end_of_file [email protected] reached     
            0A9B: closefile [email protected] 
        end
END

:Restart
Print "Stopped Path." 1000
wait 500
0A92: RESTART "WalkPath.CS"
004E: STOP THIS CLEO
samp.CmdRet()

:Toggle
if
[email protected] == true
then
[email protected] = false
else
[email protected] = true
Print "Following Path.." 1000
end
samp.CmdRet()

:char_goto
repeat
    wait 0
    00A0: store_actor $PLAYER_ACTOR position_to [email protected] [email protected] [email protected]
    0063: [email protected] -= [email protected]
    0063: [email protected] -= [email protected]
    0604: get_Z_angle_for_point [email protected] [email protected] store_to [email protected]
    005B: [email protected] += [email protected]
    005B: [email protected] += [email protected]
    [email protected] *= 0.01745
    0A96: [email protected] = actor $PLAYER_ACTOR struct
    [email protected] += 0x558
    0A8C: write_memory [email protected] size 4 value [email protected] virtual_protect 0
    if
        [email protected] == 0
    then
        [email protected] = 0xB73458
        [email protected] += 0x20
        0A8C: write_memory [email protected] size 1 value 0 virtual_protect 0
        [email protected] = 0xB73458
        [email protected] += 0x3
        0A8C: write_memory [email protected] size 1 value 255 virtual_protect 0
    else
        [email protected] = 0xB73458
        [email protected] += 0x20
        0A8C: write_memory [email protected] size 1 value 255 virtual_protect 0
        [email protected] = 0xB73458
        [email protected] += 0x3
        0A8C: write_memory [email protected] size 1 value 255 virtual_protect 0
    end                  
until 00ED: actor $PLAYER_ACTOR 0 near_point [email protected] [email protected] radius 0.5 0.5 on_foot
0AB2: ret 0
Oh, but what is this? You stole parts from opcode's vehicle path recorder and used a function by russian scripter gcode.
I see your keyboard, especially the C and P keys are going strong. Good job.
 

springfield

Well-Known Member
Staff member
Joined
Feb 18, 2005
Messages
2,935
Likes
17
Points
88
Website
www.ugbase.eu
#19
SpexxTr0n said:
Yeah you can see my keyboard, but i can't see your dick  :looky:
Stole parts? You don't know opcode database here springfield you may try it:  http://gtag.gtagaming.com/opcode-database/

It's a snippet also here: https://en.wikipedia.org/wiki/Snippet_(programming)
You can tell because, "UNTIL 0AD6:   end_of_file [email protected] reached" you don't use directives in capslock never, but here you did, cause that's how opcode's cleo source code was.

And don't give me that shit, cause you're too stupid to think even simple stuff like this, this is not made by you, you're a piece of shit. 

So when 99% of the script is not made by you, give credits, even if snippets are used. Next time, you'll be permanent banned.

SpexxTr0n said:
There is nothing about giving credit by using snippets - http://ugbase.eu/Thread-General-UGBASE-EU-Rules 
So you cant permanent ban me for that lol.
[font='Source Sans Pro', Tahoma, 'Helvetica Neue', Arial, sans-serif]2.7.1. If you release something on our forums, please aware of the creator and credit them   properly – no one likes nasty stealers.[/font]

[font='Source Sans Pro', Tahoma, 'Helvetica Neue', Arial, sans-serif]Like i said, when over 95% of the mod is made by someone else you need to provide credits. And not claim other works as yours.[/font]
 
OP
OP
Spix

Spix

Well-Known Member
Joined
Sep 23, 2013
Messages
353
Likes
0
Points
66
#20
springfield said:
SpexxTr0n said:
Yeah you can see my keyboard, but i can't see your dick  :looky:
Stole parts? You don't know opcode database here springfield you may try it:  http://gtag.gtagaming.com/opcode-database/

It's a snippet also here: https://en.wikipedia.org/wiki/Snippet_(programming)
You can tell because, "UNTIL 0AD6:   end_of_file [email protected] reached" you don't use directives in capslock never, but here you did, cause that's how opcode's cleo source code was.

And don't give me that shit, cause you're too stupid to think even simple stuff like this, this is not made by you, you're a piece of shit. 

So when 99% of the script is not made by you, give credits, even if snippets are used. Next time, you'll be permanent banned.
There is nothing about giving credit by using snippets - http://ugbase.eu/Thread-General-UGBASE-EU-Rules 
So you cant permanent ban me for that lol.


And i also copied the "END" in the end because big letters hahah?

 
Top