• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[REQUEST] !aol script

Maxens

Member
Joined
Apr 9, 2009
Messages
479
Reaction score
7
Location
Germany
Hey

like the title says im requesting a full wokrin !aol script...i tried all scripts i found here on forum but none script worked...

i know its the wrong section, but the requests is noone reading^^

i give rep++ thanks
 
aol.lua
Code:
function onSay(cid, words, param)
if getPlayerMoney(cid) >= AOLPRICE then
doPlayerRemoveMoney(cid,AOLPRICE)
doPlayerAddItem(cid,2173,1)
doSendMagicEffect(getPlayerPosition(cid),12)
doPlayerSendTextMessage(cid,22,"CONFIRM SUCCES MESSAGE")
else
doPlayerSendCancel(cid,"NOT ENOUGH MONEY MESSAGE")
doSendMagicEffect(getPlayerPosition(cid),2)
end
return TRUE
end

talkactions.xml
Code:
<talkaction words="!aol" case-sensitive="0" event="script" value="aol.lua"/>
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
return doPlayerRemoveMoney(cid, 10000) and doPlayerAddItem(cid, 2173, 1) or doPlayerSendCancel(cid, "You do not have enough money")
end
 
here add this in !aol.lua


Code:
function onSay(cid, words, param) 
        if doPlayerRemoveMoney(cid, 10000) == TRUE then 
doPlayerAddItem(cid, 2173, 1) 
                        doSendMagicEffect(getPlayerPosition(cid), 49) 
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You have bought an amulet of loss!!')  
else 
            doPlayerSendCancel(cid, "You need 1 crystal coin to buy a Amulet Of Loss!") 
                end 
return TRUE 
                end

add this in talkactions by player gm wherever u want it

Code:
<talkaction words="!aol" event="script" value="!aol.lua"/>

Np this gonna work ;)
 
Back
Top