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
➜ how to use mapper plugin to gererate a txtfile
how to use mapper plugin to gererate a txtfile
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Phost
(11 posts) Bio
|
Date
| Sun 28 Nov 2010 04:32 PM (UTC) |
Message
| hello,i want to ask whether the maper plugin can generate the txt file like the following file. which would ilucidate the relations of each room.such as
1=stone street|south:131,west:132,east:3,north:130,
2=south street|west:2,north:14,east:4,south:15,
3=cloud street|west:3,north:12,east:5,south:13,
4=shop|west:4,south:11,north:10,east:6,
5=north steet|west:5,north:8,east:7,south:9,
.................
if it can,should the trigger added?
such as the exit here is ....?
| Top |
|
Posted by
| Ddid
China (19 posts) Bio
|
Date
| Reply #1 on Sun 28 Nov 2010 08:06 PM (UTC) |
Message
| I guess, the mapper plugin that you used is helllua's maper.dll .
If it is, as far as I known, its authour is jarlynn. Maybe you can ask your question with him in another forum -- http://pkuxkx.net/forum
| Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sun 28 Nov 2010 08:39 PM (UTC) Amended on Sun 28 Nov 2010 08:40 PM (UTC) by Nick Gammon
|
Message
| If you are referring to the mapper plugin I wrote, then the data (for the ATCP_Mapper anyway) is kept in a SQLite3 database. It wouldn't be too much work to dump that as a text file with suitable SELECT statements.
For example:
sqlite> select uid, name from rooms limit 10;
462|South end of Market Street
463|Market Street circling the Merchant's Quarter
440|Parade of Zarathustra north of Statue
441|Continuing on the Parade of Zarathustra
453|Northeast of Central Market
454|North of Central Market
458|Northwest of Central Market
4731|The Sarcophagus
457|West of Central Market
455|Central Market of Ashtan
And for the exits:
sqlite> select dir, fromuid, touid from exits limit 10;
n|462|463
se|462|440
sw|462|453
s|463|462
nw|463|464
n|440|441
ne|440|480
se|440|448
sw|440|449
nw|440|462
Combine that information together and you know which rooms have which exits.
For example, north from room 462 (South end of Market Street) leads to 463 (Market Street circling the Merchant's Quarter). |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Phost
(11 posts) Bio
|
Date
| Reply #3 on Mon 29 Nov 2010 03:14 AM (UTC) |
Message
| thanks! i asked jarlynn before and he said he just did it by hand. And i use zmud to draw the rooms before. | 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.
13,075 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top