• 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 super sudden rune TFS - 1.1

nuelma123

New Member
Joined
Jun 6, 2011
Messages
66
Reaction score
1
how I can do Super sd? I have item create :

Vpez7kb.png
with id 2263

but don't work correct
This is my config:

spell.xml :
Code:
<rune group="attack" spellid="21" name="Super SD" id="2263" allowfaruse="1" charges="3" lvl="100" maglv="50" exhaustion="1000" groupcooldown="1000" needtarget="1" blocktype="solid" script="attack/super sudden death.lua" />

super sudden death.lua :

Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)

function onGetFormulaValues(player, level, maglevel)
    min = -((level / 5) + (maglevel * 4.3) + 32)
    max = -((level / 5) + (maglevel * 7.4) + 48)
    return min, max
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, var, isHotkey)
    return combat:execute(creature, var)
end

items.xml :

Code:
    <item fromid="2263" toid="2263" article="a" name="super SD">
        <attribute key="type" value="rune" />
        <attribute key="weight" value="8" />


I WANT THE ATTACK IS THAT A DOUBLE RUNA NORMAL, AND NEVER AGOTE !!

PLEASE HELP

+REP

THANKS
 
But I mean, I want the damage exceeds that of a normal rune sd,

what i need edited?
example: I want the damage is doubled that a normal rune

and what is this? in expell.xml:
Code:
spellid="21"

I don't understand this valor!!
 
Code:
min = -((level / 5) + (maglevel * 4.3) + 32)
max = -((level / 5) + (maglevel * 7.4) + 48)

This means the minimum damage is level : 5 + magiclevel x 4.3 + 32.
So lets say someones level is 100 and magiclevel 50.
100 : 5 (=20) + 50 x 4.3 (=225) + 32 = 277 as minimum damage.
If you want double damage you can make the 4.3 higher or the 32 or both (same goes for the max damage).

The spellid is for the exhaustion (and spellicon), so you can use one that is not used yet or use the 21 since the exhaustion is the same as the groupcooldown.
 
Last edited:
super sudden death.lua
Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)

function onGetFormulaValues(player, level, maglevel)
    local min = (level / 5) + (maglevel * 4.3) + 32
    local max = (level / 5) + (maglevel * 7.4) + 48
    return -min * 2, -max * 2
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, variant, isHotkey)
    return combat:execute(creature, variant)
end

items.xml
Code:
    <item id="2263" article="a" name="super sudden death rune">
        <attribute key="type" value="rune" />
        <attribute key="weight" value="70" />
        <attribute key="charges" value="3" />
    </item>

spells.xml
Code:
<rune group="attack" spellid="21" name="Super Sudden Death" id="2263" allowfaruse="1" charges="3" lvl="45" maglv="15" cooldown="2000" groupcooldown="2000" needtarget="1" blocktype="solid" script="attack/sudden death super.lua" />
 
Back
Top