This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
macros [2011/07/19 17:47] noen [How Debug works] |
macros [2012/08/21 02:07] dexter [Settings] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Macros ====== | ====== Macros ====== | ||
- | {{:macros.jpg?|}} | + | {{:macros.png?450|}} |
===== Summary ===== | ===== Summary ===== | ||
Macros are powerful tools that let you customize almost everything. Want to do something special in determinated situation? Create a macro and let it do it for you. | Macros are powerful tools that let you customize almost everything. Want to do something special in determinated situation? Create a macro and let it do it for you. | ||
Line 6: | Line 6: | ||
===== Settings ===== | ===== Settings ===== | ||
- | **Active:** when checked, it'll turn your macros on. | + | **Auto Macros Enable:** when checked, it'll turn your macros on. |
- | **Debug:** here is very useful tool that will help to see if your macro is working properly. The Debug works on your Tibia screen showing each step of your macro and how it's going on. | + | **Variables:** Go to the [[variables|Variables]]. |
- | ==== How Debug works ==== | + | **Create |
- | + | ||
- | For instance, you have created this macro: | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | The debug works this way: | + | |
- | //[Macro]Self.Mana< | + | |
- | + | ||
- | // | + | |
- | + | ||
- | // | + | |
- | + | ||
- | Let's say your currently mana is lower than 400: | + | |
- | + | ||
- | //[Macro]Self.Mana< | + | |
- | + | ||
- | //[Macro]300 < | + | |
- | + | ||
- | //[Macro]Hotkey.use(237)=1//: | + | |
- | + | ||
- | It will keep doing this infinitely until you uncheck the Active button (this will turn off the Macros) or uncheck the Debug button. | + | |
- | ==== Constructor ==== | + | |
- | And the most important part! Here is the place where you'll create your macro. | + | |
- | The BBot macro uses the famous If clauses: "If this, do that. If not this, do nothing." | + | |
- | All the commands can be found in [[Macros Commands]]. | + | |
- | + | ||
- | **Accepted operators for macros:** | + | |
- | * < | + | |
- | * < | + | |
- | * < | + | |
- | * < | + | |
- | + | ||
- | So, let's say I want a macro that heal my char //if// I have less than 100 HP //and// there are more than 3 creatures on screen, there are two ways of creating your sample: | + | |
- | + | ||
- | **First Mode: on BBot** | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | After you coded your macro and added a name to it, you must press the " | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | As compiled, your macro will be seen in the first blank square: | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | **Second Mode: on NotePad (advanced)** | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | or | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | Every step of the macro is separated by || or by the ' | + | |
- | + | ||
- | Summit of the macro layout on NotePad: | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | or | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | After you finished your macro on NotePad you can save it in " | + | |
- | + | ||
- | ==== Hints ==== | + | |
- | + | ||
- | If you are playing OTs and the ID of the items are different, you can find its ID by pressing alt+f8. A gray message will appear containing good piece of informations and one of these are " | + | |
- | + | ||
- | If you saw an interesting macro in the forum and wat to use it you canto copy it and paste directly in the Macros by selecting all the macro, right clicking it and in the Macros right click the blank square and click on Paste Codes. | + |