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

bless + invisible/storage aol SCRIPT REQUEST OR HELP

CipsoftStinks

www.relicaria.com
Joined
Oct 1, 2016
Messages
947
Solutions
3
Reaction score
137
Location
Argentina
Hello im using otx 2 based in tfs 0.4 - 0.3.7

the twist of fate bless is not working
anyone here can share to me and script with 5 bless + an something like invisible aol? that protect the items loss pls

IM USING THIS MOD FOR GET BLESS AND CHECK

Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="bless-system" version="1.0" author="slawkens" contact="[email protected]" enabled="yes">
        <description><![CDATA[
                This modification adds two new commands: !bless and !blesscheck.
                Also, action script is included (it uses unique id 32001 - can be used with items).
        ]]></description>
        <config name="bless-system-config"><![CDATA[
                blessSystem = {}
                blessSystem.config = {
                        baseCost = 2000,
                        levelCost = 200,
                        startLevel = 8,
                        endLevel = 120
                }
                blessSystem.needPremium = getBooleanFromString(getConfigValue('blessingsOnlyPremium'))
        ]]></config>
        <lib name="bless-system-lib"><![CDATA[
                domodlib('bless-system-config')
                function blessSystem.buyAllBlessings(cid)
                        local price = blessSystem.config.baseCost
                        if(getPlayerLevel(cid) > blessSystem.config.startLevel) then
                                price = (price + ((math.min(blessSystem.config.endLevel, getPlayerLevel(cid)) - blessSystem.config.startLevel) * blessSystem.config.levelCost))
                        end
                        price = price * 5 * 1.2
                        if(blessSystem.needPremium and not isPremium(cid)) then
                                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need a premium account to use blessings.")
                                return false
                        end
                        for i = 1, 5 do
                                if(getPlayerBlessing(cid, i)) then
                                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You already have all blessings.")
                                        return false
                                end
                        end
                        if(not doPlayerRemoveMoney(cid, price)) then
                                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have enough money for blessings. (You need " .. price .. " gp's)")
                                return false
                        end
                        for i = 1, 5 do
                                doPlayerAddBlessing(cid, i)
                        end
                        doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have been blessed by the gods!")
                        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_BIGCLOUDS)
                        return true
                end
        ]]></lib>
        <talkaction words="!blesscheck;!blesstest" event="script"><![CDATA[
                domodlib('bless-system-config')
                local blessNames = {"Wisdom of solitude", "Embrace of tibia", "Fire of the suns", "Spiritual Shielding", "Spark of the phoenix"}
                function onSay(cid, words, param)
                        local str = ""
                        local b = 0
                        for i = 1, 5 do
                                if(getPlayerBlessing(cid, i)) then
                                        if(b ~= 0) then
                                                str = str .. ", "
                                        end
                                        str = str .. blessNames[i]
                                        b = b + 1
                                end
                        end
                        if(b > 0) then
                                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have " .. str .. " blessing" .. (b > 0 and "s" or "") .. ". (Total: " .. b .. ")")
                        else
                                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have any blessings.")
                        end
                        return TRUE
                end
        ]]></talkaction>
        <talkaction words="!bless" event="script"><![CDATA[
                domodlib('bless-system-config')
                domodlib('bless-system-lib')
                function onSay(cid, words, param, channel)
                        blessSystem.buyAllBlessings(cid)
                        return true
                end
        ]]></talkaction>
        <action uniqueid="32001" event="script"><![CDATA[
                domodlib('bless-system-config')
                domodlib('bless-system-lib')
                function onUse(cid, item, fromPosition, itemEx, toPosition)
                        blessSystem.buyAllBlessings(cid)
                        return true
                end
        ]]></action>
</mod>
 
Back
Top