private void btnMoveItemsTo_Click(object sender, EventArgs e) { InnerSpace.Echo("ISXEVEWrapperTest (MoveItemsTo): Begin"); using (new FrameLock(true)) { Extension Ext = new Extension(); // move all the items from your ship to the hangar /* List<Item> itemList; List<long> itemIdxList; itemList = Ext.Me.Ship.GetCargo(); InnerSpace.Echo("You have " + itemList.Count + " items in your ship's cargo bay."); itemIdxList = new List<long>(itemList.Count); foreach (Item item in itemList) { itemIdxList.Add(item.ID); } InnerSpace.Echo("Moving " + itemIdxList.Count + " items in your hangar."); Ext.EVE().MoveItemsTo(itemIdxList, "MyStationHangar", "Hangar"); */ } InnerSpace.Echo("ISXEVEWrapperTest (MoveItemsTo): End"); }
private static void SysScan() { Frame.Wait(true); var ext = new EVE.ISXEVE.Extension(); var eve = ext.EVE(); var me = ext.Me; var sysScanner = me.Ship.Scanners.System; var sigs = sysScanner.GetSignatures(); foreach (var sig in sigs) { InnerSpace.Echo(sig.Name + " " + sig.IsWarpable + " " + sig.Difficulty + " " + sig.Deviation); } var anoms = sysScanner.GetAnomalies(); foreach (var anom in anoms) { InnerSpace.Echo(anom.Name); } eve.Execute(ExecuteCommand.CmdToggleMap); Frame.Unlock(); }
/* Pulse method that will execute on our OnFrame, which in turn executes on the lavishscript OnFrame */ private static void ISXEVE_OnFrame(object sender, LSEventArgs e) { //using (new FrameLock(true)) //{ // var ext = new Extension(); // var eve = ext.EVE(); // var me = ext.Me; // TestGetLocalGridEntities(me, eve, logger); // //CombatHelper.ActivateModules(me,eve, new EngageRules() {UseRepairer = false}); //} using (new FrameLock(true)) { var ext = new Extension(); var eve = ext.EVE(); var me = ext.Me; InnerSpace.Echo("Your character's name is " + me.Name); InnerSpace.Echo("Your active ship has " + me.Ship.HighSlots + " high slots."); InnerSpace.Echo("Your active ship has " + me.Ship.MediumSlots + " medium slots."); InnerSpace.Echo("Your active ship has " + me.Ship.LowSlots + " low slots."); TestGetLocalGridEntities(me, eve, _logger); LavishScript.Events.DetachEventTarget("ISXEVE_OnFrame", ISXEVE_OnFrame); } }
private void btnTargeting_Click(object sender, EventArgs e) { InnerSpace.Echo("ISXEVEWrapperTest (GetTargeting): Begin"); using (new FrameLock(true)) { Extension Ext = new Extension(); List<Entity> getTargets = Ext.Me.GetTargets(); List<Entity> getTargeting = Ext.Me.GetTargeting(); InnerSpace.Echo("You have currently " + getTargets.Count + " targets."); InnerSpace.Echo("You are currently targeting " + getTargeting.Count + " targets."); } InnerSpace.Echo("ISXEVEWrapperTest (GetTargeting): End"); }
/// <summary> /// Does the this on frame. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="LSEventArgs" /> instance containing the event data.</param> private void DoThisOnFrame(object sender, LSEventArgs e) { if (FrameActionScheduler.TryExecute()) { try { var ext = new Extension(); MyEve = ext.EVE(); MyMe = ext.Me; DoWork(MyMe, MyEve); } catch (Exception exp) { InnerSpace.Echo(exp.Message); } } }
private void btn_MyOrderTest_Click(object sender, EventArgs e) { Extension Ext; InnerSpace.Echo("ISXEVEWrapperTest (MyOrder): Begin"); using (new FrameLock(true)) { Ext = new Extension(); Ext.Me.UpdateMyOrders(); } System.Threading.Thread.Sleep(1000); using (new FrameLock(true)) { List<MyOrder> orderList; orderList = Ext.Me.GetMyOrders(); InnerSpace.Echo("You have " + orderList.Count + " open orders."); foreach (MyOrder order in orderList) { InnerSpace.Echo(" - " + order.Name + ": "+ order.QuantityRemaining + " @ " + order.Price + " ISK."); } } InnerSpace.Echo("ISXEVEWrapperTest (MyOrder): End"); }
private void btn_MarketOrderTest_Click(object sender, EventArgs e) { Extension Ext = new Extension(); InnerSpace.Echo("ISXEVEWrapperTest (MarketOrder): Begin"); Ext.EVE().FetchMarketOrders(3347); System.Threading.Thread.Sleep(1000); using (new FrameLock(true)) { List<MarketOrder> orderList; orderList = Ext.EVE().GetMarketOrders(3347); InnerSpace.Echo("Found " + orderList.Count + " orders for the Amarr Titan skillbook."); foreach (MarketOrder order in orderList) { InnerSpace.Echo(" - " + order.Name + ": " + order.QuantityRemaining + " @ " + order.Price + " ISK."); } } InnerSpace.Echo("ISXEVEWrapperTest (MarketOrder): End"); }