3alola1
I don't have time
hello guys today i add my first thread now i will show you my script by me
Actully That is the script of
http://otland.net/f81/aol-script-gm-equardo-147927/
But I edited Something New
Amulate of loss commands
......data/talkaction/talkaction.xml
copy the code and add it in the talkaction.xml
Code:
and this is the lua add a new text in the scripts and name it aol.lua
Lua Code:
i hope u enjoy it
Actully That is the script of
http://otland.net/f81/aol-script-gm-equardo-147927/
But I edited Something New
Amulate of loss commands
......data/talkaction/talkaction.xml
copy the code and add it in the talkaction.xml
Code:
PHP:
<talkaction words="!aol" script="aol.lua" />
and this is the lua add a new text in the scripts and name it aol.lua
Lua Code:
PHP:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == TRUE then
doPlayerAddItem(cid, 2173, 1)
doSendMagicEffect(getPlayerPosition(cid), 37)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You have bought an amulet of loss!!')
else
doSendMagicEffect(getPlayerPosition(cid), 2)
doPlayerSendCancel(cid,"You dont have enogh money to use !aol!")
end
return TRUE
end
i hope u enjoy it
Last edited: