"/auction_a") and table. Print(string.format("%-50s: %5s, s, %s",v.item,v.price,v.date,v.buyer)) Making the alias 't' with command 'tell 1 ' allows the to be the string of text to tell the recipient (1). If a.date ~= b.date then return a.date < b.date end click and muttering something under his breath about the wet mud. If a.price ~= b.price then return a.price < b.price end a distant bittersweet feeling at the sound of his alias. If a.item ~= b.item then return a.item < b.item end So, what do you expect to be seeing in those terms?Ĭode: | lua auction_data = auction_data or ) For something like that, i would probably just recommend using a table, and saving that table whenever a new datapoint comes in. Alternatively, you could be seeing one record every few minutes while you play, and expect to have maybe a few thousand total datapoints after playing for a while. Contents 1 Existing mapping scripts 2 Making your own mapping script 2.1 Adding rooms 2.1. For that much data, you definitely want to use a database, which is a bit of work to get setup, but it is fast enough that you should be able to add all the data points as they come in. Mudlet's mapper is split into two parts for the best compatibility on all MUDs - the display and functions in Mudlet, and a per-MUD Lua script that tracks where you are, allows mapping and provides aliases for using the mapper. So, for example, perhaps you see some daily record of sales, and you get 100 records essentially at the same instant, and you are checking every day, so you expect in the range of hundreds of thousands to maybe even millions of records. I mud let you know, that when this Duke of Suffolke was proceeded againft in. Basically, the ideal method is going to depend on two main factors, how quickly are you gathering new data points, and how many total data points are you expecting? To his Right Well-beloued Fellow and Friend, Avgvs tine Vincent, alias. So, the pattern for that should be relatively simple, like so: ^(. ) sold to ( ) for (\d ) platinum!Īs to how you should go about storing/displaying/exporting this data, there are a few things.
0 Comments
Leave a Reply. |