Dunno if made already, couldn't find it so made one
what is this used for?: spamming chat
sources used: LukasParazitas http://ugbase.eu/index.php?threads/help-reading-a-string.20798/#post-121582 (I dunno how to make functions in cleo so i just copy pasted his and adjusted it)
what is this used for?: spamming chat
sources used: LukasParazitas http://ugbase.eu/index.php?threads/help-reading-a-string.20798/#post-121582 (I dunno how to make functions in cleo so i just copy pasted his and adjusted it)
Code:
//EXAMPLE
alloc 0@ 256
format 0@ "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM123456789"
alloc 1@ 121 // always alloc 1 more byte than length for '\0'
0AB1: call_scm_func @random_string param_count 3 string 0@ length 120 text_start_pointer 1@
:random_string
{
0@ = string
1@ = length
2@ = text start pointer
}
0C17: 3@ = strlen 0@
for 4@ = 0 to 1@
0085: 5@ = 0@
0209: 6@ = random_int_in_ranges 0 3@
005A: 5@ += 6@
0A8D: 7@ = read_memory 5@ size 1 virtual_protect 1
0A8C: write_memory 2@ size 1 value 7@ virtual_protect 1
2@++
end
0A8C: write_memory 2@ size 1 value 0 virtual_protect 1
0AB2: ret 0
Last edited: