I'm looking for a macro that punches an item on my 2nd slot then quickly switches to the 3rd slot and quickly presses the use button then switches to my 1st slot, it doesn't have to switch to my first slot but it'll be grateful. also I'm punching a player btw.
I'm looking for a macro that punches an item on my 2nd slot then quickly switches to the 3rd slot and quickly presses the use button then switches to my 1st slot, it doesn't have to switch to my first slot but it'll be grateful. also I'm punching a player btw.
I could easily make this, but I already have an autoswitch script would you like to see this?
I've searched high and low for any good documentation for the scripting language but it seems that im stuck on variables / arrays.
I'm trying to make a Worldguard interface where a normal player can buy and sell their own regions, here's the problem.
If I use the global lists (as on $$0-9) it works until some player decides to sell their region. The region stays listed.
This is something I do not prefer as it gives people insight into the innerworkings.
So I'm looking for a simple example script on how to work with array's, mainly the removing of values in a list.
I think the variable scope should be global, cause i'm guessing local variables only exist until you exit the current session correct?
Or if you have some amazing idea on how to "pop" a value from the $$0-9 list would be fine too.
I'm hoping you can give me a push into the right direction
The Meaning of Life, the Universe, and Everything.
Join Date:
7/13/2013
Posts:
80
Minecraft:
MyNameIsWeird
Xbox:
MyNameIsWeird
Member Details
I dont know anything about arrays, however I do know that there is a macro keybind mod wiki that contains a tutorial on them. If you are looking for a list of variables and commands, it has that too.
I've visited that website before, but that specific page was well hidden ^_^, Thank you for this.
While I have now a working way to adding or removing things to array's, i struck a wall once again.
It is with this specific function, have you perhaps played around with it?
PROMPT(<&target>,,[prompt],[override],[default])
If I fill things in manually, like so:
PROMPT(<&val>,$$[SomeName[this,works,perfectly]],"Do you like cookies?")
Would actually show me a list with these values to select from, which is great.
However for some reason it does not accept variable input for example a string.
Never mind
I woke up in the morning and one of the first things i wrote was:
The Meaning of Life, the Universe, and Everything.
Join Date:
7/13/2013
Posts:
80
Minecraft:
MyNameIsWeird
Xbox:
MyNameIsWeird
Member Details
This can be done, however its not as easy as it sounds. The problem is you cannot spawn a book with text in it without making it only 1.8 compatible. There are two options, using essentials books, or the slower and more "unstable" way of having it type everything in for you. The problem with the unstable way is that while it is typing, it will also activate your macros. For example, in the word "Thanks," it will activate the macro keys t, h, a, n, and so on. Also it is impossible for the macro keybind mod to click buttons for you, so it will ask you to press buttons when needed. The only downside of using essentials books is that you have to go into the server files and add in a text file of what you want to be in the book. More info on that here and here. Note either way, it will spawn in a book for you if needed.
I think instead of having a macro for books, each staff could make a book with their name signed, then just make several copies. That seems like it would be easier. I haven't copied books until 1.8, but I'm assuming copied books will stack, but the original doesn't (NBT tag original vs copy).
Can anyone make a script for me so when my health is 14 or lower I switch to a soup and drink it and drop the bowl please like a auto soup then I switch back to my sword.
Can anyone make a script for me so when my health is 14 or lower I switch to a soup and drink it and drop the bowl please like a auto soup then I switch back to my sword.
Ok cheater :P, here ya go: (put into the onhealthchange event)
How would you check if you have a certain amount of an item in your inventory. I want it to check if you have 2048 Iron blocks in your inventory and it to run a command. Thanks in advance!
I've seen this asked a few times, and no one has came up with a reply. I also very much would like this script if someone could help. I'd like a script that simply takes 3 stacks of sugarcane and crafts it into paper. Any help would be greatly appreciated!
So.... maybe I'm just being derpy, but is there a way to make the macros client side only so I don't get kicked for spam? I'm very new to this sort of thing, and every time I try and use one of the autoattack/automine etc. macros on page 1, I get kicked for spamming commands. Is there a way to prevent this? Thanks a bunch for your help
The Meaning of Life, the Universe, and Everything.
Join Date:
7/13/2013
Posts:
80
Minecraft:
MyNameIsWeird
Xbox:
MyNameIsWeird
Member Details
what did you put as the script inside the key? I am not sure why you would be kicked unless its for attacking to quickly, like from an anticheat thing?
Quote from mdnovelli»So.... maybe I'm just being derpy, but is there a way to make the macros client side only so I don't get kicked for spam? I'm very new to this sort of thing, and every time I try and use one of the autoattack/automine etc. macros on page 1, I get kicked for spamming commands. Is there a way to prevent this? Thanks a bunch for your help
Is it possible that you are not running the script, but just printing it all out into chat? I did that when I was first starting. You should be using $${$$<filename.txt>}$$ when you bind it to a key
Or, the other thing I can think of for what you're wanting is that you're spitting a bunch of text to the chat, and you can use LOG() instead to make it so that the text is only going to you
But did you mean only something like this: $${SET(#slot, %INVSLOT%);Slot(9);KEYDOWN(use);KEYUP(use);Slot(%#slot%)}$$ ? Because it doesn't work...
Also, I had pretty good results with $${SET(#slot, %INVSLOT%);Slot(9);Do(32);Key(use);Loop;Slot(%#slot%)}$$ but I don't like the fact that it eats food without the need of keeping to press the key, plus if you change your slot in the middle of the action it comes back to the "starting slot" at the end of the eating waiting time... Basically it doesn't fell as "natural" as eating with right click (and that's what I want).
I could easily make this, but I already have an autoswitch script would you like to see this?
I'm trying to make a Worldguard interface where a normal player can buy and sell their own regions, here's the problem.
If I use the global lists (as on $$0-9) it works until some player decides to sell their region. The region stays listed.
This is something I do not prefer as it gives people insight into the innerworkings.
So I'm looking for a simple example script on how to work with array's, mainly the removing of values in a list.
I think the variable scope should be global, cause i'm guessing local variables only exist until you exit the current session correct?
Or if you have some amazing idea on how to "pop" a value from the $$0-9 list would be fine too.
I'm hoping you can give me a push into the right direction
Thanks in advance,
http://mkb-wiki.herokuapp.com/hub
While I have now a working way to adding or removing things to array's, i struck a wall once again.
It is with this specific function, have you perhaps played around with it?
PROMPT(<&target>,,[prompt],[override],[default])
If I fill things in manually, like so:
PROMPT(<&val>,$$[SomeName[this,works,perfectly]],"Do you like cookies?")
Would actually show me a list with these values to select from, which is great.
However for some reason it does not accept variable input for example a string.
Never mind
I woke up in the morning and one of the first things i wrote was:
JOIN(", ",@&ArrayList,&str);
&tmp = "list[%&str%]";
PROMPT(&val,$$[%&tmp%]%,"Message");
And this works like a charm.
Unstable way: http://pastebin.com/uFC92p3D
^ It wouldn't let me add multiple spaces between words :/
Essentials way:
Ok cheater :P, here ya go: (put into the onhealthchange event)
Tell me if it doesn't work, I cant test it in-game at the momentt
All variables do this by default.
Is it possible that you are not running the script, but just printing it all out into chat? I did that when I was first starting. You should be using $${$$<filename.txt>}$$ when you bind it to a key
Or, the other thing I can think of for what you're wanting is that you're spitting a bunch of text to the chat, and you can use LOG() instead to make it so that the text is only going to you
KEYUP(USE) Deactivates the key
KEY(USE) Activates it for one tick (a really really short pulse)
Hint: Use http://mkb-wiki.herokuapp.com/wiki/commands as a resource for just about everything
Is this what you were trying to make?