If i wanted a macro to automatically switch to my number 8 slot and left click with it then switch back to my number one slot with a single click how would i go about doing tht, and further if it were to automatically update when my health got below 5 hearts?
If i wanted a macro to automatically switch to my number 8 slot and left click with it then switch back to my number one slot with a single click how would i go about doing tht, and further if it were to automatically update when my health got below 5 hearts?
$${SLOT(8);KEY(attack);SLOT(1);}$$
See if that works. And hat to you mean by automatically update? To check for health is less than five use
$${IF(%HEALTH%<10);[yourcommand if yes];ELSE;[yourcommand if no];ENDIF;}$$
Hi, I was looking to see if there was any more scripting functions or if there is any better documentation as to what is available.
I was thinking of running up a script which does an action any time something is said in chat, but didn't see any way to do any sort of string manipulation/checking/comparison.
KHobbits? From essentials group?
Rollback Post to RevisionRollBack
I began minecraft ~July 7 2011 1.7.3 Beta
My username used to be Creative_Dalek but is now Dalek since 2/4/2015
Hi, I was looking to see if there was any more scripting functions or if there is any better documentation as to what is available.
I was thinking of running up a script which does an action any time something is said in chat, but didn't see any way to do any sort of string manipulation/checking/comparison.
The readme is slightly out of date, this is entirely possible with the latest version of the mod, which supports RegEx style string comparisions. IFMATCHES("string",pattern) can be used to compare a string to a regex pattern, and MATCH("string",pattern,&varname,group) will set the result of a specified capturing group to &varname, or the entire result if the group is missing or zero. If you really are from the essentials team, I am going to assume that you know how to do this, but feel free to post if you need help.
The problem I have is I can click my button to start attacking with "Attack On" showing in the log. If I click the button again I keep attacking and I again see "Attack On" in the log instead of "Attack Off". Basically I cannot stop attacking. Does anyone have an idea what could be going on?
The problem I have is I can click my button to start attacking with "Attack On" showing in the log. If I click the button again I keep attacking and I again see "Attack On" in the log instead of "Attack Off". Basically I cannot stop attacking. Does anyone have an idea what could be going on?
Are you just trying to make an auto attack macro? if so just make a autoattack.txt file and put key(attack) inside of it. Bind it to what ever key you want as a key state macro. Put $${$$<autoattack.txt>}$$ in the key held window and set the delay to 1ms.
Are you just trying to make an auto attack macro? if so just make a autoattack.txt file and put key(attack) inside of it. Bind it to what ever key you want as a key state macro. Put $${$$<autoattack.txt>}$$ in the key held window and set the delay to 1ms.
That will work for a macro that attacks as long as he is holding the button, but he wants it to toggle.
The problem I have is I can click my button to start attacking with "Attack On" showing in the log. If I click the button again I keep attacking and I again see "Attack On" in the log instead of "Attack Off". Basically I cannot stop attacking. Does anyone have an idea what could be going on?
Hmmm... I don't see anything wrong with that. You might try making attk global and see if that fixes your problem.
The problem I have is I can click my button to start attacking with "Attack On" showing in the log. If I click the button again I keep attacking and I again see "Attack On" in the log instead of "Attack Off". Basically I cannot stop attacking. Does anyone have an idea what could be going on?
Well, I got the auto attack to work, but it is kind of messy. For some reason I cannot use local variables. Instead I have to use a global variable. I also need to create a second script for the attack loop.
Here is my code that I have bound to my attack key:
And here is my code in the AttackSwingLoop.txt I have to call:
DO();
KEY(attack);
WAIT(20ms);
LOOP
This seems to be the only way I can get the script to work properly. Maybe it is my server that is causing the issues. I have tried local variables on two different computers and they just don't seem to work unless I do this two script method with global variables.
If I am try to make it so that when some sends me ./tpa MegaSniperB from person1, PERson2, and guy2 it would respond with Echo(/tpaccpet). Being a complete noob at regex I would like some assistance in making the script for it.
&c<PERson1|person2|guy2> has requested to teleport to you.
&fTo teleport, type &c/tpaccept&f.
&fTo deny this request, type &c/tpdeny&f.
this is the way essentials dose its tp command so maybe other would benefit from it. However because the server sends it has 1 message with 3 line breaks i have not been able to get this to work.
Anyone get any luck on this?
I was making a script that has lots of sounds in it and i relised that i keep my music and sound volume off... then i though to my self wouldn't it be cool if there was a sound slider for macro/keybind mod so that you could set the sound in game. Just an idea but i think it may be rather handy
Why would this every time it goes though log (to the cmd window if you launch with a bat file) say "Executed NULL script action, There is an error in your macro script" it works perfectly fine but for some reason it still says that but there is no if statements that would return NULL so im confused. I have it started by a toggle and the EXEC function so it doesn't need the $${ }$$
Launcher after turn on download our minecraft.jar and prevent xray.
So, if I am understanding this correctly, your server has a custom launcher that downloads a special minecraft.jar?
If that is indeed the case, couldn't they just install an xray mod inside your minecraft.jar? Or use a normal .jar and just log in? Sorry if I'm not getting something obvious, but this isn't making much sense to me.
Anyway, I could be wrong about this, but I don't believe that you can install an xray mod just by putting it in the mods folder, as it would need to alter the way blocks are rendered, and mods that change base classes can't be installed by putting them in the mods folder.
Why would this every time it goes though log (to the cmd window if you launch with a bat file) say "Executed NULL script action, There is an error in your macro script" it works perfectly fine but for some reason it still says that but there is no if statements that would return NULL so im confused. I have it started by a toggle and the EXEC function so it doesn't need the $${ }$$
Can you make code for toggle repeat rclick? or something like that?
when you press the macro, its make repeating right click, or place box in hand
and when you press the key again, it stops repeating, and so on
Mumfrey, the banner your using is not in the OP. Is that done on purpose? And this mod is so useful. Scripting is simple (if once you understand it) and very powerful at the same time. I love having my auto-day function toggle-able. Also makes plugins soooo much easier to use. How i lived without is a very real question.
It's not really a banner, it's just an image I made for my signature, but you can feel free to use it if you like Glad you like the mod, a blend of simplicity and power is what I'm aiming for and whilst it's hard to strike that balance, I do put a lot of time into at least attempting it
Yup, I'm not really involved in client modding, just server plugins, so haven't had much reason to post here.
For the record my client is usually cjb+zombe+improved chat+modloader, all applied via mcpatcher, but figured since dinnerbone fixed up the chat, I'd try slotting in this instead of improved chat, because I liked the look of the interface.
I'd certainly say that improved chat has a slew of useful features besides keybinds and generally improving chat navigation. Particularly chat filtering and tabs, until it updates I hope you find this mod useful. I should mention that the functionality of IC and Macros only overlap in the keybinding area and that they work very well together should you wish to consider using Macros even after IC is finally updated.
Great, thanks. I figured it would be possible, or the author had at least considered it, I half thought I might have just been blind and missing it in the readme.
Apologies for the fact that the documentation is lagging a little behind the current release at the moment, I've been quite ridiculously busy at the moment and haven't had time to update the readme yet.
Also good job keeping this topic 'staffed', I know how hard it is to offer support for an active project We had to set up a full time IRC support channel, wiki, command reference, and support ticket system to stay on top of it.
As I said above, I really appreciate the time people are prepared to spend helping out others, especially when I'm not around to answer queries for whatever reason. I'm also working (when I have time) on a wiki which will become the new documentation source going forward, since the readme is creaking under the strain and becoming more and more difficult to maintain.
Well, I got the auto attack to work, but it is kind of messy. For some reason I cannot use local variables. Instead I have to use a global variable. I also need to create a second script for the attack loop.
Here is my code that I have bound to my attack key:
And here is my code in the AttackSwingLoop.txt I have to call:
DO();
KEY(attack);
WAIT(20ms);
LOOP
This seems to be the only way I can get the script to work properly. Maybe it is my server that is causing the issues. I have tried local variables on two different computers and they just don't seem to work unless I do this two script method with global variables.
Hmm, it shouldn't be necessary to use a spun off task for this, I'm not sure what's going on as someone else pointed out your original code looked fine. A different idiom you can use for toggleable behaviour now what WHILE exists would be this one:
Sorry i derped
If I am try to make it so that when some sends me ./tpa MegaSniperB from person1, PERson2, and guy2 it would respond with Echo(/tpaccpet). Being a complete noob at regex I would like some assistance in making the script for it.
&c<PERson1|person2|guy2> has requested to teleport to you.
&fTo teleport, type &c/tpaccept&f.
&fTo deny this request, type &c/tpdeny&f.
this is the way essentials dose its tp command so maybe other would benefit from it. However because the server sends it has 1 message with 3 line breaks i have not been able to get this to work.
It seems like multi line chats fail in RegEx, I have been trying to do this exact same thing. However I can not seem to get RegEx to work on it at all. No matter what I try to match, even just the beginning color code, it does not match. And I need to be able to grab the players name to check against a list of friends, so I know if it should be accepted. But nothing seems to work.
So I have been attempting to make a module, however every time I try to test it I just get:
Executed NULL script action, maybe there is an error in your macro script
I also get the same thing when attempting to use the shell module.
How exactly are modules intended to be used? I tried $${SHELL(somecrap));}$$ and I get the NULL script action error. Isn't that error intended to mean that I tried to use a command that does not exist? If so why does it tell me that? is SHELL(); not the command? It says it loaded a module with one action.
"Loaded module module_shell.jar found 1 custom action(s) 0 new variable provider(s)"
And the same for my module, yet neither seem to work. Is there a configuration I must change?
What is wrong?
There seems to be a problem with RegEx on any CHAT that has multiple lines
There seems to be a problem (or I am not understanding something?) with using modules.
I am back again trying to get this to work.
I now have it so it outputs with a LOG "/msg Acuena Some random text". If I do it like that it outputs it twice. But if I do: echo("/msg %@&lastmsgname% Some random text"); it runts it over and over again. And it also says "Player not found" as if outputs a nick that dont exist, se image below.
I also tried to enclose evrything in "IFMATCHES(%CHAT%,?:- .+?: .*)" as someone suggested but that prevented it from running totally. Here is my current code:
IFMATCHES(%CHAT%,?:- .+?: .*)
MATCH(%CHAT%,(?:- )(.*)(?::),@&lastmsgname,1);
MATCH(%CHAT%,(?:- .+?:)(.*),@&lastmsg,1);
IF(%&lastmsgcopy% = %@&lastmsg%);
STOP();
Endif;
IFMATCHES(%@&lastmsg%,"wiylvl");
wait(1);
Set(&lastmsgcopy,%@&lastmsg%);
echo("/msg %@&lastmsgname% Some random text");
Log("/msg %@&lastmsgname% Some random text");
ENDIF;
ENDIF;
Any ideas?
He he... I may have told you to do something incorrectly. You have IFMATCHES(%CHAT%,?:- .+?: .*). You need to remove the ?: part at the beginning of the regex. So you should have IFMATCHES(%CHAT%,- .+?: .*). Sorry about that.
See if that works. And hat to you mean by automatically update? To check for health is less than five use
You might have to put wait functions between the slot macros for it to work properly.
Shouldn't be.
KHobbits? From essentials group?
I began minecraft ~July 7 2011 1.7.3 Beta
My username used to be Creative_Dalek but is now Dalek since 2/4/2015
The readme is slightly out of date, this is entirely possible with the latest version of the mod, which supports RegEx style string comparisions. IFMATCHES("string",pattern) can be used to compare a string to a regex pattern, and MATCH("string",pattern,&varname,group) will set the result of a specified capturing group to &varname, or the entire result if the group is missing or zero. If you really are from the essentials team, I am going to assume that you know how to do this, but feel free to post if you need help.
The problem I have is I can click my button to start attacking with "Attack On" showing in the log. If I click the button again I keep attacking and I again see "Attack On" in the log instead of "Attack Off". Basically I cannot stop attacking. Does anyone have an idea what could be going on?
That will work for a macro that attacks as long as he is holding the button, but he wants it to toggle.
Hmmm... I don't see anything wrong with that. You might try making attk global and see if that fixes your problem.
Well, I got the auto attack to work, but it is kind of messy. For some reason I cannot use local variables. Instead I have to use a global variable. I also need to create a second script for the attack loop.
Here is my code that I have bound to my attack key:
And here is my code in the AttackSwingLoop.txt I have to call:
This seems to be the only way I can get the script to work properly. Maybe it is my server that is causing the issues. I have tried local variables on two different computers and they just don't seem to work unless I do this two script method with global variables.
Anyone get any luck on this?
I was making a script that has lots of sounds in it and i relised that i keep my music and sound volume off... then i though to my self wouldn't it be cool if there was a sound slider for macro/keybind mod so that you could set the sound in game. Just an idea but i think it may be rather handy
Why would this every time it goes though log (to the cmd window if you launch with a bat file) say "Executed NULL script action, There is an error in your macro script" it works perfectly fine but for some reason it still says that but there is no if statements that would return NULL so im confused. I have it started by a toggle and the EXEC function so it doesn't need the $${ }$$
AcrobaticsScript.txt
So, if I am understanding this correctly, your server has a custom launcher that downloads a special minecraft.jar?
If that is indeed the case, couldn't they just install an xray mod inside your minecraft.jar? Or use a normal .jar and just log in? Sorry if I'm not getting something obvious, but this isn't making much sense to me.
Anyway, I could be wrong about this, but I don't believe that you can install an xray mod just by putting it in the mods folder, as it would need to alter the way blocks are rendered, and mods that change base classes can't be installed by putting them in the mods folder.
Try changing RESPAWN to RESPAWN().
About the other stuff, I don't know, though a volume option for custom sounds is planned.
when you press the macro, its make repeating right click, or place box in hand
and when you press the key again, it stops repeating, and so on
It's not really a banner, it's just an image I made for my signature, but you can feel free to use it if you like Glad you like the mod, a blend of simplicity and power is what I'm aiming for and whilst it's hard to strike that balance, I do put a lot of time into at least attempting it
I'd certainly say that improved chat has a slew of useful features besides keybinds and generally improving chat navigation. Particularly chat filtering and tabs, until it updates I hope you find this mod useful. I should mention that the functionality of IC and Macros only overlap in the keybinding area and that they work very well together should you wish to consider using Macros even after IC is finally updated.
Apologies for the fact that the documentation is lagging a little behind the current release at the moment, I've been quite ridiculously busy at the moment and haven't had time to update the readme yet.
As I said above, I really appreciate the time people are prepared to spend helping out others, especially when I'm not around to answer queries for whatever reason. I'm also working (when I have time) on a wiki which will become the new documentation source going forward, since the readme is creaking under the strain and becoming more and more difficult to maintain.
Hmm, it shouldn't be necessary to use a spun off task for this, I'm not sure what's going on as someone else pointed out your original code looked fine. A different idiom you can use for toggleable behaviour now what WHILE exists would be this one:
Give that variant a try and see how you get on.
Something broken?:
Module problem:
There seems to be a problem with RegEx on any CHAT that has multiple lines
There seems to be a problem (or I am not understanding something?) with using modules.
He he... I may have told you to do something incorrectly. You have IFMATCHES(%CHAT%,?:- .+?: .*). You need to remove the ?: part at the beginning of the regex. So you should have IFMATCHES(%CHAT%,- .+?: .*). Sorry about that.
You can place it in the onJoin event to start the macro when you load a world or join a multiplayer server.