MexikanoS
Member
- Joined
- Mar 9, 2014
- Messages
- 7
- Reaction score
- 0
Hiho. I'm trying to write a simple fishing bot, that will be enabled/disabled within F10 button. If the cheat is activated it'll send fake key -> enter, and then about 100 instances of space presses. Now the problem is I get "Unknown directive end.", and I preety much don't have a clue on how it should look like in cleo. May some1 look into my code and point me out what should I do? Thx.
Code:
{$CLEO}
0000:
:START
wait 0
if 0AB0: key_down 121 then // F10
0B12: 32@ = 0@ XOR 1
if 32@ == 0
0AD1: show_formatted_text_highpriority "Enabled Fishing Bot" time 2000
end
if 32@ == 1
0AD1: show_formatted_text_highpriority "Disabled Fishing Bot" time 2000
end
end
if 32@ == 1 then
jump @FISHER
end
jump @START
:FAKE_KEYPRESS
2@ = 0xB73458
005A: 2@ += 0@
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
:FISHER
wait 0
if 32@ == 1 then
wait 20
0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x0D val 255
wait 15
0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x0D val 0
wait 15
0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 255
wait 12
0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 0
wait 15
0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 255
wait 12
0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 0
wait 15
// and so on..
jump @START