this is very useful and nice mod
i have a question, the unique variable (like %pickupitem%) in events macro binding won't work if i placed in another script file.
placing it in one file is working normally, but not when i exec'd other file from macros folder.
is this bug or just an script engine specification?
this is very useful and nice mod
i have a question, the unique variable (like %pickupitem%) in events macro binding won't work if i placed in another script file.
placing it in one file is working normally, but not when i exec'd other file from macros folder.
is this bug or just an script engine specification?
MATCH(%CHAT%,(?:- )(.*)(?::),@&lastmsgname,1);
MATCH(%CHAT%,(?:- .+?:)(.*),@&lastmsg,1);
IFMATCHES(%@&lastmsg%,"wiylvl");
wait(3);
log("/msg >%@&lastmsgname%< My level is: %LEVEL%");
ENDIF;
The ">%@&lastmsgname%<" part is just for testing.
The problem I now have is that it runs it twice. I only want it to run one time.
The output from it is: /msg >Acuena< MY level is: <level>
If I change the log line to: echo("/msg %@&lastmsgname% My level is: %LEVEL%");
It runs over and over again.
And looks like it triggers otherwise to...
Maybe need to clear the variables between each run?
Any clue on why?
I would try enclosing the entire thing in an IFMATCHES(%CHAT%,?:- .+?: .*) to check to make sure that the message is actually a chat message, though Mart's method should work.
I have a a feature request: Is there the possibility to disable the execution of what is usually on the specific key (a macro or a mod) when the chat is opened?
I am a server admin and my keyboard is full of keys for different mods and macros. The macro override function is very useful if all keys already used. With your mod I have completely new possibilities e.g. for the usage of world edit (of course I use the world_edit_clientside interface mod, so I can see which area is marked). I put the world_edit commands //copy and //paste to ctrl+c and ctrl+v, what worked great. But when I opened the chat to copy or paste sth. with ctrl+c or ctrl+v in the chat the mod wants to execute the mod with //copy and //paste instead.
This is already included, look in the options tab.
Is there also the possibilty not only to have the override function with ctrl+sth. but also to add the possibility to define a free combination of keys? (e.g ctrl+f does xyz ; alt+f does 123 ; or if someone wants it e.g. x+f does abc)
It would be great for all those who wish to have a second keyboard, because on their first there is no key which is not used
However, LWJGL doesn't correctly detect the ALT key, which will make it freeze the game and open up the menu that pops up when you right click the title bar. Using other keys that you have already bound a macro to would be tricky, if not impossible, without firing both macros.
I would try enclosing the entire thing in an IFMATCHES(%CHAT%,?:- .+?: .*) to check to make sure that the message is actually a chat message, though Mart's method should work.
I forgot what i used..., but it would make sense to use the same regex there...
that way it will always react if it catches a new message, and never if it doesn't
I forgot what i used..., but it would make sense to use the same regex there...
that way it will always react if it catches a new message, and never if it doesn't
I'll presume by text file you meant you're running it as a script
If so, you could do
ECHO(Hello world);
Wait(5);
ECHO(This is a test);
Or more simply,
Hello World!|Wait(5)|This is a test
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
So sad that it does not support binding different functions on the same key but with different modifier keys...
Until that, this mod will be far inferior to improvedchat.
(Let me know if I'm wrong and that can be done, I want to hear that :3)
However, LWJGL doesn't correctly detect the ALT key, which will make it freeze the game and open up the menu that pops up when you right click the title bar. Using other keys that you have already bound a macro to would be tricky, if not impossible, without firing both macros.
I have sneak toggle macro (first one). I want the jump key toggles sneak off (the second macro), but it doesn't work (it jumps but doesn't toggle sneak off). Any help pls ?
"left" is mapped as my jump key.
"sneak on/off" key: $${IF(@s);KEYUP(sneak);UNSET(@s);LOG("&6SNEAK OFF !!!");ELSE;SET(@s);KEYDOWN(sneak);LOG("&2SNEAK ON !");ENDIF;}$$
jump key: $${UNSET(@s);LOG("&6SNEAK OFF !!!");KEYUP(sneak);PRESS(left)}$$
When you bind to a key that minecraft already uses it doesn't run UNLESS you have the green text on your screen while you press it
(Either by having clicked Macro Activate, or holding Macro Override)
Alternatively, when editing a key there's an option to "always override"...., then you will lose your ability to jump with that key, but if you're gonna do that you might as well rebind it to some other key in the controls menu
But...., if that's a script the "Hello World" and "This is a test" won't do anything..., and if it's a macro then it will just say all three lines, and won't wait..., right?
Did you mean:?
Hello World!|$${Wait(5)}$$|This is a test
When you bind to a key that minecraft already uses it doesn't run UNLESS you have the green text on your screen while you press it
(Either by having clicked Macro Activate, or holding Macro Override)
Alternatively, when editing a key there's an option to "always override"...., then you will lose your ability to jump with that key, but if you're gonna do that you might as well rebind it to some other key in the controls menu
But...., if that's a script the "Hello World" and "This is a test" won't do anything..., and if it's a macro then it will just say all three lines, and won't wait..., right?
Did you mean:?
Hello World!|$${Wait(5)}$$|This is a test
That is exactly what I meant, I feel stupid xD
Leaving $${}$$ off of the wait would just say wait(5) in chat. *facepalm*
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
How do I create a system that choosesa number, etc automatic but it does not repeat it ?
Example: 1, 2, 3, 4, 5 and the script run that: 2, 4, 1, 5, 3.. In other roll: 4,1,3,5,2
Is there a way to program a macro that is running endlessly looking for a particular on chat word and when it finds it send a command?
example:
Player: hey!
The macro sees the word "hey" on chat and sends the command:
/ ban Player
Waiting response.
Tanks
Instead of it running all the times use the onChat event. It will send the message to the CHAT variable. There should be a script to check the chat variable.
Instead of it running all the times use the onChat event. It will send the message to the CHAT variable. There should be a script to check the chat variable.
Yes, must have some way of choosing the variable. The problem is, how?
i am not good at this things, but can some do (for me)
macro mod types auto:
when my health is 0.5 macromod type: /sethome 1233321
and when i press respawn macromod type: /home 1233321?
pleeeeeeeease`?
My server uses §# for colors and only §, currently people in IRC can put it through fine with our bot however I'm looking to use the character however minecraft doesn't take ALT+21 so I'm trying to use this mod (since I use it a lot already) to write "§9 my text" or something to that effect however when I do so the message that pops out of the mod is "?9 my text". Is this a limitation of the mod or a protection on minecrafts end?
Macro/Keybind mod Wiki
i have a question, the unique variable (like %pickupitem%) in events macro binding won't work if i placed in another script file.
placing it in one file is working normally, but not when i exec'd other file from macros folder.
is this bug or just an script engine specification?
http://img17.imageshack.us/img17/7108/20120410172917.png
You have to set %pickupitem% to an other global variabel
I think this should work
Macro/Keybind mod Wiki
worked ty
is there any wiki/script reference?
Yes there is a readme: http://eq2.co.uk/minecraft/mods/mod_macros_0.8.5_readme.txt
And Mumfrey is working on an wiki
Macro/Keybind mod Wiki
I would try enclosing the entire thing in an IFMATCHES(%CHAT%,?:- .+?: .*) to check to make sure that the message is actually a chat message, though Mart's method should work.
This is already included, look in the options tab.
This is possible through scripting.
However, LWJGL doesn't correctly detect the ALT key, which will make it freeze the game and open up the menu that pops up when you right click the title bar. Using other keys that you have already bound a macro to would be tricky, if not impossible, without firing both macros.
I forgot what i used..., but it would make sense to use the same regex there...
that way it will always react if it catches a new message, and never if it doesn't
I'll presume by text file you meant you're running it as a script
If so, you could do
'Cause tomorrow spring is here
Those normal text files can actually be used anywhere, not necessarily as scripts =P, hence why i checked
simply ss<filename.txt> wouldn't quite work for that, unless you just want to read the file out loud to the server
then again, you can also use those inside scripts i would presume, so that one file links to another, but i've not yet tested that
'Cause tomorrow spring is here
Or more simply,
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
When you bind to a key that minecraft already uses it doesn't run UNLESS you have the green text on your screen while you press it
(Either by having clicked Macro Activate, or holding Macro Override)
Alternatively, when editing a key there's an option to "always override"...., then you will lose your ability to jump with that key, but if you're gonna do that you might as well rebind it to some other key in the controls menu
But...., if that's a script the "Hello World" and "This is a test" won't do anything..., and if it's a macro then it will just say all three lines, and won't wait..., right?
Did you mean:?
Hello World!|$${Wait(5)}$$|This is a test
'Cause tomorrow spring is here
That is exactly what I meant, I feel stupid xD
Leaving $${}$$ off of the wait would just say wait(5) in chat. *facepalm*
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
Example: 1, 2, 3, 4, 5 and the script run that: 2, 4, 1, 5, 3.. In other roll: 4,1,3,5,2
Thanks, theiago
example:
Player: hey!
The macro sees the word "hey" on chat and sends the command:
/ ban Player
Waiting response.
Tanks
Instead of it running all the times use the onChat event. It will send the message to the CHAT variable. There should be a script to check the chat variable.
Yes, must have some way of choosing the variable. The problem is, how?
Obviously the RegEx needs adjusted to something more useful. But that is the basic idea, place % and % around the CHAT variable to resolve it's value.
Will not work
is what you need.
I am not sure if IFMATCHES will take the variable without them in this version, but it didn't previously, and will not hurt now.
macro mod types auto:
when my health is 0.5 macromod type: /sethome 1233321
and when i press respawn macromod type: /home 1233321?
pleeeeeeeease`?