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 ➜ Miniwindows ➜ Help for a newbie

Help for a newbie

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


Posted by ABFenriz   (3 posts)  Bio
Date Sun 23 Mar 2014 11:08 PM (UTC)
Message
Hello, after a dozen failed attempts in mini-windows scripting i decided to ask for someone help, because i realized i'm more than a newbie in scripting.

What i tried is very simple compared to other examples i found in the forum (i think that even Nick's tutorial about the inventory mini-window doesn't fit my needs).

Briefly, i need to omit ten lines of text included between the words <BEGIN> and <END> and send them to a mini-window.

An example of what i want to omit:

<BEGIN>
Line0
Line1
Line2
Line3
Line4
Line5
Line6
Line7
Line8
Line9
<END>

I don't need mini-window title nor any aesthetic improvement, just the simplest script possible.

Please anyone can help me?
Top

Posted by Fiendish   USA  (2,555 posts)  Bio   Global Moderator
Date Reply #1 on Mon 24 Mar 2014 08:55 PM (UTC)

Amended on Mon 24 Mar 2014 08:56 PM (UTC) by Fiendish

Message
You want something like
http://www.gammon.com.au/forum/?id=8816
But replace MAPSTART and MAPEND with BEGIN and END and change some of the styling and remove the TelnetOptionOn/TelnetOptionOff stuff.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by ABFenriz   (3 posts)  Bio
Date Reply #2 on Mon 24 Mar 2014 09:22 PM (UTC)

Amended on Mon 24 Mar 2014 09:31 PM (UTC) by ABFenriz

Message
I already tried with that code but something went wrong.. but it's sure it's my fault.

Ok it seems I'll give it another try.. just another question:

- do these triggers have any utility for my needs?

<trigger
enabled="n"
match="*"
script="map_redirect"
name="multi_line_map"
omit_from_output="y"
sequence="10"
>
</trigger>

<trigger
enabled="y"
match="You can now sense anger in your immediate area."
sequence="100"
send_to="12"
>
<send>SendNoEcho ("map")</send>
</trigger>

- do i need the hotspot and the hyperlink stuff or can i remove it?

Thanks again for your answers.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Tue 25 Mar 2014 08:19 PM (UTC)
Message
This one is probably pretty close:

http://www.gammon.com.au/forum/?id=9965

It captures an inventory (which can be multiple lines) and shows them in a miniwindow. It's pretty short.

- Nick Gammon

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

Posted by Fiendish   USA  (2,555 posts)  Bio   Global Moderator
Date Reply #4 on Wed 26 Mar 2014 02:10 AM (UTC)

Amended on Wed 26 Mar 2014 02:13 AM (UTC) by Fiendish

Message
ABFenriz said:
- do these triggers have any utility for my needs?

The first one yes. The second one no.

Quote:
- do i need the hotspot and the hyperlink stuff or can i remove it?

Hyperlink no. Other hotspots you should leave until you understand what they do.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by ABFenriz   (3 posts)  Bio
Date Reply #5 on Wed 26 Mar 2014 07:42 AM (UTC)
Message
Thank you so much Fiendish and Nick, i think i'll focus again on Nick's inventory example as it the simplest one.

I'll be back soon with many other questions ;)
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.


22,524 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.