These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
iveeCore: The PHP engine for industrial activities and CREST library
//initialize iveeCore. Adapt path as required.require_once('/path/to/iveeCore/iveeCoreInit.php');use iveeCore\Type, iveeCore\IndustryModifier;//show the object for 'Damage Control I'print_r(Type::getById(2046));//it's also possible to instantiate type objects by name$type = Type::getByName('Damage Control I');//Now lets looks at industry activities.//First we need to get an IndustryModifier object, which aggregates all the things//like system indices, available assembly lines, character skills & implants, as an//industry context. Lots of configuration and customization options there.$industryContext = IndustryModifier::getBySystemIdForAllNpcStations(30000180); //Osmon//manufacture 5 units of 'Damage Control I' with ME 10 and TE 20$manuData = $type->getBlueprint()->manufacture($industryContext, 5, 10, 20);//show the ManufactureProcessData objectprint_r($manuData);//Lets create another IndustryModifier object for Jita, so we can calculate costs and //profits there$marketContext = IndustryModifier::getBySystemIdForAllNpcStations(30000142);//set default market station to Jita 4-4 CNAP$marketContext->setPreferredMarketStation(60003760);//print materials, cost and profits for this process$manuData->printData($marketContext);//get the data for making Damage Control I blueprint copy, inventing from it with a//decryptor and building from the resulting T2 BPC, recursively building the necessary//components$processData = Type::getByName('Damage Control II Blueprint')->copyInventManufacture($industryContext, 34203, 1);//get the raw profit for running an Unrefined Hyperflurite Reaction for 30 days,//taking into account the refining and material feedback steps, and refinery//efficiency and tax dependent on character skill and standing, then selling in Jita$reaction = Type::getByName('Unrefined Hyperflurite Reaction');$reactionProcessData = $reaction->react($industryContext, 24 * 30, true, true);echo PHP_EOL . 'Reaction Profit: ' . $reactionProcessData->getProfit($marketContext) . PHP_EOL;
iveeCore 3.0: The PHP engine for industrial activities and CREST library
Woo! CSM XI!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
I dont know if this is important or not, but i have chickens.....