Mudlet 'Plugins'

by Anisu

Back to Mechanic's Corner.

Unknown2011-07-26 14:38:01
Just a small status display for Mudlet to echo a few essential things.

You will obviously need to change it for your liking.

CODE
system.tracking.paused = false
system.gui = system.gui or {}
system.temp = system.temp or {}
system.gui.functions = system.gui.functions or {}
system.tracking.simpleTarget = "NOTHING"


statusBarOutline = Geyser.Label:new({
    name = "target_bar_outline",
    x = 305, y = -25,
    width = "403", height = 25,
    color = "DarkSlateGrey",
}, layout)

statusBar = Geyser.Label:new({
    name = "target_bar",
    x = 306, y = -23,
    width = "400", height = 21,
    color = "black",
}, layout)
statusBar:setFontSize(8)

system.gui.functions.targetui =
function()
    local output = "Target: " .. system.tracking.simpleTarget .. (system.tracking.paused and " * PAUSED *" or "")
            output = output .. (system.temp.currentAurics and (" | Auric Chain: " .. system.temp.currentAurics) or "")
            output = output .. (system.temp.suggestions and (" | Suggestions: " .. #system.temp.suggestions) or "")


    statusBar:echo(output, "orange", "cb")
end

system.gui.functions.targetui()
Calixa2011-07-26 18:04:35
Good stuff Draylor. Btw, did you ever finish your Empath stuff? I downloaded it and tried to work with it, and I could have sworn I had it working in the past, but it totally refused to work today so I ended up manually empathing a hunt. Which ain't too easy, but after an hour and scaring the crew several times I wouldn't mind having a system for it again.
Unknown2011-07-26 19:08:42
I am sorry. Much like a lot of my stuff, that is still a work in progress. Having difficulty sustaining my attention to a single task makes things awfully difficult to complete.

It will get finished at some point. When, I am unable to say right now I am afraid.

"Rampart" remains hovering around the 75% completion mark. I will try and set aside more time, ok. 95% of my time is sadly taken up with bashing and GA stuff lately. sad.gif
Unknown2011-08-15 11:58:43
Right. Made some changes to the autobasher code.

You may download the script from here.

Import the script, then as an example to make it work, create a macro with the following code:

CODE
if #AMTS.tracking.mobsToKill > 0 then
   send("kick " .. AMTS.tracking.mobsToKill)
   else echo("\\nNothing left to bash! Let's move on.\\n")
end


You will also need a check for mob table regeneration.

CODE
^You have slain an? .+$


Just have that call the table population function.

Enjoy!
Tacita2011-08-19 18:51:22
Out of curiosity - are there any healing systems for mudlet available apart from m&m at the moment?
Calixa2011-08-22 15:00:34
XP counter

A simple script that tells you after each kill (except your initial one) how much XP you have earned, how much more mobs you have to kill, how long it took you since your last kill, and how much longer you will have to bash for, all based on your last 10 kills. It's set up for regular slaying and aetherbashing, influencing you will have to add yourself (unless someone gives me the lines).

There is one alias "xp reset" which resets the counter. Great if you went afk a while or things start acting up.

Note that under triggers, you will have to go into xp counter and edit the child trigged called gagging. You will have to add your own name and title here. I couldn't find a good regexp for that. If anyone has one, please share and I'll add it ohmy.gif

Lastly, this has only been tested by me, if anyone finds errors or has remarks on how to better code this then please let me know.

Shishi2011-08-22 15:54:53
QUOTE (Calixa @ Aug 22 2011, 08:00 AM) <{POST_SNAPBACK}>
XP counter

A simple script that tells you after each kill (except your initial one) how much XP you have earned, how much more mobs you have to kill, how long it took you since your last kill, and how much longer you will have to bash for, all based on your last 10 kills. It's set up for regular slaying and aetherbashing, influencing you will have to add yourself (unless someone gives me the lines).

There is one alias "xp reset" which resets the counter. Great if you went afk a while or things start acting up.

Note that under triggers, you will have to go into xp counter and edit the child trigged called gagging. You will have to add your own name and title here. I couldn't find a good regexp for that. If anyone has one, please share and I'll add it ohmy.gif

Lastly, this has only been tested by me, if anyone finds errors or has remarks on how to better code this then please let me know.


Would you be willing to add demigod essence?
Vadi2011-08-22 21:27:01
QUOTE (Calixa @ Aug 22 2011, 10:00 AM) <{POST_SNAPBACK}>
Note that under triggers, you will have to go into xp counter and edit the child trigged called gagging. You will have to add your own name and title here. I couldn't find a good regexp for that. If anyone has one, please share and I'll add it ohmy.gif


Looks nice! You forgot to enable multiline for the gagging trigger though, it's doing to gag any of those lines anywhere it sees them.
Calixa2011-08-23 11:13:57
QUOTE (shishi @ Aug 22 2011, 05:54 PM) <{POST_SNAPBACK}>
Would you be willing to add demigod essence?


This would be a great idea, at some point that will be useful to me too! Could probably fetch that from GMCP. Still sad decimals for XP didn't get added to that but oh well sad.gif I've noted it down and will release a new version with this.

QUOTE (Vadi @ Aug 22 2011, 11:27 PM) <{POST_SNAPBACK}>
Looks nice! You forgot to enable multiline for the gagging trigger though, it's doing to gag any of those lines anywhere it sees them.


I wish I could say that was forgotten with the copying to another profile for easy export, but alas, I didn't even think of that. Still learning, heh. Added it now blush.gif
Unknown2011-10-12 05:28:47
*likes this list* I'm an RPer looking at Lusternia as a possible new MUDD home, and I likes this thrad very much, I do!:)
Unknown2011-11-04 20:49:21
Here's a neat little trick.

^\\"+(\\d+)\\"\\s+(.+)\\.$

local repNumber = matches
setFgColor(255, 165, 100)
echoPopup(" ", {] .. repNumber .. ], ] .. repNumber .. ], ] .. repNumber .. ]}, {"Probe", "Consider", "Get"}, true)
Calixa2011-11-06 12:55:04
Draylor: First off, what does your neat trick do, I don't like installing scripts I don't understand :P

