[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  Help for a newbie
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Help for a newbie

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


Posted by ABFenriz   (3 posts)  [Biography] 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?
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] 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
[Go to top] top

Posted by ABFenriz   (3 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] 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
[Go to top] top

Posted by ABFenriz   (3 posts)  [Biography] 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 ;)
[Go to top] 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.


4,046 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]