@@ -1237,22 +1237,22 @@ local available = {
1237
1237
end -- room_change_exit
1238
1238
1239
1239
function change_room_area (room, uid)
1240
-
1241
- if next (areas) == nil then
1242
- mapper.maperror("There are no available areas to choose from.")
1243
- return
1244
- end -- if
1245
-
1246
- local chosen_area = utils.listbox ("Choose the area this room belongs to:", "Areas ...", areas)
1247
-
1248
- if not chosen_area then
1249
- return
1250
- end -- if
1251
-
1252
- rooms[uid].area = chosen_area
1253
- mapper.draw (current_room)
1254
-
1255
- dbcheck (db:execute (string.format ([[
1240
+
1241
+ if next (areas) == nil then
1242
+ mapper.maperror("There are no available areas to choose from.")
1243
+ return
1244
+ end -- if
1245
+
1246
+ local chosen_area = utils.listbox ("Choose the area this room belongs to:", "Areas ...", areas)
1247
+
1248
+ if not chosen_area then
1249
+ return
1250
+ end -- if
1251
+
1252
+ rooms[uid].area = chosen_area
1253
+ mapper.draw (current_room)
1254
+
1255
+ dbcheck (db:execute (string.format ([[
1256
1256
UPDATE rooms SET area = %s WHERE uid = %s;
1257
1257
]], fixsql (chosen_area), -- area (e.g. "1" for "western ithmia")
1258
1258
fixsql (uid) -- from current room
@@ -1287,7 +1287,7 @@ function room_click (uid, flags)
1287
1287
{ name = "Add Exit", func = room_add_exit} ,
1288
1288
{ name = "Change Exit", func = room_change_exit} ,
1289
1289
{ name = "Delete Exit", func = room_delete_exit} ,
1290
- { name = "Set area", func = change_room_area} ,
1290
+ { name = "Set area", func = change_room_area} ,
1291
1291
} -- handlers
1292
1292
1293
1293
local t, tf = {}, {}
@@ -1812,11 +1812,11 @@ function map_areas (name, line, wildcards)
1812
1812
function (uid)
1813
1813
local room = rooms [uid]
1814
1814
local reason
1815
- -- if this room is in the list of wanted areas then save its path
1816
- if wanted_areas[room.area] then
1817
- reason = wanted_areas [room.area]
1818
- wanted_areas [room.area] = nil
1819
- end -- found one!
1815
+ -- if this room is in the list of wanted areas then save its path
1816
+ if wanted_areas[room.area] then
1817
+ reason = wanted_areas [room.area]
1818
+ wanted_areas [room.area] = nil
1819
+ end -- found one!
1820
1820
return reason, next (wanted_areas) == nil
1821
1821
end, -- function
1822
1822
show_vnums, -- show vnum?
@@ -1877,6 +1877,7 @@ function OnPluginDisconnect ()
1877
1877
end -- OnPluginConnect
1878
1878
1879
1879
function OnHelp ()
1880
+ mapper.mapprint (string.format ("[MUSHclient mapper, version %0.1f]", mapper.VERSION))
1880
1881
mapper.mapprint (world.GetPluginInfo (world.GetPluginID (), 3))
1881
1882
end
1882
1883
0 commit comments