Secondly, your autobasher bitches in populateMobTable that AMTS is a nil value. I see it initialized at the start so I dunno why it does that. I have it with your other scripts too, because there are dots in the naming it freaks out about that.

When you say insert into a macro, I assume you mean a key or an alias, yes?

To get the trigger to call the table population, that's just a regexp trigger with "populateMobTable()" in the big box?

Lastly, I assume this will "autobash" as long as it is enabled? I'd like some control over it, so I can turn it off when having to run afk, so I don't break the game rules :x
Unknown2011-11-06 13:57:57
The "neat trick" basically just gives an option to right click items on IH. (Gives a pulldown menu)

As for the autobasher, the code was just provided as an example. It was from my Aetolian system. Give me a few minutes, and I'll post something updated that works for Lusternia. :)
Unknown2011-11-06 13:58:59
Also, it's not really a full auto-basher as yet. It's still a work in progress. Right now, it simply just populates a table with the rep numbers of pre-defined mobs. (Basically, you never have to target anything again.)
Calixa2011-11-06 16:50:00
Pretty sure sysEcho is not something standard :P And had to add the GMCP event to the first pastebin. I got this working now though \\o/ Now I'll tinker with it is it can be combined with m&m's loop function so it needs even less button pressing :D

The dropdown menu thingie ain't working, somehow. I tried to highlight but the regexp isn't going off on IH. <_>
Unknown2011-11-06 16:57:58
Sorry, yeah. sysEcho() is just:

function sysEcho(type, args)
cecho("\\n<BWL>: " ..string.upper(type) .. ": " .. string.title(args))
end


As for the IH parser, blame Lusternia for being different, heh.

^\\"+(\\d+)\\"\\s+(.+)$

Will fix it. :)

Enjoy.
Calixa2011-11-06 17:20:15
Both work now. \\o/
Unknown2011-11-06 17:46:09
I'll get round to finishing that empath stuff once I finish up on "BWL" (My Aetolian system.) as I know you wanted that too.
Unknown2011-12-02 19:44:57
Just another basic thing to play with. (Now, this is far from perfect, but it's -something-) - Hopefully somebody has both the time and inclination to improve it, but!

Expression:

^(\\s+)?(\\w+) \\- .+\\((+)\\)$

Script:

echo(" " .. mmp.echonums(matches))

(Basically, it just gives a clickable link for the new who list.)