i believe it's better to use this for "auto endow" when equipped an item...'
trunk/doc/item_bonus.txt
bonus bAtkEle,n; Gives the player's attacks element n
n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison, 6=Holy, 7=Dark, 8=Spirit, 9=Undead
trunk/db/re/item_db.txt
itemID................,{ bonus bAtkEle,<value>; },{},{}