**/data/talkactions/talkactions.xml
**/data/talkactions/scripts/aol.lua
Rep++ ?
Code:
<talkaction words="!aol" event="script" value="aol.lua" />
Code:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == TRUE then
doPlayerAddItem(cid, 2173, 1)
doSendMagicEffect(getPlayerPosition(cid), 31)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'There You Go!')
else
doPlayerSendCancel(cid, "You need 1 crystal coin to buy a Amulet Of Loss!")
end
return TRUE
end
Rep++ ?
Last edited: