コード例 #1
0
        private static void Events_MarketSellEvent(object sender, EliteAPI.Events.MarketSellInfo e)
        {
            var tradeSession = currentSessions.StartedTrading(e.Timestamp, EventReasons.SoldGoods);

            if (e.BlackMarket)
            {
                Console.WriteLine("Sold some stole goods lol");
            }
            if (e.StolenGoods)
            {
                Console.WriteLine("Sold some stole goods lol");
            }
            tradeSession.UpdatedTrade(e.Timestamp, e.MarketId, "Sell", e.TypeLocalised, e.Count, e.SellPrice);
        }
コード例 #2
0
 private static void Events_MarketSellEvent(object sender, EliteAPI.Events.MarketSellInfo eventArg)
 {
     EliteAPI.Logger.Log("MarketSell event has been triggered", eventArg);
 }