You are not being very clear about which problem you are encountering specifically. Are you receiving an error? Or is 'say2' simply not being executed?
Based on what little information was provided, I would suggest the following:
+ Include a setshape(1, 32, 32); inside of your onCreated() portion.
+ Do not mix Gscript1 with GScript2. The correct method to write your say2, would be:
PHP Code:
say2("say \"/buy hat1\" for this hat");
+ Try to change
function onactiondoublemouse () { to
function onActionDoubleMouse() {