local config = {
xpToGive = 20000000,
itemToRemove = 1234,
itemCount = 1
}
function onSay(cid, words, param)
if doPlayerRemoveItem(cid, config.itemToRemove, config.itemCount) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bough "..config.xpToGive.." experience points.")
doPlayerAddExp(cid, config.xpToGive)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_SMALL, "You need "..config.itemCount.." "..getItemNameById(config.itemToRemove)..".")
end
return FALSE
end