Ok, so I looked into the API, and got
<blockquote>this.combatant.Inventory.GetContent(false, true, false, false,1,true)[1].Use(this.combatant,player,true)</blockquote>
typeID is if I only want to get a certain type of item from the inventory. I used "-1" to get all.
Still looking into the skill part.
Not sure what "checkParent" is for though.