• 0

    posted a message on Macro / Keybind Mod
    Oh wow that worked sorta, just gotta fix some of the little flaws. Or maybe I just totally typed something wrong. Anyways to the people that helped me, thank you.
    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind Mod
    Quote from ToxicDeathIV

    Can you help me directly? I understand some of this but I do not get how to make it repeat it without putting the whole script in the chat.
    I need to type the command in chat: "/sbuy wool 200" every 1.5 seconds then every 5 seconds say: "/ssell wool all"

    Thank you though for all that information and I will continue to try and make it work!



    ALSO Can It be a toggle for a button? Idk how to do that


    After me trying to make the file a bunch of times it just types what ever I have in the txt file in the chat.
    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind Mod
    Quote from Mart3323

    Assuming you know how to add bindings...

    In order to bind a script rather than a single message or command, you need to surround your binding with script tags $${ }$$
    Inside the script tags you need one or more commands, following eachother, separated by semicolons (or line breaks)

    a single command always follows this pattern
    Command(parameters)
    or if parameters are optional (or it doesn't have any)
    Command()
    or
    Command
    (your choice, both work fine)

    Keep in mind that commands are not case sensitive, it's up to you
    Personally i find it useful to do blocks in uppercase, regular commands in leading case, for example
    $${IF(HEALTH < 4);Set(panic);ENDIF}$$

    the alternative to writing it all on that one short line is to use a file include
    File includes are checked for before the script is run and replaced by the contents of a file (and this is how you can have line breaks in a script that's bound through a single-row input)
    for example i could instead have used

    $${$$<file.txt>}$$
    where file.txt contains
    IF(condition)
    Set(panic)
    ENDIF

    And just in case i wasn't clear, the commands are simply executed one at a time in the order they appear, though command flow commands can kinda change things up (like IF makes some commands ignored and DO marks a point to jump back to)
    Basically, unless you're using a command that claims otherwise, they all happen in order

    with the health example before,i could have expanded it to use
    IF(HEALTH < 3)


    Set(panic)
    ELSE
    UnSet(panic)
    ENDIF


    There's two actual commands here, Set() and Unset()
    and three command flow commands
    IF() checks the condition and remembers if it was true or not
    if it was, it will wait for an ELSE and then start ignoring commands
    if it wasn't, it will ignore until it reaches an ELSE
    in either case, an ENDIF makes it forget and start executing again

    Or, in other words, if you have an IF;ENDIF, then it runs the first block inside if the condition is true
    and if you have an IF;ELSE;ENDIF, then it runs the first block if true, and the second block if false
    Aanyway, getting off topic.., the commands relevant to what you want to do are as follows

    Echo(string) - sends string as a chat message to the server, doesn't actually open the chat to do it, just sends a packet

    Do(n);[other commands];Loop - Command flow commands, a Do();Loop makes all the commands between them repeat n times (instead of just being executed once), or forever if not specified (there are other ways to stop an infinite loop)
    You can think of it as Loop decrements the n in it's matching Do, and if n is still larger than 0 (or doesn't exist), it jumps back to the Do and the script keeps executing from there again

    Wait(t) - Waits for a time of t before moving on to the next command. t can be an integer (number), in which case it will assume seconds
    it can also be in ms (milliseconds) or t (ticks (1/20'th of a second, 50ms))

    Also please don't use this mod for cheating, especially not in a competitive setting (PvP)


    it is it's own language inspired by basic but not strictly following it's rules


    Can you help me directly? I understand some of this but I do not get how to make it repeat it without putting the whole script in the chat.
    I need to type the command in chat: "/sbuy wool 200" every 1.5 seconds then every 5 seconds say: "/ssell wool all"

    Thank you though for all that information and I will continue to try and make it work!



    ALSO Can It be a toggle for a button? Idk how to do that
    Posted in: Minecraft Mods
  • 0

    posted a message on Macro / Keybind Mod
    How do I make a command be typed in chat multiple times every few seconds and make it loop? I do not know how to script or do stuff within the file editor so I am happy to gain any information I can.
    Posted in: Minecraft Mods
  • 0

    posted a message on ★ PokeGalaxy ★ | Open 2016 | The Member-Friendly Pixelmon Community | Factions, EVs/IVs, WonderTrade, Boss Parties, Gyms, more!
    IGN: Toxic_Death_IV
    Love the server and all the people within! Amazing community and very helpful.
    Posted in: PC Servers
  • 13

    posted a message on PrisonTech [Tokens]
    1. IGN: Toxic_Death_IV


    2. Age: 14


    3. How Long Have You Been Active In Our Community: I have only been in it about a month.


    4. How Long Have You Been Playing On The Prison Server: About a month.


    5. How Often Do You Play: Daily, 12 hours.


    6. Why Should We Pick You: I am very active and know what to do on prision server, was Co Owner of a prision server with 450+ people daily.


    7. Other Info About You: I am mature enough for this I would think, I won't BS around, and I will do the right things.


    8. What timezone you live in: EST
    Posted in: PC Servers
  • To post a comment, please or register a new account.