forked from Sokomine/yl_speak_up
added logging for succesful trades
This commit is contained in:
parent
878a5b6c23
commit
2e6ecf6006
@ -302,6 +302,11 @@ yl_speak_up.do_trade_simple = function(player, count)
|
|||||||
|
|
||||||
-- store for statistics how many times the player has executed this trade
|
-- store for statistics how many times the player has executed this trade
|
||||||
trade.trade_done = trade.trade_done + 1
|
trade.trade_done = trade.trade_done + 1
|
||||||
|
|
||||||
|
-- log the trade
|
||||||
|
yl_speak_up.log_change(pname, trade.n_id,
|
||||||
|
"bought "..tostring(trade.npc_gives)..
|
||||||
|
" for "..tostring(trade.player_gives))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user