MichaelScott
Member
- Joined
- Apr 29, 2019
- Messages
- 15
- Reaction score
- 0
Hello, I have just started learning to script with SannyBuilder and i ran into some problems that i can't find any fixes to it. Here is the code:
First of all, whenever i press the multiply button - *, it should write command /fish in chat, but instead i get error in chat: Exception 0x000005 0x0, something like that.
Also, I can't find how to make the cleo script press any button, because I will need it later. For example it should spam ENTER button for 5 seconds.
Any help is appreciated.
Code:
{$CLEO .cs}
0000: NOP
thread 'snippet'
:label_1
wait 0
if 0AB0: key_pressed 106
then 0AF9: "/fish"
0AD1: show_text "Started fishing" time_in_ms 2000
wait 1000
jump @label_1
else jump @label_1
end
First of all, whenever i press the multiply button - *, it should write command /fish in chat, but instead i get error in chat: Exception 0x000005 0x0, something like that.
Also, I can't find how to make the cleo script press any button, because I will need it later. For example it should spam ENTER button for 5 seconds.
Any help is appreciated.