Search found 72 matches

by Vooku
Tue Aug 07, 2018 12:19 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 43347

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

^(.+) sold to ([A-Z][W'-]+) for (\d+) platinum!

Another thing I'm seeing is that newer entries won't sort on date. It looks like some of the entries are saving in a different order. Could that be causing that issue?
by Vooku
Mon Aug 06, 2018 2:20 am
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 43347

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

That didn't work for some reason. Changed to Auction: (.*) and it wouldn't capture. Right now my trigger is ^(.+)

Would there be an easy way to have it display how many items are in the table at the bottom of the print alias?
by Vooku
Fri Aug 03, 2018 10:06 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 43347

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

One small issue I am seeing. How can I get it to stop capturing my prompt at times? It doesn't do it often and I'm not sure what causes it.
by Vooku
Mon Jul 30, 2018 1:03 am
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 43347

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

auction_data = auction_data or {} function add_auction_data(item, price, buyer) local date = os.date("%b %d, %Y") price = tonumber(v.price) table.insert(auction_data,{item = item, price = price, buyer = buyer, date = date}) table.save(getMudletHomeDir() .. "/auction_data.lua", a...
by Vooku
Sun Jul 29, 2018 7:44 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 43347

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

I removed the [[ and ]] from the numbers and it works fine. Could this be the issue causing my new data to be added as a string?

"price = tonumber(price)"

change to:

"price = tonumber(v.price)"

??
by Vooku
Sun Jul 29, 2018 2:51 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 43347

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

Oh, I haven't merged any files yet, so I'm thinking it's saving as a string still.
by Vooku
Sun Jul 29, 2018 2:50 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 43347

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

I get that just on the price. The other options work fine. I ran that lua command to convert but it didn't take I guess.
by Vooku
Sun Jul 29, 2018 1:15 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 43347

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

I'm getting an "attempt to compare number with string" error on @aucdata price. Is that because I'm not storing price number?
by Vooku
Sat Jul 28, 2018 11:20 am
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 43347

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

Hate to bug you again... I have two questions. How could I manually add an item (item, price, date, buyer) myself via an 'lua' command? Also, would it be a pain to merge auction_data.lua files? I play on my laptop and my tablet so I'd like to be able to merge the table from my tablet to my laptop ta...
by Vooku
Fri Jul 27, 2018 9:50 pm
Forum: Help Forum
Topic: How to capture and store data (and view it via an alias)?
Replies: 76
Views: 43347

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

That was it! Working now. I thought I copied the capture alias. Somehow I messed it up. Thanks, sorting working!