Search found 72 matches

by Vooku
Fri Jul 27, 2018 9:43 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 14456

Re: How to capture and store data (and view it via an alias)?

I ran the LUA script you posted to convert to number. Not sure why it didn't work.

@aucdata(?: \w+)?$

show_auction_data(matches[2])

display(matches) returns "@aucdata price"
by Vooku
Fri Jul 27, 2018 9:35 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 14456

Re: How to capture and store data (and view it via an alias)?

Maybe my .lua file is the issue.
by Vooku
Fri Jul 27, 2018 9:02 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 14456

Re: How to capture and store data (and view it via an alias)?

I paste/copied your newest code in and here a screen shot of the print data when I "@aucdata price"
by Vooku
Fri Jul 27, 2018 8:55 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 14456

Re: How to capture and store data (and view it via an alias)?

Here is what I have... auction_data = auction_data or {} function add_auction_data(item, price, buyer) local date = os.date("%b %d, %Y") table.insert(auction_data,{item = item, price = price, buyer = buyer, date = date}) local sort_func = function (a,b) if a.item ~= b.item then return a.item < b.ite...
by Vooku
Fri Jul 27, 2018 2:21 am
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 14456

Re: How to capture and store data (and view it via an alias)?

Hmmm. Still always prints the data the same way no matter if I use:

@aucdata date
@aucdata price
@aucdata item
@aucdata buyer

Sorry for being such a nub:P
by Vooku
Fri Jul 27, 2018 12:20 am
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 14456

Re: How to capture and store data (and view it via an alias)?

Errors all gone, but when I '@aucdata price' it still lists everything by item.

I'm guessing this line isn't correct...

function show_auction_data()
by Vooku
Thu Jul 26, 2018 11:50 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 14456

Re: How to capture and store data (and view it via an alias)?

Thanks much.

I'm getting an error on the "if a.[order[1]] ~= b.[order[1]] then return a.[order[1]] < b.[order[1]] end" line.

Says expected a ')' near '['
by Vooku
Thu Jul 26, 2018 8:33 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 14456

Re: How to capture and store data (and view it via an alias)?

I think if I could type @aucdata XXXX (date, item, buyer, price) that would be good enough. I think I could 'mess' with the code to maybe add more columns later if needed. I'm thinking that information would be plenty tho.
by Vooku
Thu Jul 26, 2018 8:22 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 14456

Re: How to capture and store data (and view it via an alias)?

Wow! The was a fast reply. So if I use the 2nd option I could type "@aucdata item" based on how I have my alias currently? I'm getting this error when I copied it into Mudlet... Lua syntax error:[string "Script: initCustom"]:85: " expected near '[' line 85 is... if a.[order[1]] ~= b.[order[1]] then ...
by Vooku
Thu Jul 26, 2018 8:04 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 14456

Re: How to capture and store data (and view it via an alias)?

Now that it is working great again, how would I go about making another alias (like @aucdatadate) that would display the data in the same table by date then alphabetical item name?