how to use mapper plugin to gererate a txtfile

Posted by Phost on Sun 28 Nov 2010 04:32 PM — 4 posts, 16,391 views.

#0
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 ....?
China #1
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
Australia Forum Administrator #2
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).
Amended on Sun 28 Nov 2010 08:40 PM by Nick Gammon
#3
thanks! i asked jarlynn before and he said he just did it by hand. And i use zmud to draw the rooms before.