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

Solved Paladins use mana rune and the auto-attack stops

Lightonia

Lightonia.servegame.com
Joined
Jun 4, 2007
Messages
492
Reaction score
9
Lua:
local t = {
    -- [vocation, promotedvocation] = {mini = minimum heal, maxi = maximum heal}
    [{1, 2, 5, 6}] = {mp={500,600}},
    [{3, 7}] = {mp={400,500}, hp={100,150}},
    [{4, 8}] = {mp={150,200}},
    [{9, 10}] = {mp={1400,1500}},
    [{11}] = {mp={1000,1100}, hp={500,700}},
    [{12}] = {mp={350,550}}
}
 
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, EXHAUST_HEALING)
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if not isPlayer(itemEx.uid) then
        return false
    elseif hasCondition(cid, CONDITION_EXHAUST, EXHAUST_HEALING) 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
 
Add swing to distance weapons in weapons.xml.
XML:
<distance id="7368" level="80" swing="true" event="function" value="default"/> <!-- Assassin Star -->
 
hmm, not for me


<distance id="21690" level="8" unproperly="1" swing="true"> <!-- Triple Bolt Crossbow -->
<vocation name="Paladin" />
<vocation name="Royal Paladin" showInDescription="0" />
</distance>

<distance id="18436" unproperly="1" level="70" swing="true" /> <!-- Drill Bolt -->

and still can't attack after potion
Post automatically merged:

any idea?
 
hmm, not for me


<distance id="21690" level="8" unproperly="1" swing="true"> <!-- Triple Bolt Crossbow -->
<vocation name="Paladin" />
<vocation name="Royal Paladin" showInDescription="0" />
</distance>

<distance id="18436" unproperly="1" level="70" swing="true" /> <!-- Drill Bolt -->

and still can't attack after potion
Post automatically merged:

any idea?
Did you set classicAttackSpeed to true in config.lua?
 
i don't get it in config.lua
i add it now and test
Post automatically merged:

not working, potion spam and can't attack by distance weapon
 
Back
Top