The (.+) matches everything, including those
if you mean for the character class, you need to make sure you escape anything with special meaning, such as a $ (end of string anchor)
when I attempted to add the escape for the $ symbol in the (.+) it just didnt catch that line at all, it just completely ignored it. Also, it seems to stop at a comma, for example if the actual message is:
Hello, would you like to drink some tea with me?
That does not make sense..., you have two "repeat last" arguments there
if you want to match only 10 or more, remove the +
if you want to match everything, remove the {}
I removed it, yet I still get an error when I type a $ symbol in the chat, and if i add \$ to the regex it just ignores that message completely.
Edit: so I've been working with the macro a bit and it seems that I found the problem, when the macro is doing Exec() it outputs the $ symbol in the params and causes the error, would there be anyway for it to use the $ symbol as a literal $ and not its special meaning?
Edit 2: I found a way to fix the error with $ and commas with the REPLACE() command, but now I cant seem to get it to work with the \ character, is there any way for me to replace that?
The issue with the \ character only happens when its at the end of the text.
Edit 3: Fixed the issue with the \ character! I just had to change the text around a bit so it would make the \ character escape another character that wouldn't interfere with the text.
Side note that may be important to users:
DISCONNECT() is broken by VoxelModPack's VoxelMenu component.
Deselect the VoxelMenu component while installing VoxelModPack, and everything works dandy. ^u^
You can disable the in-game menu part of VoxelMenu in the config file by setting CustomIngameMenu to false.
In this server I was playing there are some commands that have cooldown's before you can use them again (The mod they is called hero's) and they appear in chat but it is hard to read the cooldown's and fight another player at the same time. I know it is possible to make them but I am not sure how, if anyone needs a better description of what I am talking about there is a video of a player using the macro it is a coloured text with a timer beside it not in chat but on the screen like so http://imgur.com/a/cqT7a#0
The reason why I ask here and not the person who made it is because they left the server and I have nobody to get it from.
Please help if you can it would be very appreciated
changing a variable has nothing to do with that..., the only way to influence chat is with a chatfilter script
(you need the chatfilter module installed)
if it reaches a Filter() command it stops execution and does NOT show the message that triggered it
so basically,
IFMATCHES(%CHAT%,"^§e(.+?) has just connected.")
Filter()
ENDIF
changing a variable has nothing to do with that..., the only way to influence chat is with a chatfilter script
(you need the chatfilter module installed)
if it reaches a Filter() command it stops execution and does NOT show the message that triggered it
so basically,
IFMATCHES(%CHAT%,"^§e(.+?) has just connected.")
Filter()
ENDIF
Would you mind elaborating on the chatfilter module a little bit?
I found the module in the eq2 directory, but I am not sure I installed it correctly.
Excuse my stupidity, but I've been trying to make a macro that reacts to what is put into chat by either the server, or players and I have not been successful
EDIT: Also, on account of my stupidity, I am not able to figure out how to empty a chest into my inventory.. I've fooled around with SLOTCLICK, but I can't seem to get anything to happen once I'm actually in the chest I've opened.
Would you mind elaborating on the chatfilter module a little bit?
I found the module in the eq2 directory, but I am not sure I installed it correctly.
Excuse my stupidity, but I've been trying to make a macro that reacts to what is put into chat by either the server, or players and I have not been successful
EDIT: Also, on account of my stupidity, I am not able to figure out how to empty a chest into my inventory.. I've fooled around with SLOTCLICK, but I can't seem to get anything to happen once I'm actually in the chest I've opened.
You put it in /macros/modules
you can edit the "chat filter" from the little icon top left, where "file" usually is
the dropdown list should contain chatfilter
This is the only thing that can actually change messages you receive before they are displayed.., without it you can use Log to create your own, but you can't affect the ones sent from the server
If you wanted to not make it appear, this is what you need, yes
Well, if it's not important which slot it goes to, you could
For(#slot,0,26)
SlotClick(%#slot%,l,true) //click, left button, hold shift
Next
You put it in /macros/modules
you can edit the "chat filter" from the little icon top left, where "file" usually is
the dropdown list should contain chatfilter
This is the only thing that can actually change messages you receive before they are displayed.., without it you can use Log to create your own, but you can't affect the ones sent from the server
If you wanted to not make it appear, this is what you need, yes
Well, if it's not important which slot it goes to, you could
For(#slot,0,26)
SlotClick(%#slot%,l,true) //click, left button, hold shift
Next
replace 26 with like..., 53 for large chests
I may not have time to mess with it today, but I just wanted to say thanks for taking the time to respond and help.
I'll eventually figure this out.
It's going to be used to empty out a full chest into my inventory, and then I will be closing chest gui, moving my character elsewhere, returning and moving on to the chest next to it and doing the same thing..
So basically..
Start..
Open chest
Empty chest
Close chest
___________
Warp out empty inventory(I've already got this part working)
____________
Return to exact location in front of empty chest.
Move slightly
Open next chest
empty chest
close chest
____________
etc etc.. I'm not asking you to script this out for me, but if you see anything that I need done in there that is too difficult for someone who is mildly retarded, or if you have any advice on making it let me know.
I installed the mod but when I played minecraft all game sounds stopped working, any idea why?
You are likely using a Mac, whose archiver overrides folders rather than merging them. Get a clean jar, and reinstall liteloader by dragging it's individual folders in com rather than replacing the com folder, which has files essential to the sound system.
1. I'm trying to have some macros that do different key clicks for a thingy ma jig.
The first one I am having trouble with is getting it to do left-right-left.
The next one is left-right-right.
The last one, which I haven't attempted yet but I figured will be the same, is left-left-right.
I can't get 'em to work right.
2. I'm trying to get a one bottom toggle config thing so I can hit one button and switch from config a to b and then back. Currently it only goes one way. This is the first time I'm using the config command and having a more complex if. I'm just gonna take out the logs because that just clogs it up here. That I can put in afterwards. Currently I have this:
if(config="");config(Archer);else;config("");endif
It only switches to config b, not a. It only goes one way. D:
I'm not very experienced in coding or anything, so this may seem like a really simple thing. But any help is welcome, thanks in ahead.
1. I'm trying to have some macros that do different key clicks for a thingy ma jig.
The first one I am having trouble with is getting it to do left-right-left.
The next one is left-right-right.
The last one, which I haven't attempted yet but I figured will be the same, is left-left-right.
I can't get 'em to work right.
2. I'm trying to get a one bottom toggle config thing so I can hit one button and switch from config a to b and then back. Currently it only goes one way. This is the first time I'm using the config command and having a more complex if. I'm just gonna take out the logs because that just clogs it up here. That I can put in afterwards. Currently I have this:
if(config="");config(Archer);else;config("");endif
It only switches to config b, not a. It only goes one way. D:
I'm not very experienced in coding or anything, so this may seem like a really simple thing. But any help is welcome, thanks in ahead.
1. As an example
KeyDown(left);Wait(1t);KeyUp(left)
Wait(1t)
KeyDown(right);Wait(1t);KeyUp(right)
Wait(1t)
KeyDown(left);Wait(1t);KeyUp(left)
Wait(1t)
2.
Each config has it's own macros.., you can use that
Don't make it global, in config a, bind Config(b)..., in config b, bind Config(a)
In this server I was playing there are some commands that have cooldown's before you can use them again (The mod they is called hero's) and they appear in chat but it is hard to read the cooldown's and fight another player at the same time. I know it is possible to make them but I am not sure how, if anyone needs a better description of what I am talking about there is a video of a player using the macro it is a coloured text with a timer beside it not in chat but on the screen like so http://imgur.com/a/cqT7a#0
The reason why I ask here and not the person who made it is because they left the server and I have nobody to get it from.
Please help if you can it would be very appreciated
You need labels or progress bars bound to variables such as @#stun, for example
$${
//trigger script
IFMATCHES(%CHATCLEAN%,"^%PLAYER% used (.+)!$",&name)
I may not have time to mess with it today, but I just wanted to say thanks for taking the time to respond and help.
I'll eventually figure this out.
It's going to be used to empty out a full chest into my inventory, and then I will be closing chest gui, moving my character elsewhere, returning and moving on to the chest next to it and doing the same thing..
So basically..
Start..
Open chest
Empty chest
Close chest
___________
Warp out empty inventory(I've already got this part working)
____________
Return to exact location in front of empty chest.
Move slightly
Open next chest
empty chest
close chest
____________
etc etc.. I'm not asking you to script this out for me, but if you see anything that I need done in there that is too difficult for someone who is mildly retarded, or if you have any advice on making it let me know.
Always appreciated.
For precision movement you can't trust timing, at all
I recommend trying to use Look() and the HITID environment variable to detect certain blocks (like the chest, but if you need to "move to the next one" you could have a row of alternating blocks above the chest that you can count
Ok, please excuse this newbie - only found out about this (& still learning about it - so I have absolutely NO idea about making scripts etc) recently - mainly due to being 'made a mod' on a server...I'm finding using this for some 'common Moderator commands' quite handy. The query I have is related to 'Hawkeye' commands that I usually have to use
I know it's been asked before (using the search function above) about having lists of required parameters to make hawkeye search different radiuses/time/actions etc etc (whichc I am planning to attempt to do myself).. but my question is really for the results that come back, not the ability of choosing different search parameters from a list
Hawkeye 'search results' only display ~6 entries at a time on screen within the game & we have to use the command '/hawkeye page xx' for each additional 'page' of results there are...(And being shown in chat can quickly 'scroll off the top' before I have a chance to read it)
After seeing posts here about 'saving chat to file' etc I was wondering IF there was a way of making a script/macro (whatever) that will allow me to enter a hawkeye search command (e.g. '/hawkeye search t:2d r:15 l:here p:cannonfoddr') & ALL the results that come back are saved to a text file instead of being showing on screen.
This way I can then open this up in notepad/word (whatever) and search through the whole list instead of 'paging through' it in-game.
(Ideally if it IF possible - can someone actually do the script for me.. as said I have no idea of 'scripts'. Those 'set','ifmatches','endif' are total gobblygook to me )
when I attempted to add the escape for the $ symbol in the (.+) it just didnt catch that line at all, it just completely ignored it. Also, it seems to stop at a comma, for example if the actual message is:
Hello, would you like to drink some tea with me?
the macro would only catch:
Hello
Edit: Im using (.{10,}+) not (.+) to match text
That does not make sense..., you have two "repeat last" arguments there
if you want to match only 10 or more, remove the +
if you want to match everything, remove the {}
'Cause tomorrow spring is here
I removed it, yet I still get an error when I type a $ symbol in the chat, and if i add \$ to the regex it just ignores that message completely.
Edit: so I've been working with the macro a bit and it seems that I found the problem, when the macro is doing Exec() it outputs the $ symbol in the params and causes the error, would there be anyway for it to use the $ symbol as a literal $ and not its special meaning?
Edit 2: I found a way to fix the error with $ and commas with the REPLACE() command, but now I cant seem to get it to work with the \ character, is there any way for me to replace that?
The issue with the \ character only happens when its at the end of the text.
Edit 3: Fixed the issue with the \ character! I just had to change the text around a bit so it would make the \ character escape another character that wouldn't interfere with the text.
You can disable the in-game menu part of VoxelMenu in the config file by setting CustomIngameMenu to false.
Well indeed, and one that I wrote at that, how embarrassing... I'll fix the conflict in the next release.
Here you go.
http://www.minecraft.../#entry22005043
My magic launcher
http://i.imgur.com/CbHrrtm.png
The reason why I ask here and not the person who made it is because they left the server and I have nobody to get it from.
Please help if you can it would be very appreciated
Try REPLACE(&string without the percent signs. In REPLACE the first parameter is an actual variable rather than the string itself.
You're trying to hide chat?
changing a variable has nothing to do with that..., the only way to influence chat is with a chatfilter script
(you need the chatfilter module installed)
if it reaches a Filter() command it stops execution and does NOT show the message that triggered it
so basically,
IFMATCHES(%CHAT%,"^§e(.+?) has just connected.")
Filter()
ENDIF
'Cause tomorrow spring is here
Would you mind elaborating on the chatfilter module a little bit?
I found the module in the eq2 directory, but I am not sure I installed it correctly.
Excuse my stupidity, but I've been trying to make a macro that reacts to what is put into chat by either the server, or players and I have not been successful
EDIT: Also, on account of my stupidity, I am not able to figure out how to empty a chest into my inventory.. I've fooled around with SLOTCLICK, but I can't seem to get anything to happen once I'm actually in the chest I've opened.
You put it in /macros/modules
you can edit the "chat filter" from the little icon top left, where "file" usually is
the dropdown list should contain chatfilter
This is the only thing that can actually change messages you receive before they are displayed.., without it you can use Log to create your own, but you can't affect the ones sent from the server
If you wanted to not make it appear, this is what you need, yes
Well, if it's not important which slot it goes to, you could
For(#slot,0,26)
SlotClick(%#slot%,l,true) //click, left button, hold shift
Next
replace 26 with like..., 53 for large chests
'Cause tomorrow spring is here
I may not have time to mess with it today, but I just wanted to say thanks for taking the time to respond and help.
I'll eventually figure this out.
It's going to be used to empty out a full chest into my inventory, and then I will be closing chest gui, moving my character elsewhere, returning and moving on to the chest next to it and doing the same thing..
So basically..
Start..
Open chest
Empty chest
Close chest
___________
Warp out empty inventory(I've already got this part working)
____________
Return to exact location in front of empty chest.
Move slightly
Open next chest
empty chest
close chest
____________
etc etc.. I'm not asking you to script this out for me, but if you see anything that I need done in there that is too difficult for someone who is mildly retarded, or if you have any advice on making it let me know.
Always appreciated.
You are likely using a Mac, whose archiver overrides folders rather than merging them. Get a clean jar, and reinstall liteloader by dragging it's individual folders in com rather than replacing the com folder, which has files essential to the sound system.
1. I'm trying to have some macros that do different key clicks for a thingy ma jig.
The first one I am having trouble with is getting it to do left-right-left.
The next one is left-right-right.
The last one, which I haven't attempted yet but I figured will be the same, is left-left-right.
I can't get 'em to work right.
2. I'm trying to get a one bottom toggle config thing so I can hit one button and switch from config a to b and then back. Currently it only goes one way. This is the first time I'm using the config command and having a more complex if. I'm just gonna take out the logs because that just clogs it up here. That I can put in afterwards. Currently I have this:
if(config="");config(Archer);else;config("");endif
It only switches to config b, not a. It only goes one way. D:
I'm not very experienced in coding or anything, so this may seem like a really simple thing. But any help is welcome, thanks in ahead.
1. As an example
KeyDown(left);Wait(1t);KeyUp(left)
Wait(1t)
KeyDown(right);Wait(1t);KeyUp(right)
Wait(1t)
KeyDown(left);Wait(1t);KeyUp(left)
Wait(1t)
2.
Each config has it's own macros.., you can use that
Don't make it global, in config a, bind Config(b)..., in config b, bind Config(a)
'Cause tomorrow spring is here
You need labels or progress bars bound to variables such as @#stun, for example
$${
//trigger script
IFMATCHES(%CHATCLEAN%,"^%PLAYER% used (.+)!$",&name)
. IFMATCHES(%&name%,"fireball")
. . Exec(Timer.txt,"Fireball timer",fireball,30)
. ENDIF
. IFMATCHES(%&name%,"Stun")
. . Exec(Timer.txt,"Stun timer",stun,45)
. ENDIF
ENDIF
//------------------------------
// Timer.txt
//------------------------------
Set(@#$$[1],$$[2])
Do()
Wait(1)
Dec(@#$$[1])
Until(@#$$[1] = 0)
}$$
For precision movement you can't trust timing, at all
I recommend trying to use Look() and the HITID environment variable to detect certain blocks (like the chest, but if you need to "move to the next one" you could have a row of alternating blocks above the chest that you can count
does that make sense?
'Cause tomorrow spring is here
The query I have is related to 'Hawkeye' commands that I usually have to use
I know it's been asked before (using the search function above) about having lists of required parameters to make hawkeye search different radiuses/time/actions etc etc (whichc I am planning to attempt to do myself).. but my question is really for the results that come back, not the ability of choosing different search parameters from a list
Hawkeye 'search results' only display ~6 entries at a time on screen within the game & we have to use the command '/hawkeye page xx' for each additional 'page' of results there are...(And being shown in chat can quickly 'scroll off the top' before I have a chance to read it)
After seeing posts here about 'saving chat to file' etc I was wondering IF there was a way of making a script/macro (whatever) that will allow me to enter a hawkeye search command (e.g. '/hawkeye search t:2d r:15 l:here p:cannonfoddr') & ALL the results that come back are saved to a text file instead of being showing on screen.
This way I can then open this up in notepad/word (whatever) and search through the whole list instead of 'paging through' it in-game.
(Ideally if it IF possible - can someone actually do the script for me.. as said I have no idea of 'scripts'. Those 'set','ifmatches','endif' are total gobblygook to me )