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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Map Window v1 - Non mini windowed version - question

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Map Window v1 - Non mini windowed version - question

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Bottomfeeder   (42 posts)  [Biography] bio
Date Tue 12 Aug 2008 09:40 PM (UTC)  quote  ]
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.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Wed 13 Aug 2008 04:28 AM (UTC)  quote  ]
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
[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.


1,602 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]