healthynero.blogg.se

Mudlet delete all areas
Mudlet delete all areas










SetAreaName(getRoomArea(mmp.currentroom), name) Mmp.echo("Don't know what area are we in at the moment, to rename it.") If not (mmp.currentroom or getRoomArea(mmp.currentroom)) then Mmp.echo("Prepped room batches, starting deletion.") (100/#t.roombatches)*t.currentbatchi, #t.roombatches)) T.currentbatchi, (t.currentbatchi = 1 and '' or 'es'), #t.roombatches - t.currentbatchi, Mmp.echo(string.format("Deleted %d batch%s so far, %d left to go - %.2f%% done out of %d needed", Mmp.echo("All done! Deleted the '".t.areaname."' area.") that our print statements in between get a chance to be processed split up rooms into tables of tables, to be deleted in batches so Mmp.echo("All done! The area was already gone/empty.") delete the area right away if there's nothing in it the function actually doing area deletion Mmp.echo("Which one of these specifically would you like to delete?")Įcho " " setUnderline(true) echoLink(name, ].name.], "Delete ".name, true) setUnderline(false) echo"\n" Local id, fname, ma = mmp.findAreaID(name, exact) Mmp.echo(string.format("Cleared all labels in '%s'.", mmp.areatabler)) Mmp.echo("Cleared labels in all of the map.") "Total amount of rooms in this map: %s\n", mmp.comma_value(totalroomcount)))įor labelid, _ in pairs(t) do deleteMapLabel(areaid, labelid) end +1 because getAreaRooms starts counting at 0įg("DarkSlateGrey") echoLink(rlist.(" "):rep(40-#rlist)."(".mmp.comma_value(countrooms(id))." rooms)", 'mmp.echoRoomList("'.rlist.'", true)', "View the room list for ".rlist, true) echo("\n") Local getAreaRooms, cecho, fg, echoLink, format, rep = getAreaRooms, cecho, fg, echoLink, string.format, string.repĬecho(format("%s%d ", rep(" ", (7-#tostring(id))), id)) "List of all areas we know of (click to view room list):\n"))

mudlet delete all areas

Local areac = (#allrooms or 0) + (allrooms and 1 or 0) Local roomlist, endresult = getAreaRooms(areaid) or Local areaid, msg, multiples = mmp.findAreaID(areaname, exact) Return mmp.oncontinent(getRoomArea(roomid), "Prime") and '' or ' (Meropis)'Ĭecho(string.format(") in %s%s.", mmp.cleanAreaName(tostring(mmp.areatabler)), showmeropis(roomid)))įg("DarkSlateGrey") echoLink(" > Show path\n", ].roomid.], "Display directions from here to ".roomname, true) resetFormat()Ĭecho(string.format(" %d rooms found.\n", table.size(result)))įunction mmp.echoRoomList(areaname, exact) If mmp.game ~= "achaea" then return '' end If not tonumber(select(2, next(result))) then - old styleįor roomid, roomname in pairs(result) do roomid = tonumber(roomid)ĮchoLink(roomid, 'mmp.gotoRoom('.roomid.')', string.format("Go to %s (%s)", roomid, tostring(roomname)))Ĭecho(string.format(") %s.\n", tostring(mmp.areatabler)))įor roomname, roomid in pairs(result) do roomid = tonumber(roomid)Ĭecho("You have no recollection of any room with that name.") return endĬecho("You know the following relevant rooms:\n") If type(result) = "string" or not next(result) thenĬecho(" You have no recollection of any room with that name.") return end Local result = mmp.searchRoomExact(query) If query:ends('.') then query = query:sub(1,-2) end Here is a small snippet over several pages worth

mudlet delete all areas

So my hope is someone could show me what line I need to edit please and how as it is driving me insane. Sadly I can not figure out what to change as I do not understand the script vadi made With this n mind when I do "who" with the mapper I get the below list with a echo that sends "Go to if clicked like below:Īlikahn - The Portals of Bloodloch (45544)Įleanor - A large swell within the -> (23899) when I click on the link. I am now using the mudlet mapper by vadi and sadly it is slow due to latency issues however using the ig commands Path find/path set is fast for me! Quick question I am hoping others can help me with.












Mudlet delete all areas