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.
 Entire forum ➜ MUSHclient ➜ Plugins ➜ Map Window v1 - Non mini windowed version - question

Map Window v1 - Non mini windowed version - question

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


Posted by Bottomfeeder   (42 posts)  Bio
Date Tue 12 Aug 2008 09:40 PM (UTC)
Message
Nick,

I had a question for you about how the first version of the Aardwolf map window captured text. Does it start at the room name and capture down to the exits or does is also capture any players, objects, or mobs in there also?

My hope is the latter so I could get someone to help with the code to redirect the mob, object, and players present text to the map window also.

How do-able do you think that is?


P.S. I love the mini windows and use them in all instances except the map window since I like to have it in a certain location.
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 13 Aug 2008 04:28 AM (UTC)
Message
This is what I get between the "map" tags:


<MAPSTART>
Along the Sands
 
 
                            
                    |*!*| 
             -------    |    
            |,!` ,!` ,!`| 
     -------     -------     
    |~!~ ~!~|, `|         
    |           |            
    |~!~ ~!~ ,#`|         
 ---            |            
 ~!~ ~!~ ~!~ ,!`|         
 ---            |            
    |~!~ ~!~ ,!`|         
    |            ---         
    |~!~ ~!~|, ` , `|     
     ------------            
 
[ Exits: N S W ]
<MAPEND>


As you can see, room contents are not mentioned. You could try to capture room contents by starting on the "Exits" line and trying to detect when the contents are over. Generally you will see something like this:


[Exits: north south west]
A crab shaped like a spider is crawling back to the water.
A crab shaped like a spider is crawling back to the water.
A star fish is here laying silently in the sand.


They tend to be yellow text on white background, however various prefixes like "(Angry)", "(Golden Aura)" etc. throw out a simple detection system. You could try asking Lasher for an option to put something like {contents} ... {/contents} around the things in the room.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


10,480 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.