• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

How to stop exhausts custom

Yaboihunna

New Member
Joined
Mar 27, 2019
Messages
139
Reaction score
3
I want to be able to heal with exura vita at the same time as healing with a mana rune but there is a delay when you use rune
 
Solution
Edited the script should now work good and exact the same exhaust as Potions, Try it.
LUA:
local t = {
    -- [vocation, promotedvocation] = {mini = minimum heal, maxi = maximum heal}
    [{1, 2, 5, 6}] = {mp={1050,1150},hp={100,150}},
    [{3, 7}] = {mp={300,500}, hp={800,950}},
    [{4, 8}] = {mp={150,300}, hp={2100,2450}},
    [{9, 10}] = {mp={1200,1300},hp={200,250}},
    [{11}] = {mp={350,650}, hp={900,1050}},
    [{12}] = {mp={250,350}, hp={2200,2450}}
}

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if not isPlayer(itemEx.uid) then
        return false...
If you are using the script I gave earlier without changes, then you'll find this line inside the script
LUA:
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000)
Try lowering it and see if it gets fixed.
 
The rune isnt the problem it's I can't cast exura while using the rune it's a delay in between i want it to function like a great spirit potion and exura san on a apaladin maybe change the I'd to a potion instead of a rune? That might work I would rather use my rune tho
 
Edited the script should now work good and exact the same exhaust as Potions, Try it.
LUA:
local t = {
    -- [vocation, promotedvocation] = {mini = minimum heal, maxi = maximum heal}
    [{1, 2, 5, 6}] = {mp={1050,1150},hp={100,150}},
    [{3, 7}] = {mp={300,500}, hp={800,950}},
    [{4, 8}] = {mp={150,300}, hp={2100,2450}},
    [{9, 10}] = {mp={1200,1300},hp={200,250}},
    [{11}] = {mp={350,650}, hp={900,1050}},
    [{12}] = {mp={250,350}, hp={2200,2450}}
}

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if not isPlayer(itemEx.uid) then
        return false
    elseif hasCondition(cid, CONDITION_EXHAUST, exhaust) then
        return doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
    end

    local p = getPlayerVocation(cid)
    for k, v in pairs(t) do
        if isInArray(k, p) then
            doAddCondition(cid, exhaust)
            if v.mp then
                doCreatureAddMana(cid, math.random(v.mp[1], v.mp[2]))
            end
            if v.hp then
                doCreatureAddHealth(cid, math.random(v.hp[1], v.hp[2]))
            end
            doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
            return true
        end
    end

end
 
Solution
Back
Top