public static void HandleExchangeBuy(ExchangeBuyMessage message, WorldClient client) { if (client.Character.IsInExchange(ExchangeTypeEnum.NPC_SHOP)) { client.Character.GetDialog <NpcShopExchange>().Buy((ushort)message.objectToBuyId, message.quantity); } }
public static void HandleExchangeBuy(ExchangeBuyMessage message, WorldClient client) { if (client.Character.NpcShopExchange != null) { client.Character.NpcShopExchange.Buy((ushort)message.objectToBuyId, message.quantity); } }
public static void HandleExchangeBuyMessage(WorldClient client, ExchangeBuyMessage message) { IShopDialog shopDialog = client.Character.Dialog as IShopDialog; if (shopDialog != null) { shopDialog.BuyItem((int)message.objectToBuyId, (uint)message.quantity); } }
public static void HandleExchangeBuyMessage(WorldClient client, ExchangeBuyMessage message) { var dialog = client.Character.Dialog as IShopDialog; if (dialog != null) { dialog.BuyItem(message.objectToBuyId, message.quantity); } }