Hello!
Here is an aol script i did on my own!.
~~Aol Script~~
Go to data/talkactions/scripts and create a file called aol.lua
Now go to data/talkactions/talkactions.xml
Dont forgett to Rep++ :thumbup:
Here is an aol script i did on my own!.
~~Aol Script~~
Go to data/talkactions/scripts and create a file called aol.lua
PHP:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == TRUE then
doPlayerAddItem(cid, 2173, 1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
doCreatureSay(cid, "!aol", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, 'You don\'t have enough money.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA)
end
end
Now go to data/talkactions/talkactions.xml
PHP:
<talkaction words="!aol"script="aol.lua"/>
Dont forgett to Rep++ :thumbup:
Last edited: