This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
add_types [2016/05/11 14:22] dexter [Suplies Withdraw] |
add_types [2021/11/15 16:43] (current) |
||
---|---|---|---|
Line 131: | Line 131: | ||
// Check if the creature Rafzan is in a range smaller or equal to 3, if true the cavebot go to the next point, otherwise the cavebot reset to the first waypoint item. // | // Check if the creature Rafzan is in a range smaller or equal to 3, if true the cavebot go to the next point, otherwise the cavebot reset to the first waypoint item. // | ||
+ | |||
+ | |||
+ | * **!MyVariable!< | ||
+ | |||
+ | // Check if the variable MyVariable is 3. Note: the left operant must be smaller than 100 (so MyVariable should be less than 100), otherwise it will consider as a item ID FullCheck. It is a good practice to put conditions on macros and only checking if their result is true on the fullcheck, e.g.: a macro updates a variable CanUseSDRune, | ||
+ | |||
**Note:** if you need multiple conditions you **MUST** use the same fullcheck code grouping them like: | **Note:** if you need multiple conditions you **MUST** use the same fullcheck code grouping them like: | ||
+ | |||
// | // | ||
+ | |||
**Sample:** | **Sample:** | ||
+ | |||
// | // | ||
+ | |||
===== Full Check Label ===== | ===== Full Check Label ===== | ||
Line 154: | Line 164: | ||
===== Supplies Withdraw ===== | ===== Supplies Withdraw ===== | ||
- | The **Suplies | + | The **supplies |
**Code Parameter** | **Code Parameter** | ||
- | You must pass a suplies | + | You must pass a supplies |
**id1 count1; id2 count2; id3 count3...** | **id1 count1; id2 count2; id3 count3...** | ||
Line 169: | Line 179: | ||
**IMPORTANT**: | **IMPORTANT**: | ||
- | **Errors** | + | |
+ | **FAQ: Errors** | ||
* **Full backpack:** a error will happen when your backpack is full | * **Full backpack:** a error will happen when your backpack is full | ||
* **Low capacity:** a error will happen when you don't have capacity to push the items | * **Low capacity:** a error will happen when you don't have capacity to push the items | ||
- | * **Unable to gather all:** a error will happen when the **Suplies | + | * **Unable to gather all:** a error will happen when the **supplies |