SIMPLE Aol script.
Btw im a new scripter.
Just edit the "XXX" to the ID of aol.
Comment
Btw im a new scripter.
Just edit the "XXX" to the ID of aol.
Code:
function onSay(cid, words, param)
local aol = XXX --ID OF AOL
if doPlayerRemoveMoney(cid, 40000) == true then
doPlayerPopupFYI(cid, "You have bought a aol for 4cc")
doPlayerAddItem(cid, aol, 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
else
doPlayerSendCancel(cid, "Sorry, You need 4cc to buy a aol.")
end
return true
end
Comment
Last edited: