Search found 11 matches
- Wed Jan 01, 2014 10:06 am
- Forum: Help Forum
- Topic: Text to textfile.
- Replies: 5
- Views: 5320
Text to textfile.
If i want to save a line of text to a text file, C:\Users\Zenith\AppData\Local\Mudlet\Mudlet Stats.txt how would i do that? The line of text i want to save everytime it appears is: Your base abilities are: Str:xx Int:xx Wil:xx Dex:xx Con:xx. Too: C:\Users\Zenith\AppData\Local\Mudlet\Mudlet Stats.txt...
- Thu Aug 15, 2013 9:36 am
- Forum: Help Forum
- Topic: Lists
- Replies: 1
- Views: 2034
Lists
Hi, i want to make a system so i can.
createlist xxxx to create a new list called xxxx.
listadd xxxx yyyy to create an element yyyy under list xxxx.
showlist to display all the lists.
showlist xxxx to display all the yyyy's under list xxxx.
And i suck so hard i cant figure out how.![Sad :(](./images/smilies/icon_e_sad.gif)
createlist xxxx to create a new list called xxxx.
listadd xxxx yyyy to create an element yyyy under list xxxx.
showlist to display all the lists.
showlist xxxx to display all the yyyy's under list xxxx.
And i suck so hard i cant figure out how.
![Sad :(](./images/smilies/icon_e_sad.gif)
- Sat Mar 30, 2013 7:40 pm
- Forum: Help Forum
- Topic: Wildcards/function
- Replies: 5
- Views: 4427
Re: Wildcards/function
Aha thanks! I always miss those!
- Thu Mar 28, 2013 11:28 pm
- Forum: Help Forum
- Topic: Wildcards/function
- Replies: 5
- Views: 4427
Re: Wildcards/function
// It now looks like this. Str = tonumber(matches[2]) Int = tonumber(matches[3]) Wil = tonumber(matches[4]) Dex = tonumber(matches[5]) Con = tonumber(matches[6]) echo ("\n" .. Str .. ' ' .. Int .. ' ' .. Wil .. ' ' .. Dex .. ' ' .. Con) function checkstats() if Str >= 15 and Dex >= 17 and ...
- Thu Mar 28, 2013 11:11 pm
- Forum: Help Forum
- Topic: Wildcards/function
- Replies: 5
- Views: 4427
Re: Wildcards/function
Thank you!
- Thu Mar 28, 2013 7:25 pm
- Forum: Help Forum
- Topic: Wildcards/function
- Replies: 5
- Views: 4427
Wildcards/function
/// This line appears on the mud and i want to capture the bolded parts. /// Your base abilities are: Str: 13 Int: 14 Wil: 18 Dex: 15 Con: 10 . /// So i use this as a perl regex expression. Your base abilities are: Str:(\d+) Int:(\d+) Wil:(\d+) Dex:(\d+) Con:(\d+). Str = matches[2] Int = matches[3] ...
- Sat Mar 02, 2013 11:17 am
- Forum: Help Forum
- Topic: Making a script
- Replies: 2
- Views: 2453
Re: Making a script
The spelling mistake was made writing it over here.
Will do.
Will do.
- Fri Mar 01, 2013 5:21 pm
- Forum: Help Forum
- Topic: Making a script
- Replies: 2
- Views: 2453
Making a script
Hi i want to make some sort of script that will do a couple of things in one command. First i want to store two directions, i do that by the alias: ^flec (.*) (.*)$ matches[2] = firstDirection matches[3] = secondDirection Then i want an alias that does this: send 'flee' send (firstDirection) send (S...
- Sat Jul 09, 2011 7:10 pm
- Forum: Scripts & Packages
- Topic: cMud Map Importer
- Replies: 99
- Views: 154010
Re: cMud Map Importer
New error.
String 38: ')' expected near ']'
String 38: ')' expected near ']'
- Sat Jul 09, 2011 6:52 pm
- Forum: Scripts & Packages
- Topic: cMud Map Importer
- Replies: 99
- Views: 154010
Re: cMud Map Importer
display the result of loc, and what [\/] to [\\/]. I'm guesing you use windows? No clue what you mean :D local loc = string.find(dir, "[[[\/]profiles[/\]]]") Changed it to this, same error. [ERROR:] object:<Create the DB for the map> function:<Alias9> <[string "----------------------...