And where do I find info on the (.+) assignment? I dont see it on any of the site you posted and there is just way too many post in this thread to search through....And what do you mean escape?
For the second, you're using a lazy match, the questionmark makes it match as little as it has to, so it only grabs one letter or one space
either remove the questionmark or add an end of string anchor ($) to make it match as much as it can, or as little as it can with the condition that it matches until the end
the first one is technically more efficient, because with an anchor it tries matching one, then two, then three; but with a greedy match it skips that and matches everything the first time.
For your first script, IFMATCHES and MATCH deal with strings (text), and they save to string! variables
save to a string var first, then if you need to do math, convert
(#value = %&value% or Set(#value,%&value%)
IFMATCHES("%CHATCLEAN%","There are (.+?) out of maximum",@&pcount);
For the second, you're using a lazy match, the questionmark makes it match as little as it has to, so it only grabs one letter or one space
either remove the questionmark or add an end of string anchor ($) to make it match as much as it can, or as little as it can with the condition that it matches until the end
the first one is technically more efficient, because with an anchor it tries matching one, then two, then three; but with a greedy match it skips that and matches everything the first time.
IFMATCHES("%&CHATCLEAN%","(.+?) left the game.",&trash,1);
DEC(@#pcount);
ENDIF;
also I had to add a 1 to the regex on the first one in my previous post with pcount. it was pulling the whole line. Other than the readme, isnt there like 2 more sites with info for all of this. I had the links before but lost them.
Hey, I am trying to use the new progress bar to display a bar that represents how full our server is. When I first join, I will have to have the onjoin script do a /list for me but its not getting the number of current players from the onchat text...
MATCHES("%CHATCLEAN%","There are (.+?) out of maximum",@#pcount);
I have @#pcount in my progressbar.Also, in a IFMATCHES, how would I save every in a line of text in chat AFTER something, like lets say "Player Paxination has banned Mumfrey" shows up in chat, I want to save every thing after HAS with date and time to a file.....This is what i have and its not working for me...
There really isnt anything I can do to TWEAK the warps settings to work with our server. Theres "warps list command" and "warps list addition pages command".
First one I have /warp
Second I have /warp %s
what more can I do to tweak that? Our command is /warp and /warp 2, /warp 3 for the other pages. Its not picking up on the fact that 11 pages exist. My server shows this when I do /warp
For a warp list, its as easy as binding "/warp $$w" to a key or button (no script even needed )
You can either add your own warps or just use the option in the $$w menu to import all of the server's warps.
Yeah, you can add $$! to the command at the point where you want to finish it
Been there done that! My issue is that it wont iterate through all 11 pages! Just gets the first page!
For a warp list, its as easy as binding "/warp $$w" to a key or button (no script even needed )
You can either add your own warps or just use the option in the $$w menu to import all of the server's warps.
Yeah, you can add $$! to the command at the point where you want to finish it
I've done that, it doesnt import all the warps. Doesnt iterate through all of the pages, just the first one.
My initial problem was my message was too long. lol. Figured it out when I decided to shorten it for s and giggles. Second after I tried it it started repeating itself in an infinite loop. The 2 you added fixed it! TY!
On another note, im having issues with the warps list. It doesnt iterate through the list of warps on my SMP server. I have the %S (right one?) set for the pages....
I have a script that auto welcomes NEW players to our server, it does this with ONCHAT and looks for the specific text that NEW players get. How could I parse through the text to get the players name to include it in my welcome message?
And is there a site with all the variables, parameters and scripting info? Something more complete than the readme.
I was wondering if it possible to do simple math with the coordinates variables? Like XPOS +10? I would like to see support for adding to a direction from you like NORTH+10 of your current location. I like to use World Edit alot and find typing the commands out all the time tedious. And having to selection points in air. I could do a script like this
//sel sphere
//pos1
//pos2 NORTH +10
to select a sphere with a radius of 10
And I am having issues with HOMES list and WARPS list working for me. Well the auto discovery. It doesnt see HOMES at all (essentials, I have unlimited homes) and warps works just for the first page, it doesnt go through each page and i Have %s for the pages variable set. Also my admin has nocheatsplus installed and the excemption check doesnt work 100%, so the server would a brick if I tried to access 9 pages of warps at one time. Could you add an option for a delay between pages?
I know you have the WAIT option in scripting but could you just a add a default wait time for the mod to wait inbetween commands. Make it configurable, disable it, change the numeric value, and the type like ms sec mins.
If any of my issues or suggestions have all ready been suggested, please excuse it as I am on my Iphone and not at my pc.
0
0
And that one wont work. I noticed that you left the & in there, and I tried with out it and still no go....
0
So why wont this work....
also I had to add a 1 to the regex on the first one in my previous post with pcount. it was pulling the whole line. Other than the readme, isnt there like 2 more sites with info for all of this. I had the links before but lost them.
0
I have @#pcount in my progressbar.Also, in a IFMATCHES, how would I save every in a line of text in chat AFTER something, like lets say "Player Paxination has banned Mumfrey" shows up in chat, I want to save every thing after HAS with date and time to a file.....This is what i have and its not working for me...
0
The in-game screen!
0
0
0
First one I have /warp
Second I have /warp %s
what more can I do to tweak that? Our command is /warp and /warp 2, /warp 3 for the other pages. Its not picking up on the fact that 11 pages exist. My server shows this when I do /warp
There are 202 warps. Showing page 1 of 11.
0
Been there done that! My issue is that it wont iterate through all 11 pages! Just gets the first page!
0
I've done that, it doesnt import all the warps. Doesnt iterate through all of the pages, just the first one.
0
On another note, im having issues with the warps list. It doesnt iterate through the list of warps on my SMP server. I have the %S (right one?) set for the pages....
0
When I do that I get end of stream error on both my local test server and my multiplayer server.
0
And is there a site with all the variables, parameters and scripting info? Something more complete than the readme.
0
//sel sphere
//pos1
//pos2 NORTH +10
to select a sphere with a radius of 10
And I am having issues with HOMES list and WARPS list working for me. Well the auto discovery. It doesnt see HOMES at all (essentials, I have unlimited homes) and warps works just for the first page, it doesnt go through each page and i Have %s for the pages variable set. Also my admin has nocheatsplus installed and the excemption check doesnt work 100%, so the server would a brick if I tried to access 9 pages of warps at one time. Could you add an option for a delay between pages?
I know you have the WAIT option in scripting but could you just a add a default wait time for the mod to wait inbetween commands. Make it configurable, disable it, change the numeric value, and the type like ms sec mins.
If any of my issues or suggestions have all ready been suggested, please excuse it as I am on my Iphone and not at my pc.
0
You actually dont need to go at night! In fact they spawn more during the day!