Hi I'm still fairly new to mudlet what I'm trying to do is gag lines in the most efficient way possible as there are a lot of unnecessary things I'm seeing.
For example I've done ^(\w+) recharges a Scroll of Healing from an energy cube.$ and ^Your left arm is off balance.$ to deleteLine()
This gags the line and removes it just fine but the only problem I'm finding is that it spams my prompt a fair bit as well
Is there anyway to fix this or is there a better way to gag things?
For example if I tab my bash key a few times I get this:
You strike at a robed obesefessor's body with a viciously hooked flail.
9716h, 8220m, 7340e, 10p, 23280en, 23280w Berxkdb<>-
You strike at a robed obesefessor's body with a viciously hooked flail.
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
You take a drink of a potion of frost from a bloodstone vial.
Steam rises from your skin as the fires that plague you are extinguished. (0.304s)
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
You must possess balance in order to do that.
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
You must possess balance in order to do that.
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
9716h, 8220m, 7340e, 10p, 23280en, 23280w Bexkdb<>-
You must possess balance in order to do that.
Comments
function deleteFull()
deleteLine()
tempLineTrigger(1,1,[[if isPrompt() then deleteLine() end]])
end
and the second one @Synkarin dosn't seem to gag lines at all unless i'm copping it in incorrectly?
function deleteFull()
deleteLine()
tempLineTrigger(1,1,[[if isPrompt() then deleteLine() end]])
end
I'm not sure why it wouldn't be working for you - can you show a log or it not working and how you're using it?
^You must regain equilibrium first.$
^Your left arm is off balance.$
^Your legs are off balance.$
etc and a lot of others set with pearl regex in one trigger.
So I copy and paste
function deleteFull()
deleteLine()
tempLineTrigger(1,1,[[if isPrompt() then deleteLine() end]])
end
into the box and test it and this happens.
http://dumptext.com/B2eucXbt
As a note my attack macro is basically this
if pk_razeshield then
sendAll("raze "..target, "raze "..target,false)
else
sendAll("stand", "assess " ..target, "strike "..target.. " right chest", "strike "..target.. " left chest smashchest",false)
end
I've tested it with that macro and a simple send ("invoke circle") macro as well and the same result happens.
if I then go and paste in deleteLineP()
then I get this result
http://dumptext.com/tJcnqwVt
Then call deleteFull() with your trigger.
Edit: Just to clarify, take what Sidd wrote for you, make a new script, and paste it there.
Then whatever you want to gag, just put: "deleteFull()" as what the trigger should do.
the deleteFull is a function, so you put that in a script and then use deleteFull() in lieu of deleteLine() when you want to include gagging the prompt
Awesome thank you two for the help, like I said im a bit of a newbie with mudlet didn't think to put it in a script
Works perfectly now.