• 3

    posted a message on Macro / Keybind Mod
    I thought I would also share my modules.

    Currently I've two modules, ModuleFS and ModuleUtil. Both can be downloaded from modules.gorlem.ml

    My FS module has a few actions to modify files.
    My Util module has a few different things, for example events for: onDeath, onRespawn, onPotionEffect.
    Posted in: Minecraft Mods
  • 1

    posted a message on Macro / Keybind Mod
    Quote from ZalomModur

    Well, I have faced a new problem. I want to run a few commands and two different txt scripts when I join a game. So I made an ini.txt where I just list these in order. However, when I try to run a script within that script, it runs it. But it stops all commands after it, including other scripts. Here is a snipit of the code where you can see what I mean:

    ini.txt:
    $${
    //Start in-game clock
    $$<clock.txt>;
    //Start coord display
    $$<positions.txt>;
    }$$


    So my question is, how do I call 2 scripts after each other? I have tried to use call on ini.txt and position.txt in th onJoin event. But that didn't work either.
    So in this case, anything after clock.txt would not be executed.
    If anyone can help, thank you!

    EDIT: might be worth noticing that both of these scripts have a Loop in them. Clock to display the ingame time and Positions to display the xyz coords in a label. Not sure if it is due to the loops?

    Yes it is because of the loops.
    This is a place where it would be better to use EXEC(<file.txt>,[taskname],[params],...).

    Your ini.txt would look like this:
    $${
    exec("clock.txt")
    exec("positions.txt")
    }$$


    EDIT: too late
    Posted in: Minecraft Mods
  • 1

    posted a message on Macro / Keybind Mod
    Quote from Plumeex

    Great job for the stable release, it fixed my auto-bow script. :)

    However I'm still trying to achieve something:
    if(bow);
    log("&5Arc mitrailleur désactivé.");
    unset(bow);
    stop;
    else;
    $$[Puissance];
    log("&5Arc mitrailleur activé !");
    set(bow);
    do;
    	 do($$[Puissance]);
    	 key(use);
    	 loop;
    loop;
    endif;


    It prompts for "Puissance" when I set(bow), that's good. But it also prompts for "Puissance" when I unset(bow), I don't want that. How can I improve this script so that it only asks once?

    Thanks!

    Use instead of
    do($$[Puissance]);

    this
    prompt(&amount,$$[Puissance])
    do(%&amount%)
    Posted in: Minecraft Mods
  • 1

    posted a message on Macro / Keybind Mod
    I just updated my site to also include variables.
    The search works now a little bit different because I had to pretty much rewrite the site...
    Posted in: Minecraft Mods
  • 1

    posted a message on Macro / Keybind Mod
    Quote from Gfiti

    Uhm, how does that site work? It's just a search field but it doesn't return anything if I search for stuff.

    That is weird. I probably have used a feature that is not available in your browser...
    Could you pm me your browser?
    Posted in: Minecraft Mods
  • 1

    posted a message on Macro / Keybind Mod
    Quote from Gfiti

    In the meantime. I know there once was a pretty detailed site athat explained alot, http://macrosandkeyb...iteforfree.com/ I think. Seems to be down though. AND OP's readme file also is pretty outdated it seems.

    Is there any readme/documentation or similar that is fully updated?

    If you just want a online command list then I have this site for you.
    Quote from Gfiti

    PPS: Is there an updated chatfilter module?

    It is built in now
    Posted in: Minecraft Mods
  • 1

    posted a message on Macro / Keybind Mod
    Quote from iLyan

    You can use Inventory tweaks, but it seems possible with macro.


    I have installed the "Farhit" module right here : http://www.minecraft...nd-mod-modules/ , but I should not correctly use it, :

    "Log(%#FARHITDIST%)" => send me "0" everytime, But I want that, it send the distance between my aim and my feet, Have you any suggestion ?

    Thx to you.

    Without the #, it is a enviroment variable.
    Posted in: Minecraft Mods
  • 1

    posted a message on Macro / Keybind Mod
    Quote from mich356c

    Once again asking for help ^^

    How can you make a variable all lowercase? :) I tried looking in the F1 thingy didnt find anything :)

    unsafe
    &str[] = split("",%&str%)
    foreach(&str[],&k)
        indexof(@&upper,#i,%&k%)
        if(#i != -1)
            replace(&str,%&k%,%@&lower[%#i%]%)
        endif
    next
    endunsafe

    For this script to work you need to execute the next script once.
    unset(@&upper[])
    @&upper[] = "A"
    @&upper[] = "B"
    @&upper[] = "C"
    @&upper[] = "D"
    @&upper[] = "E"
    @&upper[] = "F"
    @&upper[] = "G"
    @&upper[] = "H"
    @&upper[] = "I"
    @&upper[] = "J"
    @&upper[] = "K"
    @&upper[] = "L"
    @&upper[] = "M"
    @&upper[] = "N"
    @&upper[] = "O"
    @&upper[] = "P"
    @&upper[] = "Q"
    @&upper[] = "R"
    @&upper[] = "S"
    @&upper[] = "T"
    @&upper[] = "U"
    @&upper[] = "V"
    @&upper[] = "W"
    @&upper[] = "X"
    @&upper[] = "Y"
    @&upper[] = "Z"
    @&upper[] = "Ä"
    @&upper[] = "Ö"
    @&upper[] = "Ü"
    unset(@&lower[])
    @&lower[] = "a"
    @&lower[] = "b"
    @&lower[] = "c"
    @&lower[] = "d"
    @&lower[] = "e"
    @&lower[] = "f"
    @&lower[] = "g"
    @&lower[] = "h"
    @&lower[] = "i"
    @&lower[] = "j"
    @&lower[] = "k"
    @&lower[] = "l"
    @&lower[] = "m"
    @&lower[] = "n"
    @&lower[] = "o"
    @&lower[] = "p"
    @&lower[] = "q"
    @&lower[] = "r"
    @&lower[] = "s"
    @&lower[] = "t"
    @&lower[] = "u"
    @&lower[] = "v"
    @&lower[] = "w"
    @&lower[] = "x"
    @&lower[] = "y"
    @&lower[] = "z"
    @&lower[] = "ä"
    @&lower[] = "ö"
    @&lower[] = "ü"
    Posted in: Minecraft Mods
  • 1

    posted a message on Macro / Keybind Mod
    Quote from ASully

    Sorry, as you can tell, I'm quite new to this.
    Just for a basic command (I will use /kill as this example) how would I get it to work?
    /kill %HITNAME% $$!

    ??? I have been trying for a few hours now but to no avail. I feel like I am looking over something obvious but if anyone could save me a great deal more time, I would be grateful.

    In short, all I really want to know is how to use the variables. Thanks in advance.

    Note: Currently watching your tutorials (saw them after this comment) so they may give me an insight.

    For Variables to work you have to use Scripts
    $${gui(chat);type(/kill %HITNAME% )}$$
    Posted in: Minecraft Mods
  • 1

    posted a message on Macro / Keybind Mod
    Quote from imHemo

    $${
    key(use)
    Do(4)
    ForEach(%#slot%,1,9)
    GetSlot(331,%#var%,10)
    SlotClick(%#var%)
    Wait(100ms)
    SlotClick(%#slot%)
    Wait(100ms)
    Next;
    Slotclick(0,l,true)
    Loop;
    }$$



    Just looked in your code.
    1. Replace foreach with for
    2. Remove the %% in the for
    3. Remove the %% in getslot
    With that it should work :)
    foreach is for iterators like effects, enchantments and players


    EDIT:
    Could it be that EXECs log "null" to the chat?
    Posted in: Minecraft Mods
  • To post a comment, please .