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")) 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 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! Project:Manual is a place to discuss and co-ordinate the development of the Manual: namespace.Quick question I am hoping others can help me with.If you can't find information on a particular issue in this documentation, please visit The Mudlet Forum and ask your question there and someone will help you.There are still a lot of holes in this manual! See the 'to do' page for details.:Category:Mudlet Manual - the top-level Manual category.Special:Allpages/Manual: - An automatically generated list of all pages in the Manual: namespace.Readers having trouble finding a particular topic in the section above or the category list may find the following ways of browsing to be helpful. There are multiple ways to browse through the documentation. Others Mudlet FAQ Frequently asked questions about Mudlet. Compiling Mudlet | Infrastructure Overview | Links to read | Testing | Versioning For game developers/admins Websockets | Discord Rich Presence | Greg's GMCP snippet Scripting | Lua API and Reference | Geyser GuideĪrchitecture Everything needed to start contributing to Mudlet. Introduction to Mudlet | Technical Manual | Migrating to Mudlet Enhancing your Mudlet experience.
0 Comments
Leave a Reply. |