That probably because that looks more like a db request than a script request. And your not very specific. You need to give details on exactly what you want to do. You can have items call scripts, but I can't tell from your post.
Peopleperson49
Script:
function script CustomEffect {
bonus bMdef,5; //Mdef + 5
bonus bFlee,30; //Flee + 30
skill 26,1; //Teleport Skill
bonus bUnbreakableGarment,0; //Garment cannot be broken.
bonus2 bSubEle,0,45; //Reduces Neutral Property damage by 45%.
bonus2 bSubEle,1,7; //Reduces Water Property damage by 7%.
bonus2 bSubEle,2,7; //Reduces Earth Property damage by 7%.
bonus2 bSubEle,3,7; //Reduces Fire Property damage by 7%.
bonus2 bSubEle,4,7; //Reduces Wind Property damage by 7%.
bonus2 bSubEle,5,7; //Reduces Poison Property damage by 7%.
bonus2 bSubEle,6,7; //Reduces Holy Property damage by 7%.
bonus2 bSubEle,7,7; //Reduces Dark Property damage by 7%.
bonus2 bSubEle,8,7; //Reduces Spirit Property damage by 7%.
bonus2 bSubEle,9,7; //Reduces Undead Property damage by 7%.
if(getrefine()>=7) { bonus2 bSubEle,1,1 } //Reduces Water Property damage by 1%.
if(getrefine()>=8) { bonus2 bSubEle,1,1 } //Reduces Water Property damage by 1%.
if(getrefine()>=9) { bonus2 bSubEle,1,1 } //Reduces Water Property damage by 1%.
if(getrefine()>=10) { bonus2 bSubEle,0,5; } //Reduces Neutral Property damage by 5%.
}
Item_db2:
XXXX,Garment,Garment,5,1000,,200,,4,,0,0xFFFFFFFF,7,2,4,,0,1,0,{ callfunc "CustomEffect"; },{},{}