yeah, its info that the mud can send in the background.
the string.match was exactly what i needed. thanks!
Search found 56 matches
- Wed May 05, 2010 11:03 pm
- Forum: Help Forum
- Topic: String manipulation
- Replies: 2
- Views: 2606
- Wed May 05, 2010 9:59 pm
- Forum: Help Forum
- Topic: String manipulation
- Replies: 2
- Views: 2606
String manipulation
From Lua pattern tutorial directory , You can see that string.find() returns the start and finish indices of the whole pattern and the captures that we made using brackets in the pattern. My mud sends me this A~1053~B~1053 A~1053 means my current health is 1053 and B~1053 means my max health is 1053...
- Tue May 04, 2010 9:39 am
- Forum: Help Forum
- Topic: Center-ising text in miniconsoles
- Replies: 4
- Views: 3516
Re: Center-ising text in miniconsoles
echo("UpTimeConsole", align("Uptime = " .. x.value)) Shows <white>< chunk of space ><white><white> Uptime = 1.5 days <white><white><chunk of space> | the left most <white> is where the miniconsole starts, and the pipe is where it ends. The pipe is not really there, i just put it...
- Mon May 03, 2010 10:13 pm
- Forum: Help Forum
- Topic: Center-ising text in miniconsoles
- Replies: 4
- Views: 3516
Center-ising text in miniconsoles
I'm trying to place some text in the centre of a small miniconsole i made with this. echo( "LagConsole", "<center>Lag = " .. x.value .. "</center>") In the console, it displays <center>Lag = 0.00</centre>. Am i doing it wrong? If so, how do i set it such that the text i...
- Sun Apr 25, 2010 8:47 am
- Forum: Help Forum
- Topic: trigger and regex help
- Replies: 10
- Views: 7159
Re: trigger and regex help
Hmm, what you gave didn't seem to work, so I modified it a little to #K%\d{5}(\d{3})(\w{3}) However, there is a problem with the second line where the 2 occurences are appearing at the same time, #K%75560008AAC23:05#K%75560011AAF1.7 days I need to capture #K%75560008AAC23:05 and #K%75560011AAF1.7 da...
- Sun Apr 25, 2010 6:45 am
- Forum: Help Forum
- Topic: trigger and regex help
- Replies: 10
- Views: 7159
Re: trigger and regex help
It is Portal MIP. You can read about it here #K%75560007BAE0.00 #K%75560008AAC23:05#K%75560011AAF1.7 days Basically, 75560 is just a random number, 007 is the number of characters that will be sent after the 007, BAE is the kind/type of information sent and 0.00, in this case, is the info sent. I wa...
- Sat Apr 24, 2010 8:04 pm
- Forum: Help Forum
- Topic: trigger and regex help
- Replies: 10
- Views: 7159
Re: trigger and regex help
Hmm,
Thanks for your time and help.
In the second line, it's not a typo, sometimes they appear together that way in 1 line.#K%75560007BAE0.00
#K%75560008AAC23:05#K%75560011AAF1.7 days
Thanks for your time and help.
- Sat Apr 24, 2010 2:45 pm
- Forum: General Forum
- Topic: Mudlet Mapper preview
- Replies: 151
- Views: 122895
Re: Mudlet Mapper preview
can't wait. how long into the future are we looking at?
btw, what are ire games?
Edit: i'm asking cuz i'm assuming i don't play an ire game cuz i don't know what it is.
btw, what are ire games?
Edit: i'm asking cuz i'm assuming i don't play an ire game cuz i don't know what it is.
- Sat Apr 24, 2010 10:31 am
- Forum: Help Forum
- Topic: trigger and regex help
- Replies: 10
- Views: 7159
Re: trigger and regex help
What if its all in the same line? As in, using the above example. 83949204LLL204charactersworthoftextornumbers I'll capture 83949, 204, LLL then i wanna capture 204charactersworthoftextornumbers. It'll all be in 1 line like the above. So it could be 73848398HHH398charactersworthoftextornumbers, and ...
- Sat Apr 24, 2010 6:30 am
- Forum: Help Forum
- Topic: trigger and regex help
- Replies: 10
- Views: 7159
trigger and regex help
I have this line, 83949204LLL. How do i capture the first 5 numbers into 1 variable, the next 3 numbers into another variable and the next 3 letters into yet another variable. All the numbers and letters can change. Also, is there a way for a trigger to capture say, the next 100 characters. Or next ...