Just making something fast,
Lua:
local t = {
[1938] = {1,"arcane staff",2453},
[1939] = {1,"magic plate armor",2472},
}
function onUse(cid,item,fromPosition,itemEx,toPosition)
local v = t[item.uid]
if doPlayerRemoveItem(cid, 6527, v[1]) and getPlayerFreeCap(cid) >= (getItemWeightById(v[3])) then
doPlayerAddItem(cid,v[3])
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have buy a " .. v[2] .. " for "..v[1].." christmas token(s)!")
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You need atleast "..v[1].." christmas token(s) to buy "..getItemNameById(v[3]).."!")
end
return true
end