----------
-- Aveo --
----------
local cost = 6000
local rune = 2268
local name = getItemNameById(rune)
function onSay(cid, item, fromPosition, itemEx, toPosition, param)
if doPlayerRemoveMoney(cid, cost) == TRUE then
local container = doPlayerAddItem(cid, 2003, 1)
doPlayerPopupFYI(cid, "Successfull! buyed 1x backpack of "..name.."")
for i=1,20 do
doAddContainerItem(container, rune, 3)
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You dont have money to buy this, you need "..cost.." gps.")
end
return FALSE
end