[Tutorial] Guia de macro para iniciantes

Discussão em 'Tutoriais macro' iniciado por DeathStroker, 24 Junho 2013.

Status do Tópico:
Não esta aberto para novas mensagens.
  1. TheDarkDescent

    TheDarkDescent Craftlandiano
    VIP

    Afiliado:
    10 Abril 2013
    Mensagens:
    2,342
    Curtidas Recebidas:
    825
    Curtiu:
    846
    Sexo:
    Masculino
    Cubos:
    467.00
    Nick:
    TheDarkDescent
    Alguém pode me dizer a sintaxe para fazer um loop infinito com um comando dentro?
     
    ThorsBlack curtiu isso.
  2. Flavio11

    Flavio11 Craftlandiano
    VIP

    Afiliado:
    25 Maio 2012
    Mensagens:
    4,524
    Curtidas Recebidas:
    1,638
    Curtiu:
    1,906
    Sexo:
    Masculino
    Localização:
    Não sei
    Cubos:
    2,406.00
    Nick:
    Flavio1
    Clan:
    FoF
    Belo Tutorial :D
     
    DeathStroker curtiu isso.
  3. josenouki

    josenouki Craftlandiano
    VIP

    Afiliado:
    9 Janeiro 2012
    Mensagens:
    6,345
    Curtidas Recebidas:
    1,785
    Curtiu:
    1,279
    Sexo:
    Masculino
    Localização:
    Uberlandia MG
    Cubos:
    221.00
    Nick:
    josenouki da NTC
    Muito bom
     
    ThorsBlack curtiu isso.
  4. BeetleJuice

    BeetleJuice Craftlandiano
    VIP

    Afiliado:
    23 Janeiro 2013
    Mensagens:
    618
    Curtidas Recebidas:
    1,318
    Curtiu:
    295
    Cubos:
    2,263.00
    Nick:
    beetleejuice
    Pra configurar um script seria bom dar uma lida no readme.txt que vem junto com o mod. Ou ler aqui: http://eq2.co.uk/min....8.5_readme.txt
    Atualmente o autor não atualizou o "leia-me" até a versão atual do mod (0.9.9), mas ele escreveu que pretende criar um site com toda documentação.
    Por enquanto, ler a changelog ajuda muito, mas está tudo em inglês:

    Changelog:
    Changes for 0.9.9
    • Updated to Minecraft 1.5.2
    • Added UNSAFE blocks which disable the execution rate limit normally applied to macros
    • Added GUI for assigning custom GUI's to available "slots" such as ingame, inchat, etc.
    • Added "scoreboard" and "indebug" slots for ingame GUI's
    • Added SHOWGUI command for displaying arbitrary custom GUI's: SHOWGUI("somecustomgui");
    • Added BINDGUI command for assigning GUI's to slots via script: BINDGUI("ingame","somecustomgui");
    • Added armour item max damage vars: BOOTSDAMAGE, LEGGINGSDAMAGE, CHESTPLATEDAMAGE, HELMDAMAGE containing the total damage the armour item can take
    • Added armour item name vars: BOOTSNAME, LEGGINGSNAME, CHESTPLATENAME, HELMNAME containing the name of the armour item equipped
    • Added CHATVISIBLE, CHATOPACITY, CHATSCALE, CHATWIDTH, CHATHEIGHT, CHATHEIGHTFOCUSED commands for setting chat options
    • Added vertical style to progress bar control
    • Added support for using expressions in progressbar min and max fields
    • Fixed auto-craft for recipes with wildcard block types in the recipe
    • Modified auto-crafting status GUI to display failure reasons when auto-crafting fails
    • Auto-crafting now returns NORECIPE if a recipe is not found (previously returned NOTSTARTED). NOTSTARTED now indicates a recipe was found but sufficient items to craft the recipe were not.
    • Added SERVERMOTD, SERVERNAME, MAXPLAYERS, ONLINEPLAYERS, HITPROGRESS, DISPLAYWIDTH, DISPLAYHEIGHT, CANFLY and FLYING environment variables
    • Added HITPROGRESS variable (block breaking progress (range 0-9)
    • Added SCREEN environment variable containing currently displayed custom GUI
    • Allowed sorting of parameter lists using CTRL+S
    • API revisions, API version now 10
    • GETSLOT, GETSLOTITEM and SLOTCLICK now act upon the hotbar if no container is currently open using virtual slot ID's 1-9
    • Added command reference screen to in-game text editor
    • Added SETPROPERTY command for setting GUI control properties via script:SETPROPERTY(controlname,propertyname,value)
    • Added "visible" property to all controls, only settable using SETPROPERTY currently
    Changes for 0.9.8.2
    • Updated for Minecraft 1.5.1
    • Compatibility with Forge's new runtime deobfuscation
    • More consistent handling of array-type specifiers
    • Scripting API improvements
    • PLAYSOUND now takes a volume value as the second argument (range 0-100)
    • GAMMA/FOV and other settings commands parse variables correctly
    • Nonexistent environment vars no longer return "False" and will return their name, as per previous behaviour
    • Environment vars update more quickly
    • ProgressBar control with dynamic expression parsing
    • Enchantments on enchanted books can be iterated using the enchantments iterator
    • Updated Ukranian translation provided by eXtendedZero and Alexemov
    • Updated Russian translation provided by boroda_ua
    • EXEC doesn't unexpectedly add quotes to string variables any more
    • Changed handling of quotes inside IF and IIF to avoid messing up string comparisons
    • Added BREAK for escaping loops
    • Added DAYTIME and DAYTICKS variables
    Changes for 0.9.8
    • Updated to MC 1.4.7 even though I didn't really need to
    • Added VEHICLE variable, which contains the currently ridden entity name
    • Added SATURATION variable containing current food saturation variable (rounded to nearest integer)
    • Fixed the following issues
      • Iterator bug, iterator not removing provider from stack when eval'd inside non-executed conditional blocks
      • CHATCLEAN in incoming chat messages causing inifinite loop
      • Escaped quotes in the text area messing up highlighting/not being recognised
      • Permissions mask not protecting onChat and onJoinedGame
      • Undefined variables cause entire string to be blanked out
      • String variables in conditions not working correctly
      • Crash when using mouse with more than 5 buttons
      • Threading issue when adding text to a TextArea
      • Item pickup event triggering for nearby players as well as the player
      • Bug when assigning strings containing colour codes to a label
      • Issue with configs drop-down not being clickable on events or buttons panel
    • Added iterator for player effects called "effects" which provides the following iterator vars:

      EFFECTID // Internal effect ID number
      EFFECT // Bare effect name eg. "SPEED"
      EFFECTNAME // Effect name eg. "Speed II"
      EFFECTPOWER // Effect multiplier, eg. 2
      EFFECTTIME // Remaining effect time in seconds
    • Added new options to GUI command, can now use "macroplayback" and "texteditor" as options
    • Added debounce compatibility setting to help combat key event duplication on slow computerss
    • Added reserved key detection for Rei Minimap, VoxelPlayer and VoxelFlight
    • Added onConfigChange event
    • Added option to tell flood protection to ignore messages starting with /
    • Changed the way that %-expansions are handled inside conditions so that %-expanded variables are consistently treated as strings.
    • Russian language pack supplied by boroda-ua
    • Norwegian language pack supplied by glitchdetector
    • Added $$k parameter which lists available texture packs
    • Updated item enumeration method, should more reliably detect all types of item in the game now, including potions
    • Enchantments iterator now has ENCHANTMENTNAME and ENCHANTMENTPOWER as well
    • Changes for 0.9.7.3
      • Fixed FML causing event handler VariableProviders to not load
      • Fixed the "store sent messages in local chat history" option which was broken
      Changes for 0.9.7.2
      • Fixed UNSET that was broken by the variables system rewrite
      • Fixed GETSLOTITEM returning items from the survival inventory all the time
      Changes for 0.9.7
      • Updated for Minecraft 1.4.6
      • Variable support completely rewritten, should be more faster and more flexible, may be some bugs please let me know if you find any
      • Added array support, all variable types can now be suffixed with indices in square brackets []
      • New commands for handling arrays:

        PUSH(arrayname,value);
        POP(arrayname,var);
        PUT(arrayname,value);
        ARRAYSIZE(arrayname,var);
        INDEXOF(arrayname,var,searchvalue);
      • Added support to UNSET to unset array values
      • Local variables now stored in a separate XML file .vars.txt
      • Syntax of FOREACH extended to support arrays:

        FOREACH(array,var);
        FOREACH(array,var,#pos);
      • Fixed problem with ITEM not returning the correct localisation for some items
      • Added option to show/hide shadow under label text
      • Labels now accept \n as a newline delimiter like buttons do
      • Added navigation shortcuts to binding screen
      • Fixed cut/copy/paste in parameter prompts
      • Configs can now be switched with a drop-down list instead of needing to go via the settings menu
      • German translation updated thanks to Gorlem
      • Fixed escaping for quotation marks in strings, literal quotes can now be escaped with \
      • Added php-style array push syntax to assignment expressions
      • Added configurable foreground & background colours to button controls
      • PROMPT now supports an optional fifth parameter "default" which is returned if the user presses ESC in the prompt GUI.
      Changes for 0.9.6.1
      • Updated for Minecraft 1.4.5
      • Added parameter parsing to KEY, KEYUP, KEYDOWN and TOGGLEKEY
      • Added FPS global variable containing current FPS
      • Fixed derpy behaviour when setting label backgrounds to fully transparent
      • Fixed graphical glitch when placing new controls at certain resolutions
      Changes for 0.9.6
      • Updated for Minecraft 1.4.4
      • Added context-sensitive help to in-game text editor, displays syntax for script commands as you type
      • Added support for creative inventory to GETSLOT, GETSLOTITEM and SLOTCLICK using virtual slot ID system
      • Added SETSLOTITEM script command with syntax

        SETSLOTITEM([itemid[:damage]],[slot],[count])Only works in creative mode! If "slot" is omitted sets the currently selected slot.
      • Added buttons/controls support to the "chat" screen
      • Added configurable message lifespan to textarea
      • Fixed a issue with STOP which caused the macro to sometimes run on for an extra few ticks
      • Fixed a bug with LOOK caching arguments when it shouldn't
      • Fixed bugs with the parameter list perceiving phantom double-clicks, and fixed right arrow key function in preset text lists
      Changes for 0.9.5.2
      • Fixed onChat event
      • Fixed faulty registration of SETLABEL action, now works correctly in release
      • Removed relative syntax from GETID because it broke the ability to use negative X and Z coordinates!
      • Added GETIDREL which works the same as GETID but uses relative coordinates
      • Added new global variables HITX, HITY and HITZ, HITSIDE which correspond to the world coordinates of the hit block.
      • Added support in MODE variable to return adventure modes => now returns 2 when in adventure
      • Fixed slight mouse position detection error on macro stop buttons, added highlighting to make it clearer which macro will be stopped
      • Added additional usage for item parameter, can now insert the selected damage using $$d:

        /give Mumfrey $$i $$[amount] $$d
      • Added experimental command PROMPT with syntax:

        PROMPT(&targetvar,"$$u","Prompt message",true);Parameters 3 and 4 are optional. The fourth flag specifies whether the prompt is allowed to override another GUI if another GUI is open when PROMPT is invoked.
        Note that this command is experimental at the moment, use with care a please report bugs ITT
      Changes for version 0.9.5
      • Updated for Minecraft 1.4.2
      • Added ITEMIDDMG variable which always contains the held item's ID and damage values in the format <id>:<damage>
      • GETID now supports 2 extra functions:
        • Can now accept a fifth parameter which will retrieve the block metadata:

          GETID(100,72,100,#blockid,#blockmeta);
        • Can specify relative coordinates by prefixing + and - to the supplied coords:

          GETID(+0,-1,+0,#blockunderfeet);
      • Added extra internal hook to support the ChatFilter module
      • Fixed a bug with preset text lists not submitting properly
      • Compiler flags can now be set during macro playback on a per-macro basis!
      • Pre-filled parameter values are now highlighted to make typing over them much easier
      Changes for version 0.9.4
      • Updated to support Minecraft 1.4
      • Parameters system has been almost completely rewritten - may still be some bugs. The main visible change is that parameters now have a proper text field for entry instead of the old prompt.
      • Permissions support, server owners can install the ClientPermissions plugin to remotely control mod features.
      • Flood protection module with configurable flood protection behaviour - excess messages can be queued, discarded or logged to the console.
      • Improvements to the Label component and better binding support
      • Textarea components now support configurable foreground colour, can also now be added in the designer.
      • Initial version of general-purpose GUI designer, currently only supports designing the "ingame" GUI overlay.
      • GUI Designers allow column widths to be specified ingame
      • TEXTUREPACK, CRAFT, CRAFTANDWAIT and PICK now allow variables to be used
      • SETLABEL action can set a label component's text and binding:

        SETLABEL(labelname,text); or
        SETLABEL(labelname,text,binding)
      • SETRES action can set the window size, useful for recording video or taking cubemap screenshots

        SETRES(width,heigh)
      • Fixed a compatibility issue with Forge when running under MacOS or Linux
      • API revision incremented to 5
      • Added "mini" macro override prompt (optional, replaces the old "Press a macro key to execute" prompt)
      • Added ACHIEVEMENTGET("message",itemidforicon) script command
      • WAITs can now be specified in ticks using the syntax WAIT(10t)
      Changes for version 0.9.3
      • Fix for the forge mod loader (FML) classloader issue, should happily work with forge now
      • Fixed XP global variable
      • Fixed conflict highlighting in the "Controls" screen
      • Added LMOUSE, RMOUSE and MIDDLEMOUSE variables to VariableProviderInput
      • Ukrainian language support thanks to eXtendedZero
      Changes for version 0.9.2
      • Support for Minecraft 1.3.2
      • ModLoader deprecated in favour of LiteLoader
      Changes for version 0.9.1
      • Added conditional macros, a new type of macro which supports a single pre-compilation conditional expression
      • Improved error handling in the script engine initialisation routines, should stop WorldEditCUI and other mods from breaking this mod
      • Added CRAFTANDWAIT script action, which blocks until the requested craft process has completed
      • Fixed a serious bug which meant that auto-discovery didn't work properly most of the time
      • Added binding screen colours to the config file as an accessibility measure
      • Added mouse wheel binding capability
      • LOGTO can now log to text files as well as text areas, specify a file name (ending with .txt) as the target
      • GUI controls now stored in a treemap so they are serialised in a more sensible order
      • Added option to hide the minecraft chat
      • Added CLEARCHAT script command
      • API version is now 4
      • Added startup message if there were errors loading modules
      • Added DATE, TIME and DATETIME variables containing current system time
      • Added formatting-code stripping to onPlayerJoined
      • Delete mode can now be used to delete buttons if they are already unbound
      • Added spanish language support thanks to agubelu!
      Changes for version 0.9
      • Added "buttons" functionality to create macro-able buttons on the macro playback screen
      • STACKSIZE variable gets the size of stack in hand
      • Improved handling of multi-line chat messages
      • Made improvements to the JInput module, MOUSE3 and MOUSE4 now properly supported, and nodes configurable for use under linux and mac.
      • onChat event now have CHATCLEAN, CHATPLAYER, CHATMESSAGE which uses experimental "guess" algorithm to split inbound chat. Be aware these variables may not contain what you expect, so experiment!!!
      • Added STRIP command to remove colour codes from strings, syntax is:

        STRIP(&outputvar,"String to remove colour codes from")
      • Improved API module loading
      • Fixed a crash when updating item names from mods which don't correctly support item names
      • Added FOR...NEXT loop, syntax is

        FOR(#counter,1,10);
        // Do stuff
        NEXT;
      • Automatic crafting using CRAFT, and inventory management using SLOTCLICK

        CRAFT(35);
        CRAFT(35:1);
        CRAFT(35:1,32);
        CRAFT(35,32,true); // Throw crafted stacks
        SLOTCLICK(12);
        SLOTCLICK(12,r); // right mouse
        SLOTCLICK(12,l,true); // simulate holding shiftCRAFT is still a bit experimental, you must be aiming at a crafting bench to craft recipes requiring a crafting bench, recipes which can be crafted in the inventory will open the inventory gui
      • New option to display slot ID's as a tooltip. You will likely need to use this if you wish to construct scripts that use SLOTCLICK. Note that slot id's vary between GUI's so you will need to check the GUI variable before executing any inventory management!
      • Added GETSLOT command to find items in slots. Syntax:

        GETSLOT(35,#var); // gets the slot containing wool into variable #var
        GETSLOT(35:4,#var); // gets the slot containing blue wool
        GETSLOT(35,#var,10); // gets the slot containing wool but starts at slot 10
      • PICK now supports multiple item id's and also damage values
      • Fixed bug with onPlayerJoined event triggering for every player on a server when joining
      • Huge improvements to text editor: copy/paste, selection, basic syntax highlight, minimise editor, choose file
      • Dutch language support thanks to to Dyon123
      • MATCH can now store multiple matches in multiple variables:

        MATCH(%CHAT%,"(.+?) :(.+)$",{&beforecolon,&aftercolon})
      • IFMATCHES can now store the match

        IFMATCHES(%CHAT%,"pattern",&store,1); // store subpattern 1 in &store
      • Parameters to EXEC are now expanded allowing variables to be passed in as arguments
      • Can now use extended formatting codes in LOG messages
      • GUI variable, get the name of the currently display GUI screen
      • Can now do basic arithmetic and assignment of flags and counters in scripts (not strings yet!)

        #counter = HEALTH * 10
      • Arithmetic supported in conditional expressions
      • Fixed crashes with some variable providers when invalid data is stored
      • Replaced large COPY, MOVE, DELETE buttons with neater buttons on the binding bar, added option to put them back in case people prefer them
      • Added FOREACH iterator function for iterating enchantments, more iterators to come

        FOREACH(enchantments);
        LOG("Held item has enchantment %ENCHANTMENT%");
        NEXT;
      • Added "first run" dialog box to prompt users to set the keys, and confirm correct installation
      • onPickupItem now includes an instance variable PICKUPAMOUNT to get the size of the collected stack
      • Made improvements to the macro edit text fields to support cut/copy/paste and (should) fix cursor positioning issues caused by Optifine and others
      • Can now specify a port with server-named configs to support auto-switch on servers with multiple ports
      • Added debug log container in-game, can now write log messages to separate text area using

        LOGTO("debug","Text to log to debug container")
      • Added option to resize keyboard layout display for use in higher resolutions
      • onShowGui event, raised whenever a different GUI is displayed, access name of the current GUI with the GUI global variable
      • Added a status display for auto-crafting
      • Added onArmourDurabilityChange event
      • Added variables for worn armour ID and durability: BOOTSID, BOOTSDURABILITY, LEGGINGSID, LEGGINGSDURABILITY, CHESTPLATEID, CHESTPLATEDURABILITY, HELMID, HELMDURABILITY
      • Added onAutoCraftingComplete event
      • Added "don't close gui" option to buttons
      • Buttons which don't close the GUI no longer accept parameters
      • More stuff I probably forgot but this changelog is long enough already
      Changes for version 0.8.7:
      • Updated for Minecraft 1.2.5
      • Added option to log sent messages in the local chat history (defaults to off)
      • Added RANDOM, TIME and PLAYSOUND script actions
      • Added optional 5th parameter to MATCH to specify default value to use if the match fails
      • Event bind buttons now have icons
      • Event-specific help content added when editing an event binding
      • Added YAW, PITCH and DIRECTION global variables
      • Added onPickupItem and onPlayerJoined events
      • Fixed list parameters not retriggering macro compilation
      • Made some improvements to the key injection subsystem to support more reliable injection of key events
      Changes for version 0.8.6.3:
      • Fixed a crash bug when executing a macro with the cursor over another player
      Changes for version 0.8.6.2:
      • Fixed cursor movement in some text fields
      • Added some additional variable parsers to some script actions so it's now possible to pass variable values into more script commands, mainly anything that takes a numeric value as an argument
      • Mouse wheel now scrolls the pane under the cursor in the Macro Options screen
      • Added an option to disable the Macro Override function in the Chat GUI specifically, stops the mod overriding copy and paste commands when X, C or V keys are macro'd
      New features in version 0.8.6:
      • Updated to minecraft 1.2.4
      • List parameters, define lists using $$[[this,is,a,list,of,items]]
      • Added item overrides setting to force inclusion of items that aren't normally enumerated automatically, such as snow block
      • String variable support added, prefix string variables with &
      • Added HIT, HITNAME, HITID and HITDATA variables
      • Added FOV, GAMMA, SENSITIVITY, MUSIC and SOUND variables
      • Added STORE and STOREOVER commands, currently only supports storing coords using STORE("place",placename); STOREOVER overwrites an entry if it already exists
      • Override key now toggles forced overrides
      • Added GETID script command, assigns the ID of a block at the specified coordinates to the specified variable: GETID(10,72,10,#blockid)
      • Added MATCH script command, assigns the result of a regex capture to the supplied variable to be used elsewhere: MATCH(subject,pattern,&varname,group)
        Varname and group are optional, if varname is omitted the function spits the match into the log buffer. Group allows a capturing subgroup to be specified in the regex (default captures the entire match (eg. group 0)
      • Switched onChat event to use ModLoader's new chat hook, this means locally-generated chat events will no longer trigger onChat
      • Added RESPAWN script command, which respawns the player if they are dead.
      • Small optimisations to the inner macro playback loop, also added some extra stats to the debug menu
      • Added optional argument to FOG script command, specify "far", "normal", "short" or "tiny" to set render distance
      New features in version 0.8.5:
      • Automatic language selection for supported languages: english, french, german, polish
      • Fixed some crashes caused by forge and a few other mods
      • Added event support, only limited selection of events for now, this is mainly adding scaffholding for features planned for 0.9
      • New loop constructs: DO...WHILE and DO...UNTIL
      • New script commands VOLUME and MUSIC
      • New script action EXEC allows scripts to be spun off, very useful with events: EXEC("script.txt","task_name")
      • New player variables: XPOS, ZPOS, ARMOUR, INVSLOT
      • "Always override" function now checks for an open GUI screen (oops!)
      • DISCONNECT function shouldn't crash game when using other mods
      • Refactored script extensions API to be considerably simpler
      • It's now possible to use variables inside DO() declarations and SET statements, eg. DO(%#counter%)
      • Added LOOK script action to set player's orientation with LOOKS (look smooth) variant for smooth interpolation
      • Improved interpolation for FOV, GAMMA, LOOK and LOOKS so that transitions are smoother
      • Added the ability to delete configurations
      • Added global counters using prefix @#
      • Thumbnail manager now has a scroll bar so that all thumbnails can be accessed even at low resolution
      • Added RAIN, OXYGEN, ITEM, DURABILITY, SERVER variables
      • Fixed macro edit box cursor positioning when using narrow (kerned) fonts
      • Added button to access macro config in Controls... screen
      • Added new conditional script actions: IFCONTAINS, IFBEGINSWITH, IFENDSWITH, IFMATCHES which can be used in place of the normal IF
      • Added "all" option for STOP script action. Specify "all" or "*" to stop all active macros.
      New features in version 0.8.2:
      • Updated to support Minecraft 1.1
      • Items in the items selection list now rendered with shading rather than fullbright
      • Fixed a bug with pipe characters inside scripts which cause IF statements with the OR operator "||" to not work properly, fixing this also means you can use | inside ECHO commands to output multiple lines of text with a single ECHO command
      • Fixed a small bug when adding new entries to a preset text listbox which meant that the selected item wasn't always remembered
      • Added the item-with-damage param $$i:d to the in-game help
      New features in version 0.8.1:
      • Fixed a bug with parsing script actions which contain parentheses!
      New features in version 0.8:
      • New JInput subsystem to provide MOUSE3 and MOUSE4 (side buttons) support under Windows
      • "Always override" option per-macro
      • Improved the "Items" listbox, now icons instead of a long list
      • Support for supplying damage values with $$i use $$i:d to insert an item/damagevalue pair
      • New quick-access buttons for "Edit File" and "Settings" and also to access the "Bindings" screen from playback mode
      • Configuration overlay support, merge configurations for even more advanced config setups. Use the new IMPORT and UNIMPORT script functions
      • Improved macro text editor fields, full cursor movement and mouse support
      • User Face images in the online user ($$u) list
      • Icon manager, take your own custom screenshots in-game for use in the homes, towns and warps lists
      • Global flags in scripts. Prefix a flag name with @ to make it accessible to multiple macros.
      • Counter variables in scripts. Prefix counter variables with # and use the new INC and DEC script commands to increment and decrement them
      • Improved Text Editor GUI: Delete and rename text files in the text editor screen
      • IIF conditional echo script command to make toggles and conditional echo commands much more compact
      • ELSEIF conditional script construct
      • GAMMA and SENSITIVITY script commands to alter brightness and mouse sensitivity respectively
      • Ability to include variable values in ECHO and LOG commands, simply surround the variable name with %, for example $${ECHO("Current health = %HEALTH%")}$$
      • Added new global variables LIGHT, TEXTUREPACK, SEED, DIMENSION, YPOS
      • Added macro invoke-time input variables, retains the state of all keyboard keys at the point the macro is invoked. For example ~CTRL for the state of the Ctrl key when invoking the macro
      • Added popup display when switching configs to show the currently selected config and overlay
      New features in version 0.7.2:
      • Fixed a bug with uppercase conditional statements
      • Fixed a bug with having to press a macro twice if it included a parameter
      New features in version 0.7:
      • Updated for Minecraft 1.0
      • Improved override support! Improved compatibility with zombes and other mods which ignore the old override method.
      • Support for binding mouse buttons as well as keys
      • Alternate display names for warps, homes and towns
      • Conditionals in scripts: IF, ELSE, ENDIF as well as flag commands
      • New script actions:

        • TexturePack - Switch texture packs on-the-fly
          Type - Pump keys into the keyboard buffer as if you typed them
          Press - Pump a single (non-alphanumeric) key into the keyboard buffer: eg. PRESS(ESCAPE)
          PlaceSign - Place a sign from your inventory and automatically set the text!
      • Invert SNEAK key function for macros: [activate] to bind, [sneak][activate] to play back
      • On-screen debug display
      • Additional options: compatible mode (disables new keybind engine)
      • Fixed a bug which meant that attack and use key commands wouldn't work as expected
      • Fixed a bug with named parameter values not saving correctly
      New in version 0.6
      • Key-State Macros: Bind different commands to the key down, key held, and key up events
      • Loops! Both infinite and finite loops now supported within scripts
      • List and include files now stored in a separate directory /mods/macros/ - Note to previous users, you will need to move your old scripts!!
      • New script actions: InventoryDown, InventoryUp, Pick, Slot, Sprint, Unsprint, Log, Stop see readme.txt for details
      • Improved existing script actions, see the readme.txt
      • Selectively terminate macros - bind to a key or access via GUI
      • Lots more options! "Simple" GUI mode and a lot of others
      • Per-config home/friend/town/preset lists - have your lists track your server
      • Added $$w parameter for warps - with auto-discovery support!
      • Added $$p "place" parameter, save your locations for use with /tppos and others
      • Configurable "reserved keys", to provide better compatibility with other mods
      • Configurable (via config file) options for Online User list - trim characters, include self
      • User list ($$u) now sorted alphabetically
      • For avanced users, compiler directives to alter macro compilation
      • Defaults to enabled in single player
      • Improved singleplayer/multiplayer detection code
      • Made the Colour Code Helper key configurable
      • Fixed a bug with the disconnect script action causing OpenGL weirdness
      • Fixed a bug with listboxes activating entries when scrolling with the mouse
      New in version 0.5
      • Modified controls screen with pages to make binding keys easier
      • Added $$u parameter to select from online users
      • Added named parameters $[name]
      • Added basic scripting support (see the readme.txt for more details)
      • Added multiple configurations functionality with per-server auto-switch
      • Added global keys which are the same for all configurations
      • Text editor now correctly renders more characters and invalid code points are highlighted
      • Can now create new text files in the "edit file" window
      • Added localisation file macros.lang to support different languages
      • Added colour-code helper when editing macros (use the OVERRIDE key to activate)
      • Key display glyphs now stored in the config file
      New in version 0.4
      • On-screen keyboard when binding keys: quickly see which keys are bound as well as being able to move, copy, delete macros quickly and easily.
      • Configure the macro activate and macro override keys in the normal Minecraft "Controls" GUI
      • Set modifiers on your key binds, require CTRL, ALT and SHIFT or any combination to prevent accidental usage
      • Extra parameters: $$h for homes, $$t for towns, $$m for text file list, plus ten configurable parameter lists $$0 through $$9
      • Auto-discover functionality for friends, towns and homes (may require some settings tweaking for best results)
      • Drag and drop to rearrange friends, towns and homes
      • Edit text files within minecraft
      • Recursive parsing of files and parameters, put parameters in your parameters!
      • Increased macro edit length in the GUI (can now edit macros longer than the screen width)
      • Prevent macros from remembering previous parameter values
      • Much better 'override' function
      • Complete re-vamp and improvement of settings file, format is now much clearer.
      New in version 0.3
      • Added support for single player
      New in version 0.2
      • Include files within macros
      • Friends list
      • Items list
      • On-screen help
      • $$! terminate macro modifier

    O básico pro loop seria isso:
    Mas existem vários outros métodos. Neste exemplo, a mensagem "Repetindo" apareceria até você relogar.
    Código:
    $${do;log(Repetindo!);loop;}$$
    Se quiser fazer um loop que dê pra ativar e desativar, algo do tipo serviria:
    Código:
    if(flag1);
    log("{MACRO} Exemplo [OFF]");
    unset(flag1);
    stop();
    else;
    log("{MACRO} Exemplo [ON]");
    set(flag1);
    if(flag1);
    do;
    <comandos>
    endif;
    loop;
    endif;
    
    Espero ter ajudado.
    Bom tópico, DeathStroker!
     
  5. DoritosComQueijo

    DoritosComQueijo Craftlandiano
    VIP

    Afiliado:
    20 Agosto 2012
    Mensagens:
    2,010
    Curtidas Recebidas:
    773
    Curtiu:
    0
    Sexo:
    Masculino
    Cubos:
    563.00
    Nick:
    breeninho1209
    Clan:
    #voltacraftlandia
    Skype:
    breeno1209
     
    ThorsBlack curtiu isso.
  6. BeetleJuice

    BeetleJuice Craftlandiano
    VIP

    Afiliado:
    23 Janeiro 2013
    Mensagens:
    618
    Curtidas Recebidas:
    1,318
    Curtiu:
    295
    Cubos:
    2,263.00
    Nick:
    beetleejuice
    Edit: Não tinha visto a nova área pra tutorias, rs.
     
    ThorsBlack curtiu isso.
  7. TheDarkDescent

    TheDarkDescent Craftlandiano
    VIP

    Afiliado:
    10 Abril 2013
    Mensagens:
    2,342
    Curtidas Recebidas:
    825
    Curtiu:
    846
    Sexo:
    Masculino
    Cubos:
    467.00
    Nick:
    TheDarkDescent
    Obrigado, ajudou bastante, vou começar a programar scripts :)
     
    ThorsBlack curtiu isso.
  8. NessimonXD

    NessimonXD Excelente
    VIP

    Afiliado:
    29 Junho 2012
    Mensagens:
    1,313
    Curtidas Recebidas:
    237
    Curtiu:
    0
    Sexo:
    Masculino
    Localização:
    GO-Goiania
    Cubos:
    10.00
    Nick:
    IXIMonkey
    Ótimo tutorial , UP
     
    ThorsBlack curtiu isso.
  9. ThorsBlack

    ThorsBlack Excelente
    VIP

    Afiliado:
    11 Maio 2013
    Mensagens:
    3,749
    Curtidas Recebidas:
    380
    Curtiu:
    1,543
    Sexo:
    Masculino
    Localização:
    Sobradinho-DF
    Cubos:
    60.00
    Nick:
    zViniciusBolado
    Clan:
    -
  10. Filipe sil

    Filipe sil Neutro
    VIP

    Afiliado:
    12 Março 2013
    Mensagens:
    553
    Curtidas Recebidas:
    38
    Curtiu:
    0
    Sexo:
    Masculino
    Localização:
    Interessa?
    Cubos:
    535.00
    Nick:
    chowpato5
    Legal, eu me perdi um pouca mas ta na boa cara isso ajudo muito nunca mais levo ban por flood.
    :thanks:​
     
  11. xPain

    xPain Neutro

    Afiliado:
    19 Junho 2013
    Mensagens:
    25
    Curtidas Recebidas:
    2
    Curtiu:
    0
    Sexo:
    Masculino
    Cubos:
    1.00
    Nick:
    xPain
    Coloca ai como baixar e instalar o mod, não estou conseguindo achar

    =/
     
  12. LaranjaPox

    LaranjaPox Neutro

    Afiliado:
    10 Agosto 2013
    Mensagens:
    15
    Curtidas Recebidas:
    4
    Curtiu:
    0
    Cubos:
    19.00
    Nick:
    LaranjaPox
    E o Dowload =/
     
  13. MinecraftGamer HEAVEN

    Banido

    Afiliado:
    1 Agosto 2013
    Mensagens:
    14
    Curtidas Recebidas:
    4
    Curtiu:
    0
    Sexo:
    Masculino
    Cubos:
    6.00
    Nick:
    Anonyme_
    Aprovo o Macro ! menos o macro flooding

    Selo de aprovação
    The_w4nt3dD
     
  14. Reipert

    Reipert Neutro

    Afiliado:
    2 Fevereiro 2013
    Mensagens:
    187
    Curtidas Recebidas:
    13
    Curtiu:
    0
    Sexo:
    Masculino
    Cubos:
    178.00
    Nick:
    Reipert
    Skype:
    Buiuzinho35
    otimo tuto.
     
  15. lionware

    lionware Neutro
    VIP

    Afiliado:
    9 Agosto 2013
    Mensagens:
    9
    Curtidas Recebidas:
    0
    Curtiu:
    0
    Sexo:
    Masculino
    Cubos:
    44.00
    Nick:
    lionware
    Muito bom o tutorial!
    Eu estava precisando muito aprender sobre esse tal macro tão falado...
    Obrigado. =)
     
  16. MatheusFrança

    Afiliado:
    23 Abril 2012
    Mensagens:
    74
    Curtidas Recebidas:
    6
    Curtiu:
    0
    Cubos:
    1.00
    Nick:
    KidingMatheus
    Excelente tutorial!
     
  17. MucaCraft

    MucaCraft Neutro
    Banido

    Afiliado:
    8 Agosto 2013
    Mensagens:
    158
    Curtidas Recebidas:
    12
    Curtiu:
    0
    Sexo:
    Masculino
    Localização:
    Mundo dos NETs
    Cubos:
    271.00
    Nick:
    mucapapipa - WorldBR
    Clan:
    PvR
    completo esse tutorial em? Up, vai ajudar o server inteiro
     
  18. Kenjimitu

    Kenjimitu Neutro

    Afiliado:
    26 Junho 2013
    Mensagens:
    19
    Curtidas Recebidas:
    1
    Curtiu:
    0
    Cubos:
    37.00
    Nick:
    Kenjimitu
  19. matheuz633

    Banido

    Afiliado:
    20 Janeiro 2013
    Mensagens:
    898
    Curtidas Recebidas:
    123
    Curtiu:
    0
    Sexo:
    Masculino
    Localização:
    Manchester
    Cubos:
    384.00
    Nick:
    matheuz633
  20. Quell0x

    Quell0x Neutro
    VIP

    Afiliado:
    16 Janeiro 2013
    Mensagens:
    107
    Curtidas Recebidas:
    14
    Curtiu:
    0
    Sexo:
    Masculino
    Localização:
    Joinville - Sc
    Cubos:
    152.00
    Nick:
    Quell0x
    Facebook:
    Tiago José Valdrich
    Skype:
    clubetiago2009
    Twitter:
    TValdrich
     
Status do Tópico:
Não esta aberto para novas mensagens.