local c = {
money = 100, -- cost of AOL.
aolid = 1111, -- ITEMID of AOL.
count = 1 -- How many AOL's you get.
}
function onSay(cid,words,param)
if doPlayerRemoveMoney(cid,c.money) then
doPlayerSendTextMessage(cid,20,'You have bought an AOL.')
doSendMagicEffect(getThingPos(cid),12)
doPlayerGiveItem(cid,c.aolid,c.amount)
else
doPlayerSendTextMessage(cid,20,'You need '..c.money..' to buy an AOL.')
doSendMagicEffect(getThingPos(cid),2)
end
return true
end