enableAlias()/disableAlias() functions. I'd guess they'd be almost identical to enableTrigger/disableTrigger. Might have a look if I get a minute...
[EDIT HEIKO: included]
Search found 28 matches
- Wed Jun 24, 2009 11:04 am
- Forum: General Forum
- Topic: Mudlet features and API requests
- Replies: 535
- Views: 652865
- Wed Jun 24, 2009 4:57 am
- Forum: Scripts & Packages
- Topic: Defence list for Achaea
- Replies: 6
- Views: 8653
Re: Defence list for Achaea
It's a bit complicated to do. Lua doesn't care about the order of this type here (where it's key = value), so the way it saves them is rather random. It is possible to make it go in an orderly fashion, someone suggested to try "so instead of "for k,v in pairs(t) do ..." you can do &q...
- Tue Jun 23, 2009 10:18 am
- Forum: Help Forum
- Topic: Graphical bar display help
- Replies: 4
- Views: 4446
Re: Graphical bar display help
Typically, it was that simple.. Just had to swap resizing/echo'ing text, and it all works now...
Thanks!
Thanks!
- Tue Jun 23, 2009 6:07 am
- Forum: Scripts & Packages
- Topic: Tabbed Chat [w/ screenshot+package]
- Replies: 38
- Views: 36113
Tabbed Chat [w/ screenshot+package]
Here's the tabbed chat script I've been using to split channels based on subject. I've revamped and packaged this now, so it should be reasonably easy to configure... Just import the 'tabbedChat.xml' file. Technically, I guess the showWindow/hideWindow isn't needed if they're moved off-screen, but a...
- Tue Jun 23, 2009 5:44 am
- Forum: Help Forum
- Topic: Graphical bar display help
- Replies: 4
- Views: 4446
Graphical bar display help
--Creates our 'stats' bar, located at the top of the screen function statbarStartup() --Health createLabel( "healthBack", 300, 0, 132, 20, 1) setBackgroundColor("healthBack", 225,0,0,100) createLabel("healthFront", 310, 0, 132,20,0) setBackgroundColor("healthFront...
- Tue Jun 23, 2009 5:34 am
- Forum: Help Forum
- Topic: sending text to miniconsole with a specific colour
- Replies: 4
- Views: 4377
Re: sending text to miniconsole with a specific colour
Well the new functions have been working great on miniconsoles and whatnot, but for whatever reason I cannot get them to work on labels... Not sure if this is just an implication thing or not, but none of the functions bar "setBackgroundColor" seem to work on labels anymore. At the moment,...
- Mon Jun 22, 2009 6:55 am
- Forum: Help Forum
- Topic: table.save and/or table.load not working for me anymore
- Replies: 3
- Views: 3612
Re: table.save and/or table.load not working for me anymore
Caled, I had the same problem a while ago, try specifying an absolute path for the files (eg: "/home/usr/.config/Mudlet") and/or saving the following as a script (it's just the save/load functions in LuaGlobal.lua): function table.save( sfile, t ) if t == nil then t = _G end local tables =...
- Sat Jun 20, 2009 5:11 am
- Forum: Help Forum
- Topic: sending text to miniconsole with a specific colour
- Replies: 4
- Views: 4377
Re: sending text to miniconsole with a specific colour
Caled, I can't remember if I mentioned this in IRC... setTextFormat has been re-enabled in the latest source release, although the 'red' component of the foreground colour is broken, here's a template (bg/fg is background/foreground, r/g/b are just colours): setTextFormat(window, bg_r, bg_g, bg_b, f...
- Sat Jun 20, 2009 12:22 am
- Forum: Help Forum
- Topic: quickly creating a list from a trigger pattern
- Replies: 3
- Views: 3559
Re: quickly creating a list from a trigger pattern
It's actually pretty simple. string.gsub will take the second parameter as a regular expression and search through the string you provided it, recording all matches. The reason (%w+) (which matches any word) works over an entire string is because it doesn't contain 'open line'/'end line' (^/$) chara...
- Fri Jun 19, 2009 11:55 pm
- Forum: Mudlet Development
- Topic: Last requests before feature freeze
- Replies: 46
- Views: 37484
Re: Last requests before feature freeze
readBuffer(), to read the contents of a buffer/label/miniconsole, or am I just missing something?
Oh, and is it possible to have an 'onExit' event, so we can cleanup stuff?
Oh, and is it possible to have an 'onExit' event, so we can cleanup stuff?