• 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!

Need !spells command

Luciano

Member
Joined
Feb 18, 2010
Messages
998
Reaction score
24
I need !spells command, that show player a list with the spells.
I had one, that got the spells FROM the spells.xml, i didnt need to write anything.
Rep++

Also needing a simple !buyaol script. 10k one aol :) ty

edit 2:
!commands command too plz ^^
 
Last edited:
Code:
<talkaction words="!buybless;/buybless;!bless;/bless" script="bless.lua" />
Use this, instead of the one above, better coded.
bless.lua
Lua:
function onSay(cid, words, param)
local fail = 0
 
    if getPlayerLevel(cid) < 31 then
        cost = 2000
    else
        cost = ((getPlayerLevel(cid) - 30) * 200) + 2000
    end
 
    if cost > 20000 then
        cost = 20000
    end
 
    for i = 1, 5 do
        if getPlayerBlessing(cid, i) then
            fail = fail + 1
        else
            if doPlayerRemoveMoney(cid, cost) == TRUE then
                doPlayerAddBlessing(cid, i)
                if i == 5 and not(fail == 5) then
                    doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
                end
            else
                doPlayerSendCancel(cid, "You do not have enough money to buy all the blessings!")
                break
            end
        end
    end
    if fail == 5 then
        doPlayerSendCancel(cid, "You already have all the blessings!")
    end
return TRUE
end

Code:
<talkaction words="!buyaol" event="script" value="buyaol.lua"/>
buyaol.lua
Lua:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid,50000) then
    doPlayerAddItem(cid,2173,1)
    doSendMagicEffect(getPlayerPosition(cid),12)
    doPlayerSendTextMessage(cid,22,"You\'ve bought an Aol!")
else
    doPlayerSendCancel(cid,"You don\'t have enough money.")
    doSendMagicEffect(getPlayerPosition(cid),2)
end
return TRUE
end
found aol
 
Back
Top