Fuyu2011-02-16 04:18:18
QUOTE (Lorina @ Dec 11 2010, 10:38 AM) <{POST_SNAPBACK}>
Okay, yeah that totally work! The pre7 is buggy. Pre5 = new best friend.
Will try this once I get the time. Hope the same works for me.
Vadi2011-02-16 04:49:22
Might as well go newer than that though: http://forums.mudlet.org/viewtopic.php?f=5&t=1874
Unknown2011-02-17 10:34:10
Not exactly a plugin, but a handy alias for all the lazy Warriors out there. It's basically a quicker way to make your maneuvers, instead of having to enter 4 lines for each.
The first wildcard is for the name of the new maneuver, the second is for the action, and the third is a list of the wounds you want to include.
I'm looking to add a way to directly bind the maneuver to key as well, but I'm told that alias to macro functionality isn't available in mudlet (yet, I hope).
pattern: ^maneuvermake (\\w+) (\\w+) (.*)$
contents:
example: maneuvermake facestab hack slitthroat furrowbrow sliceear
The first wildcard is for the name of the new maneuver, the second is for the action, and the third is a list of the wounds you want to include.
I'm looking to add a way to directly bind the maneuver to key as well, but I'm told that alias to macro functionality isn't available in mudlet (yet, I hope).
pattern: ^maneuvermake (\\w+) (\\w+) (.*)$
contents:
CODE
send("MANEUVER DROP " ..matches)
send("MANEUVER CREATE " ..matches)
send("MANEUVER DEVELOP ACTION " ..matches.. " " ..matches)
send("MANEUVER DEVELOP WOUNDS " ..matches.. " " ..matches)
send("MANEUVER SHOW " ..matches)
if string.lower(matches) == "hack" then
        echo("\\nThe syntax to perform this maneuver is MANEUVER PERFORM " ..string.upper(matches).. " UP/DOWN")
    elseif string.lower(matches) == "jab" then
        echo("\\nThe syntax to perform this maneuver is MANEUVER PERFORM " ..string.upper(matches) .. " ")
    elseif string.lower(matches) == "slice" or "swipe" or "slash" then
        echo("\\nThe syntax to perform this maneuver is MANEUVER PERFORM " ..string.upper(matches).. " LEFT/RIGHT")
end
send("MANEUVER CREATE " ..matches)
send("MANEUVER DEVELOP ACTION " ..matches.. " " ..matches)
send("MANEUVER DEVELOP WOUNDS " ..matches.. " " ..matches)
send("MANEUVER SHOW " ..matches)
if string.lower(matches) == "hack" then
        echo("\\nThe syntax to perform this maneuver is MANEUVER PERFORM " ..string.upper(matches).. " UP/DOWN
    elseif string.lower(matches) == "jab" then
        echo("\\nThe syntax to perform this maneuver is MANEUVER PERFORM " ..string.upper(matches) .. "
    elseif string.lower(matches) == "slice" or "swipe" or "slash" then
        echo("\\nThe syntax to perform this maneuver is MANEUVER PERFORM " ..string.upper(matches).. " LEFT/RIGHT
end
example: maneuvermake facestab hack slitthroat furrowbrow sliceear
Vadi2011-02-23 19:44:56
This is Mudlets versions of someone's MUSH script that split the items a person is wearing line by line.
Calixa2011-02-23 19:51:38
QUOTE (Vadi @ Feb 23 2011, 08:44 PM) <{POST_SNAPBACK}>
This is Mudlets versions of someone's MUSH script that split the items a person is wearing line by line.
Oooh, nice, I've been missing that one!
Rakor2011-02-24 01:04:04
QUOTE (Vadi @ Feb 23 2011, 02:44 PM) <{POST_SNAPBACK}>
This is Mudlets versions of someone's MUSH script that split the items a person is wearing line by line.
Esano's - and yeah, this was one of the small things I missed switching from MUSH. Nice.
Vadi2011-02-24 01:06:58
Ah cool. I forgot whose it was, sorry.
Vadi2011-02-24 19:04:16
For lazy demis, an echo telling them which 10p defs are missing when a new day comes about. Edit the list in the trigger, and this does require m&m for it's defence tracking.
Neos2011-02-27 17:40:36
Awesome stuff
I tend to not use this much, because it doesn't log in color, but it logs all your kills for you by date. Might make more use of it depending.
Example:
I didn't notice until I was looking over logs, even if I'd seen the damn log so many times.
I tend to not use this much, because it doesn't log in color, but it logs all your kills for you by date. Might make more use of it depending.
Example:
CODE
: You have slain Ildaudid.
: You have slain Esano.
: You have slain Esano.
: You have slain Glevich.
: You have slain Esano.
: You have slain Esano.
: You have slain Glevich.
I didn't notice until I was looking over logs, even if I'd seen the damn log so many times.
Vadi2011-03-09 01:06:10
Some plugins might find this function useful: downloadFile
Calixa2011-04-12 19:52:56
Update IFF info for who listing
Requirements: IFF plugin and m&m get guild & city info plugin (obviously needs m&m).
Walkthrough:
1) Find the 'IFF' folder under aliases, make a new alias and call it '^iffwho$', add that as the pattern too.
2) Add the following code to the big box:
3) Save.
4) Find 'getinfo' under scripts and expand, select 'ndb_download_done'. Add on a new line before '-- delete the temp file':
5) Save again. Save everything.
6) Try out your new 'iffwho' command. Beware of spam Notice how who and qwho, which might have a lot of names uncolored, now suddenly are all colored. Note that rogues will still be white.
7) Repeat 'iffwho' command whenever you feel your name listing needs an update.
8) Send Calixa hugs / cookies / credits / gold for coding this awesome extra feature.
Requirements: IFF plugin and m&m get guild & city info plugin (obviously needs m&m).
Walkthrough:
1) Find the 'IFF' folder under aliases, make a new alias and call it '^iffwho$', add that as the pattern too.
2) Add the following code to the big box:
CODE
sendGMCP("Comm.Channel.Players")
for i,v in pairs(gmcp.Comm.Channel.Players) do
    player = gmcp.Comm.Channel.Players
  -- Let's get us some info now we have a name
    expandAlias("getinfo " .. player.name, false)
