Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ stick prompt to bottom

stick prompt to bottom

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by finnish   Russia  (18 posts)  Bio
Date Sun 14 Sep 2003 11:00 PM (UTC)
Message
hiya.

i wanna make prompt apeear only once on screen, at the bottom. guess all i have to do is omit other occurances of it.
let me show the prompt i get:
<5000/5000 1000/1000 1500/1500 500>
oh i wish muchclient could do substituitions based on regexp...
but now i have to make it work without substitutioning...

she never loved me why should anyone
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 15 Sep 2003 07:41 AM (UTC)
Message
Make a trigger that matches the prompt, eg.

<*/* */* */* *>*

Send the matching text to the status line, and omit the matching line from output.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by David B   USA  (80 posts)  Bio
Date Reply #2 on Mon 15 Sep 2003 08:20 AM (UTC)
Message
If <5000/5000 1000/1000 1500/1500 150> is your prompt then

You can use this:

<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="^\&lt;(.*)\/(.*) (.*)\/(.*) (.*)\/(.*) (.*)\&gt;$"
omit_from_output="y"
regexp="y"
repeat="y"
send_to="12"
sequence="100"
other_text_colour="black"
other_back_colour="black"
>
<send>world.setstatus &quot;&lt;&quot; &amp; &quot;%1&quot; &amp; &quot;/&quot; &amp; &quot;%2&quot; &amp; &quot; &quot; &amp; &quot;%3&quot; &amp; &quot;/&quot; &amp; &quot;%4&quot; &amp; &quot; &quot; &amp; &quot;%5&quot; &amp; &quot;/&quot; &amp; &quot;%6&quot; &amp; &quot; &quot; &amp; &quot;%7&quot;</send>
</trigger>
</triggers>

One problem your going to run into with this is if you omit from the output like this...

if you don't have a linedromp on your prompt it'll also omit everything else in the line as well(might be a bug, not sure though).

I.E.
<5000/5000 1000/1000 1500/1500 500> Character says 'Blah blah blah'

It'll omit the say as well.

Make sure you can add a drop line to fix that.

My code(with a LOT of Nicks help) to fame:

sub OnAutoCombo (TriggerName, TriggerLine, arrWildCards)
dim AutoCombo
AutoCombo = split (arrWildCards (1))
Dim i, attack
for i=lbound (AutoCombo ) to ubound (AutoCombo )
Select Case AutoCombo (i)
case "rp" attack = "punch right"
case "lp" attack = "punch left"
case "s" attack = "sweep"
case "r" attack = "roundhouse"
case else attack = "" ' unknown attack type
End Select
if i = ubound (AutoCombo ) then
world.send "throw " + world.getvariable ("attacker") + " down"
else
world.send attack + " " + world.GetVariable ("attacker")
end if
next
end sub
Top

Posted by finnish   Russia  (18 posts)  Bio
Date Reply #3 on Mon 15 Sep 2003 12:44 PM (UTC)
Message
bah.
never thought of that way.....
you predicted my thought. but, surely, i never thought of adding a \n at the end of prompt to fix.
gotta see if my mud can do it..
yeah! wow! blah!
it works, thanks

she never loved me why should anyone
Top

Posted by finnish   Russia  (18 posts)  Bio
Date Reply #4 on Mon 15 Sep 2003 12:48 PM (UTC)
Message
never change to another client

she never loved me why should anyone
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


18,328 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.