i found a script on the forum:
function onUse(cid, item, frompos, item2, topos)
local config = {
item_id = 2565, -- here past item id which you are selling
count_of_item = 1, -- here past count of item id which you are selling
how_much_cost = 50 -- here past price, now it means 50 gold...