add_action_speak=error={"text":["^event_keypress_error"], "command":["go_to_line", 20]}
the line below will process the error point by point; in this example, the error may occur on line 20, in which case the bot will proceed to executing the script from line 10.add_action_speak=k_error1={"text":["^event_keypress_error_20"], "command": ["go_to_line", 10]}
the line below will work if the condition is met and there is no error, so the bot will execute the script from line 32.add_action_speak=k_ok={"text":["^event_keypress_ok"], "command":["go_to_line", 32]}
the line below will work if the condition is met on line 29, so the bot will proceed to executing the script from line 32.add_action_speak=k_ok1={"text":["^event_keypress_ok_29"], "command":["go_to_line", 32]}
the line below allows you to ignore one-time errors in the function keypress=keyname=textvar=items=(Goblin|Gnome|Dark elf|Dwarf)
below you need to indicate the first item in your bag, which the game speaks when the menu for selecting items to put in the warehouse opens.var=firstitem=^\d+\sArnebia
enable_restart
open_game_window
disable periodic pressing of the Escape key so that the bot does not close the menu.disable_key_esc
set the target search speed, in our case it is npc (Warehouse)search_object_timeout=0.1
Below we create an event handler; if an error occurs while the script is running, the bot will execute the script from line 26.add_action_speak=error={"text":["^event_keypress_error"], "command":["go_to_line", 26]}
skip errors when pressing keypressskip_keypress_error
enable_search_object=Almacén espaciotemporal|Ansible Space-Time Storehouse=10
keypress=enter
We are waiting for the warehouse menu to openwaitspeak=Almacén de objetos|item storage
an error may occur on the line below, we have handled this above. this script can be processed point by point. if there is an error on the line below, it is better to run the script again. in the current example the script will simply exit. I didn't foresee this when I wrote this script.keypress=s=Depositar objetos|deposit item
timewait=0.01
open the list of items that can be put into storagekeypress=enter
we wait for the game to say the name of the first item in our bagwaitspeak=%firstitem%
skip the errorskip_keypress_error
We are looking for objects whose names we indicated in the variable. if the bot does not find them, it will consider that all items have been placed in the warehouse and will complete its work. Please note that I put the digital value in parentheses; I will use this value further in the variable.keypress=w=(\d+).*?%items%
timewait=0.01
keypress=enter
timewait=1
A field has opened for entering the number of items, I write the value using the variable that I wrote about above.write=~~1
timewait=0.05
keypress=enter
We are waiting for a success message.waitspeak=^Depositado|deposited
we start the cycle again and add items until we put everything that was specified in the variable at the beginning of the script.go_to_line=10
Below is line 26, which the script will go to if it receives an error.sleep=1
break
disable_key_esc
Don't forget to turn it on if, for example, after working with the menu your character needs to go somewhere.no_regen_data=int number
if after number times it is not possible to get hp/mp indicators. then we consider that the game is frozen and end the process with the game/report your message
/helpme
и будет кто-то с модераторов, то модератора призовет на тестовый канал и вы сможете задать ему свой вопрос./p nickname your message
Page created in 0.077 seconds with 19 queries.