PopandaulX
Active member
- Joined
- Jul 15, 2013
- Messages
- 189
- Reaction score
- 1
Hello. I need to find a way to reload all the cleo scripts, without restarting the game.
0ABA: end_custom_thread_named 'TXDTEST'
{$CLEO .cs}
03A4: name_thread 'TXDTEST'
{$CLEO .cs}
thread 'TXDTEST'
{$CLEO .cs}
:TEXTURE
thread 'TXDTEST'// <--- thread name, max. 7 charackters are valid, written as short string (single apostrophe)
wait 1000
//this script shows a texture on screen as soon as Player is availabel ingame
while true
wait 0
if
0256: player $PLAYER_CHAR defined
then
0390: load_txd_dictionary "ld_bum"// <--- texture archive name, max. 7 charackters are valid, written as long string (double apostrophe)
038F: load_texture "bum2" as 1
while 0256: player $PLAYER_CHAR defined
wait 0
03F0: enable_text_draw 1
038D: draw_texture 1 position 150.0 130.0 size 180.5 210.0 RGBA 255 255 255 255
end
end
end
0ABA: end_custom_thread_named 'TXDTEST'
0A92: create_custom_thread "TEXTURE.cs"
{$CLEO .cs}
:Refresh_Cleoscript
thread 'RECLEO'
wait 1000
while true
wait 0
if
0256: player $PLAYER_CHAR defined
then
if
0AB0: key_pressed 8//--------------------------------- press Backspace
then
0ABA: end_custom_thread_named 'TXDTEST' // - cleo 3 -
repeat
wait 0
until 8AB0: not key_pressed 8
0A92: create_custom_thread "TEXTURE.cs" // - cleo 3 -
end
end
end
0AAB: file_exists "CLEO\TEXTURE.cs"
0AAA: 0@ = thread 'TXDTEST' pointer
if
not 0@ == 0
then
{$CLEO .cs}
:Refresh_Cleoscript
thread 'RECLEO'
wait 1000
while true
wait 0
if
0256: player $PLAYER_CHAR defined
then
if
0AB0: key_pressed 8//--------------------------------- press Backspace
then
if
0AAB: file_exists "CLEO\TEXTURE.cs"
then
0AAA: 0@ = thread 'TXDTEST' pointer
if
not 0@ == 0
then
0ABA: end_custom_thread_named 'TXDTEST' // - cleo 3 -
repeat
wait 0
until 8AB0: not key_pressed 8
0A92: create_custom_thread "TEXTURE.cs" // - cleo 3 -
end
end
end
end
end