OK did a quick search for clams on MMOwned and I was surprised to see nothing o_0 So I thought I would make a simple little post.
So first off you need the script, This is very very simple really. just make a macro and slap this in it.
Code:
/script l=5;m=0;f=string.find;for b=0,4,1 do for s=1,GetContainerNumSlots(b),1 do n=GetContainerItemLink(b,s);if n and f(n,"Clam")then if f(n,"Clam ")or f(n,"Clams")then b=b else l=b;m=s;end;end;end;end;if l<5 and m>0 then UseContainerItem(l,m)end
Now whenever you click this macro it will search your bags for a clam and open it, But wont loot it (yet)
OK so now go to your interface options and click "auto loot" and set the loot button the CTRL. So now when you click the macro it will loot the clam
Now to tell glider to use the macro.
Open up your Keys.xml file (go to glider, click the keys tab and then press save. This will make the keys.xml) Now in keys.xml find this line
Code:
<Key KeyName="Common.PreCombat" BarState="Indifferent" ShiftState="None" Char="Undefined" />
Now change it to this
Code:
<Key KeyName="Common.PreCombat" BarState="Rest" ShiftState="None" Char="-" />
Now put the macro on your rest bar at the - key and go to Glider and reload your keys and Bingo, Clam opener
If your wondering why i put it on precombat its because if you put it on postloot it tends not to work all the time (lag ect)
Posted on Glider forums, slightly adapted by Marlo