| | 1 | Скрипт обкапывает вокруг персанажа все тайлы ( 2 на 2 ) |
| | 2 | {{{ |
| | 3 | for #y -2 2 1 |
| | 4 | for #x -2 2 1 |
| | 5 | :mining |
| | 6 | set lasttargetx charposx + #x |
| | 7 | set lasttargety charposy + #y |
| | 8 | set lasttargetkind 2 |
| | 9 | send F9 1200 // ЛастОбжект-ВаитФорТаргет-ЛастТаргет |
| | 10 | set timer 0 |
| | 11 | while (lastmsg do you want) and (timer < 10000) |
| | 12 | wait 100 |
| | 13 | end_while |
| | 14 | |
| | 15 | if_not (lastmsg no ore) or (lastmsg mining in) or (lastmsg have no line) or (lastmsg you put) |
| | 16 | wait 500 |
| | 17 | if (lastmsg you see) or (lastmsg targeting) or (lastmsg you have) |
| | 18 | // дает сигнал о том что появился гард руды или игрок и остонавливает скрип или антимакрос |
| | 19 | alarm |
| | 20 | flash |
| | 21 | alarm |
| | 22 | flash |
| | 23 | alarm |
| | 24 | flash |
| | 25 | end_script |
| | 26 | end_if |
| | 27 | |
| | 28 | goto mining |
| | 29 | end_if |
| | 30 | end_for |
| | 31 | end_for |
| | 32 | |
| | 33 | alarm |
| | 34 | flash |
| | 35 | |
| | 36 | end_script |
| | 37 | }}} |