working on sniping mode

This commit is contained in:
Manuel Simon Hirsig
2016-07-15 01:48:52 +02:00
parent 05ca03d559
commit 2792ff9358
5 changed files with 173 additions and 97 deletions
+1
View File
@@ -138,6 +138,7 @@ function public.auction(index, query_type)
itemstring = item_info.itemstring,
item_key = item_id..':'..suffix_id,
search_signature = Aux.util.join({item_id, suffix_id, enchant_id, start_price, buyout_price, bid_price, aux_quantity, duration, query_type == 'owner' and high_bidder or (high_bidder and 1 or 0), aux_ignore_owner and (Aux.is_player(owner) and 0 or 1) or (owner or '?')}, ':'),
sniping_signature = Aux.util.join({item_id, suffix_id, enchant_id, start_price, buyout_price, aux_quantity, aux_ignore_owner and (Aux.is_player(owner, true) and 0 or 1) or (owner or '?')}, ':'),
name = name,
texture = texture,
+4 -3
View File
@@ -281,7 +281,7 @@ m.filters = {
return vendor_price and vendor_price * auction_record.aux_quantity - auction_record.bid_price >= amount
end
else
return false, {}, 'Erroneous bid vendor profit Modifier'
return false, {}, 'Erroneous bid vendor profit modifier'
end
end
},
@@ -296,7 +296,7 @@ m.filters = {
return auction_record.buyout_price > 0 and vendor_price and vendor_price * auction_record.aux_quantity - auction_record.buyout_price >= amount
end
else
return false, {}, 'Erroneous buyout vendor profit Modifier'
return false, {}, 'Erroneous buyout vendor profit modifier'
end
end
},
@@ -424,7 +424,8 @@ function m.parse_filter_string(filter_string)
Aux.log('Invalid filter: '..error)
return
elseif filter.name and strlen(filter.name) > 63 then
Aux.log('Invalid filter: The name may not longer than 63 characters')
return
else
tinsert(filters, filter)
end