-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautomap.tin
239 lines (205 loc) · 2.74 KB
/
automap.tin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
#variable {sizeset} {50}
#alias {move}
{
#map move %0
}
#alias {map}
{
#map map
}
#alias {fixit}
{
rinfo;
colorcheck $MSDP_ROOMVNUM;
#map delete $MSDP_ROOMVNUM;
#map vnum $MSDP_ROOMVNUM;
rinfo;
}
#alias {newroom}
{
#map dig {%0} {new};
move %0;
#map dig {%0} {new};
move %0;
#if {%0 == $s}
{
delroom n
};
#elseif {%0 == $n}
{
delroom s
};
#elseif {%0 == $e}
{
delroom w
};
#elseif {%0 == $w}
{
delroom e
};
#elseif {%0 == $ne}
{
delroom sw
};
#elseif {%0 == "nw"}
{
delroom se
};
#elseif {%0 == "se"}
{
delroom nw
};
#elseif {%0 == "sw"}
{
delroom ne
};
#elseif {%0 == "u"}
{
delroom d
};
#elseif {%0 == "d"}
{
delroom u
};
}
#alias {setupmap}
{
#nop #ses mapper localhost 4051;
#nop #ses 1;
#map read .tt/map;
#map flag vtmap on;
#map goto $MSDP_ROOMVNUM
}
#alias {savemap}
{
#map write .tt/map;
#echo {SAVING map};
}
#alias {setroom}
{
#map set {roomnote} {%0};
}
#alias {run}
{
goto;
findnote %0;
#path run;
${refresh.minimap}
}
#ALIAS {delroom}
{
#map delete %0;
${refresh.minimap}
}
{5}
#ALIAS {findarea}
{
#map find {} {} {} {%0} {};
#path show
}
{5}
#ALIAS {findnote}
{
#map find {} {} {} {} {%0};
#path show
}
{5}
#ALIAS {findroom}
{
#map find {%0} {} {} {} {};
#path show
}
{5}
#ALIAS {goto}
{
#map goto ${MSDP_ROOMVNUM};
}
{5}
#ALIAS {listarea}
{
#map list {} {} {} {%0} {} {}
}
{5}
#ALIAS {listnote}
{
#map list {} {} {} {} {%0} {}
}
{5}
#ALIAS {listroom}
{
#map list {%0} {} {} {} {} {}
}
{5}
#ALIAS {mapoff}
{
#map {flag} {static} {on};
#echo {Room writes disabled!};
#event {MAP EXIT ROOM}
{
#map map $sizeset $sizeset v mapvar;
};
savemap;
#variable {mapvar} {1}
}
{5}
#ALIAS {mapon}
{
#event {MAP EXIT ROOM}
{
#map set roomarea ${roomarea};
#map vnum $MSDP_ROOMVNUM;
#map name $MSDP_ROOMNAME;
#map map $sizeset $sizeset v mapvar;
};
#echo {Mapping enabled! Room Area = <229>${roomarea}<099>. Update with 'zone' command.};
#variable {mapvar} {0};
#map {flag} {static} {off}
}
{5}
#ALIAS {noteroom}
{
#map set roomnote %0;
#echo {RoomNote = <229>%0};
savemap
}
{5}
#ALIAS {rinfo}
{
#map info
}
{5}
#ALIAS {symb}
{
#map set roomsymbol %0;
#echo {RoomSymbol = <229>%0};
savemap
}
{5}
#ALIAS {undo}
{
#map undo;
}
{5}
#ALIAS {walk}
{
#path walk
}
{5}
#ALIAS {zone}
{
#variable {roomarea} {%0};
#echo {Zone set to:<229> ${roomarea}}
}
{5}
#PATHDIR {d} {u} {32}
#PATHDIR {e} {w} {2}
#PATHDIR {n} {s} {1}
#PATHDIR {ne} {sw} {3}
#PATHDIR {nw} {se} {9}
#PATHDIR {s} {n} {4}
#PATHDIR {se} {nw} {6}
#PATHDIR {sw} {ne} {12}
#PATHDIR {u} {d} {16}
#PATHDIR {w} {e} {8}
#VARIABLE {roomarea} {}
#VARIABLE {roomname} {}