Search found 1146 matches
- Mon Jun 03, 2013 12:25 am
- Forum: Help Forum
- Topic: Problems with simple database
- Replies: 3
- Views: 2643
Re: Problems with simple database
I use these: http://wiki.mudlet.org/w/Manual:Lua_Functions http://pgl.yoyo.org/luai/i/_ Also, the existing table.update function is broken, but a fix has been made that will be available in the next release. You can put this in your code somewhere to be able to use it until then: function table.upda...
- Mon Jun 03, 2013 12:06 am
- Forum: Help Forum
- Topic: Problems with simple database
- Replies: 3
- Views: 2643
Re: Problems with simple database
A number of the database functions are broken. You would be better served by using tables and saving and loading those. You can essentially do the same things with them anyway.
- Sun Jun 02, 2013 3:42 am
- Forum: Help Forum
- Topic: Stipulating directories with geyser setStyleSheet properties
- Replies: 11
- Views: 7481
Re: Stipulating directories with geyser setStyleSheet proper
Well, if that is the problem, then you can just replace the \'s with /'s. string.gsub(getMudletHomeDir(),[[\]],"/") should do the trick.
- Sun Jun 02, 2013 2:15 am
- Forum: Help Forum
- Topic: Stipulating directories with geyser setStyleSheet properties
- Replies: 11
- Views: 7481
Re: Stipulating directories with geyser setStyleSheet proper
Here is something to try. Take your original version (where you wrote out the whole path) and put parentheses around the entire string you are passing the function. That should still work without any problems. Then, set some variable equal to that whole string (including the border-image: part and a...
- Sun Jun 02, 2013 1:29 am
- Forum: Help Forum
- Topic: Stipulating directories with geyser setStyleSheet properties
- Replies: 11
- Views: 7481
Re: Stipulating directories with geyser setStyleSheet proper
I just forgot the ( ) around everything for some reason. Write it as:
hunting_label:setStyleSheet([[border-image: url(]] .. path .. ");") and it should be fine.
hunting_label:setStyleSheet([[border-image: url(]] .. path .. ");") and it should be fine.
- Fri May 31, 2013 2:10 pm
- Forum: Help Forum
- Topic: Stipulating directories with geyser setStyleSheet properties
- Replies: 11
- Views: 7481
Re: Stipulating directories with geyser setStyleSheet proper
It is just a string that you are passing, so you can set it in advance, like this:
- Tue May 28, 2013 10:35 pm
- Forum: Help Forum
- Topic: Really easy question (I hope)
- Replies: 4
- Views: 2990
Re: Really easy question (I hope)
Generally, buttons are reserved for things that don't require arguments or inputs. So, it would be difficult to make a button mimic this behavior.
- Tue May 28, 2013 9:28 pm
- Forum: Mudlet Development
- Topic: table.update
- Replies: 1
- Views: 2913
table.update
I noticed there was a table.update() function, but that it didn't seem to work. So, I cloned it and then tweaked it until it worked in a way that seemed to be reasonable. I made two versions, one overwrites the table to be updated, the other returns a new table that would result from updating the fi...
- Tue May 28, 2013 5:26 pm
- Forum: Help Forum
- Topic: Really easy question (I hope)
- Replies: 4
- Views: 2990
Re: Really easy question (I hope)
I think the best strategy for something like that would be via an alias. Since you seem to be greeting people, maybe your alias pattern could be this: ^greet (\w+)\s?(\w*)$ The code would then be: if matches[3] == "" then send("say hello " .. matches[2] .. ".") else sen...
- Tue May 28, 2013 3:51 am
- Forum: Help Forum
- Topic: removing newlines from output
- Replies: 4
- Views: 3803
Re: removing newlines from output
Well, I would think that generally, you would set up triggers to capture all the relevant info from before, inside, and after the tag, then delete those lines, then display the information formatted the way you want it. The deleteLine() function removes everything in the line, including the new line...