Search found 885 matches
- Sun Jun 13, 2010 5:32 am
- Forum: Help Forum
- Topic: Script problem
- Replies: 14
- Views: 9174
Re: Script problem
The easiest way to handle this, assuming you don't need to wait a certain amount of time before you can drink a second potion, would be to have it set a variable when it decides to drink a potion. if health < somenumber and not quaffing then quaffing = true send("get potion from pack") sen...
- Sat Jun 12, 2010 6:40 am
- Forum: Help Forum
- Topic: Script problem
- Replies: 14
- Views: 9174
Re: Script problem
you have the button set a variable. For instance, to get to the marshlands, you have the button do this: send("cast <whateverspellyouuse") walkingTo = "marshlands" tempTimer(1,function() walkingTo = nil end) And then in the trigger for the spell's successful effect if walkingTo ~...
- Fri Jun 11, 2010 5:38 pm
- Forum: Help Forum
- Topic: Button Drop Down
- Replies: 10
- Views: 8430
Re: Button Drop Down
The profiled is saved to that profile's base directory. In linux/OSX it is generally $HOME/.config/mudlet/profiles/profilename On windows, I believe it is %HOME%/.config/mudlet/profiles/profilename but I'd have to double check to be sure. It may be more dependent on where you installed mudlet to. I'...
- Tue May 25, 2010 7:09 pm
- Forum: Whatever
- Topic: lua tags in forum
- Replies: 2
- Views: 3861
Re: lua tags in forum
the "Code" button has now been replaced with a "Lua" button, which will insert the beginning and ending lua syntax highlighting tags for you.
- Tue May 25, 2010 2:52 am
- Forum: Help Forum
- Topic: numeric variable tracking
- Replies: 2
- Views: 2381
Re: numeric variable tracking
You'll want an alias to turn the tracking on/off, one to reset it, and one to display the totals. The one to turn it on/off could be pattern:^gtrack(?: )?(on|off)$ script: if matches[2] == "on" then goldtracking = true return elseif matches[2] == "off" then goldtracking = false r...
- Sun May 23, 2010 11:58 pm
- Forum: Howtos, FAQs and Tips & Tricks
- Topic: function to easily align text for display (actually, 4 now)
- Replies: 30
- Views: 36134
Re: function to easily align text for display (actually, 4 now)
EDIT: Newest version. This has now spread into four functions, so that it will format specifically for echo, cecho, decho, and hecho (align, calign, dalign, and halign respectiveiy) function align(str,options) --str is a string, options is a table --[[ If they sent anything but a table as the second...
- Sun May 23, 2010 8:23 pm
- Forum: General Forum
- Topic: Mudlet features and API requests
- Replies: 535
- Views: 652980
- Fri May 21, 2010 10:39 pm
- Forum: Help Forum
- Topic: io.open, io.write
- Replies: 3
- Views: 3581
Re: io.open, io.write
wow, ok that's a lot in one post and I'm at work. I'll check back later to try and answer some of your specific questions. for the code related stuff, you want [lua] stuff [/lua] and that will do the syntax highlighting/etc. For reading lua files in, you can use dofile() just fine. I tend to pass it...
- Fri May 21, 2010 10:26 pm
- Forum: Howtos, FAQs and Tips & Tricks
- Topic: Mob Damage Display
- Replies: 4
- Views: 5902
Re: Mob Damage Display
The other thing you'll find is that your attacks do the same amount of damage to other players fairly consistently. At least, they did the last time I tested it, which I admit was some time ago. Now obviously stats and artifacts and the like will adjust how much damage this is, but from that you can...
- Wed May 05, 2010 10:22 pm
- Forum: Help Forum
- Topic: String manipulation
- Replies: 2
- Views: 2507
Re: String manipulation
Is this coming in as a normal line, or something else? If it's part of, say, your prompt you're better off capturing it in the trigger itself. A~(\d+)~B~(\d+) of course if you're getting it some other way, the lua route will be it. I wouldn't use string.find, however, you'd be better off with string...