Trying make a macro that will greed roll and then confirm the roll. Currently i'm using Jamba's Opt out of loot function, but not rolling on loot cuts out how much I make when its only 1 of my toons and a pug rolling (i'm a 4 boxer). Yes I realize that I could just manually click the button but that takes time and i'd like to speed things up a bit.

http://www.wowwiki.com/World_of_Warcraft_API

Following scripts from above link under Loot Functions you'll find

ConfirmLootRoll(rollId[, roll]) - Confirm a loot roll (NEW IN 1300)
Arguments
(required)
Rollid
Number - The number increases with every roll you have in a party. Till how high it counts is currently unknown.
(Optional)
roll
Number/nil - Is the roll a pass on the item or a real roll? send nil to pass on the item, send 1 to roll. Note: Blizzard uses 0 to pass, 1 to Need an item, 2 to Greed an item, and 3 to Disenchant an item.

RollOnLoot(rollId[, roll]) - Roll or pass on a loot event started by the game engine.
RollID
Number - As passed by the event. (The number increases with every roll you have in a party)
roll
Number - Type of roll: (also passed by the event) 1 : Need roll 2 : Greed roll 3 : Disenchant roll

So why doesn't the following work?

/script RollOnLoot(1[, 2])
/script ConfirmLootRoll(1[, 2])