end
for i,v in pairs(gmcp.Comm.Channel.Players) do
    player = gmcp.Comm.Channel.Players
  -- Let's get us some info now we have a name
    expandAlias("getinfo " .. player.name, false)
end
3) Save.
4) Find 'getinfo' under scripts and expand, select 'ndb_download_done'. Add on a new line before '-- delete the temp file':
CODE
  -- update IFF while we have info to feed it
    expandAlias("orgadd " .. name .. " " .. city)
    expandAlias("orgadd " .. name .. " " .. city)
5) Save again. Save everything.
6) Try out your new 'iffwho' command. Beware of spam Notice how who and qwho, which might have a lot of names uncolored, now suddenly are all colored. Note that rogues will still be white.
7) Repeat 'iffwho' command whenever you feel your name listing needs an update.
8) Send Calixa hugs / cookies / credits / gold for coding this awesome extra feature.
Vadi2011-04-12 22:35:25
You can replace the getinfo alias workaround call with a direct one: ndb_download(player.name, true) (or false if you don't want to say the status)
Rika2011-04-12 23:13:56
<3
Lilia2011-04-13 01:59:43
I love you so much!
Rika2011-04-13 09:24:56
When I did iffwho, nothing happened. I triple checked that I followed all the steps.
Lilia2011-04-13 19:00:28
Make sure you have gmcp enabled and restart Mudlet. I had to enter the command a few times before it went through.
Kelly2011-04-13 19:04:54
QUOTE (rika @ Apr 13 2011, 05:24 AM) <{POST_SNAPBACK}>
When I did iffwho, nothing happened. I triple checked that I followed all the steps.
This didn't work for me at first, either, until I opened the debug window. Just enter any command to prompt the gmcp, then iffwho should work. You can close the debug window after getting the gmcp return, and it's fine until you restart Mudlet again, heh.
Any actual intellectual reasoning for this would be neat, but awesome scripts!
Rika2011-04-13 20:17:02
Aha, got it working! Thanks!
Vadi2011-04-13 21:15:52
The problem with the code there is that it assumes that information will be received and parsed into the variables by the next line it runs. Which can never be the case, so you have to at least run it twice for it to work.
Perhaps something like this will work better:
*don't forget to use locals for temporary stuff.
Perhaps something like this will work better:
CODE
sendGMCP("Comm.Channel.Players")
tempTimer(getNetworkLatency() * 2, function ()
for i,v in pairs(gmcp.Comm.Channel.Players) do
    local player = gmcp.Comm.Channel.Players
    cecho("sys", player.name .. "\\n")
  -- Let's get us some info now we have a name
    expandAlias("getinfo " .. player.name, false)
end
end)
tempTimer(getNetworkLatency() * 2, function ()
for i,v in pairs(gmcp.Comm.Channel.Players) do
    local player = gmcp.Comm.Channel.Players
    cecho("sys", player.name .. "\\n")
  -- Let's get us some info now we have a name
    expandAlias("getinfo " .. player.name, false)
end
end)
*don't forget to use locals for temporary stuff.
Calixa2011-04-13 21:48:31
Ugh, you can tell it has been a long time since I last touched code, not using locals is a bit sloppy, not to mention forgetting you can call functions directly.
Is it a general thing that querying GMCP takes a little while before the client receives the data? Or just with big lists like the user one?
Edit: Your above bit of code has a syntax error somewhere Looks like a missing bracket, and an end too many. I can't get it to work though >_<
Edit 2: cecho("sys", player.name .. "\\n") can also go, that is just trying to write a playerlist into a miniconsole to see if it was doing stuff
Is it a general thing that querying GMCP takes a little while before the client receives the data? Or just with big lists like the user one?
Edit: Your above bit of code has a syntax error somewhere Looks like a missing bracket, and an end too many. I can't get it to work though >_<
Edit 2: cecho("sys", player.name .. "\\n") can also go, that is just trying to write a playerlist into a miniconsole to see if it was doing stuff