/lang nombreidioma2 Comandos de servicio:/lang namelanguage2 Service commands: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_windowdisable periodic pressing of the Escape key so that the bot does not close the menu.disable_key_escset the target search speed, in our case it is npc (Warehouse)search_object_timeout=0.1Below 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=enterWe are waiting for the warehouse menu to openwaitspeak=Almacén de objetos|item storagean 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.01open the list of items that can be put into storagekeypress=enterwe wait for the game to say the name of the first item in our bagwaitspeak=%firstitem%skip the errorskip_keypress_errorWe 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=1A 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=enterWe are waiting for a success message.waitspeak=^Depositado|depositedwe 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=10Below is line 26, which the script will go to if it receives an error.sleep=1
breakdisable_key_escDon't forget to turn it on if, for example, after working with the menu your character needs to go somewhere.no_regen_data=int numberif 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 messagePage created in 0.154 seconds with 16 queries.