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

Someone can fix this scripts?

Kaorus

Unleash Dreams Staff
Joined
May 18, 2008
Messages
1,111
Reaction score
41
The first script

Is a bless ticket

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if getPlayerLevel(cid) >= 25 then
        local ppos = getCreaturePosition(cid)
        if isPremium(cid) == TRUE then
            if getPlayerBlessing(cid,0) then
                doCreatureSay(cid, "You gained all the blessing of gods", TALKTYPE_ORANGE_1)
                for x = 1, 5 do
                    doPlayerAddBlessing(cid, x)
                end
                doSendMagicEffect(ppos, 49)
                doRemoveItem(item.uid)
            else
                doCreatureSay(cid, "You already got all the bless", TALKTYPE_ORANGE_1)
            end
        else
            doPlayerSendCancel(cid, 'You are not Premium.')
        end
    else
         doPlayerSendCancel(cid, 'You must be level 25 or above to use this book.')
    end    
end

Player dont can gain the bless :S

And, someone can create a "Booster Exp"?

ID: 2133

With this features:
-Only premium account can use this amulet
-Only 25
-Send a animation "Booster On!"
 
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) >= 25 then
        if isPremium(cid) == TRUE then
            if getPlayerBlessings(cid, 1) then
                doCreatureSay(cid, "You gained all the blessing of gods", TALKTYPE_ORANGE_1)
                for i = 1, 5 do
                    doPlayerAddBlessing(cid, i)
                end
				local ppos = getCreaturePosition(cid)
                doSendMagicEffect(ppos, 49)
                doRemoveItem(item.uid)
            else
                doCreatureSay(cid, "You already got all the bless", TALKTYPE_ORANGE_1)
            end
        else
            doPlayerSendCancel(cid, 'You are not Premium.')
        end
    else
         doPlayerSendCancel(cid, 'You must be level 25 or above to use this book.')
    end    
end

try this?
 
im not an scripter but replace from
if player have all bless
doCreatureSay(cid, "You already got all the bless", TALKTYPE_ORANGE_1)
end
if player not premium
doPlayerSendCancel(cid, 'You are not Premium.')
endIF

end

IF IF IF IF IF? :D
 
Try this:

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) >= 25 then
        if isPremium(cid) == TRUE then
            if getPlayerBlessings(cid, 1) then
                doCreatureSay(cid, "You gained all the blessing of gods", TALKTYPE_ORANGE_1)
                for i = 1, 5 do
                    doPlayerAddBlessing(cid, [i])
                local ppos = getCreaturePosition(cid)
                doSendMagicEffect(ppos, 49)
                doRemoveItem(item.uid)
            end
            else
                doCreatureSay(cid, "You already got all the bless", TALKTYPE_ORANGE_1)
            end
        else
            doPlayerSendCancel(cid, 'You are not Premium.')
        end
    else
         doPlayerSendCancel(cid, 'You must be level 25 or above to use this book.')
    end    
end
 
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) >= 25 then
        if isPremium(cid) == TRUE then
            local c = 0
            for i = 1, 5 do
                if not getPlayerBlessing(cid, i) then
                    c = c + 1
                end
            end
            if c == 5 then
                doCreatureSay(cid, "You gained all the blessing of gods", TALKTYPE_ORANGE_1)
                for x = 1, 5 do
                    doPlayerAddBlessing(cid, x)
                end
                doSendMagicEffect(getCreaturePosition(cid), 49)
                doRemoveItem(item.uid)
            else
                doCreatureSay(cid, "You already got any bless", TALKTYPE_ORANGE_1)
            end
        else
            doPlayerSendCancel(cid, 'You are not Premium.')
        end
    else
        doPlayerSendCancel(cid, 'You must be level 25 or above to use this book.')
    end    
    return TRUE
end
 
Back
Top