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

TFS 1.X+ Diamond Arrow (Formula Attack)

Talis Foesten

New Member
Joined
Nov 26, 2018
Messages
3
Reaction score
0
Location
Porto Alegre/RS - Brazil
I am not finding the attack formula for this arrow. I've looked at everything.

The atacks are being much lower than the other arrows, I need to adjust the formula.

LUA:
local area = createCombatArea({
     {0, 1, 1, 1, 0},
     {1, 1, 1, 1, 1},
     {1, 1, 3, 1, 1},
    {1, 1, 1, 1, 1},
    {0, 1, 1, 1, 0},
})

local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DIAMONDARROW)
combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)
combat:setFormula(COMBAT_FORMULA_SKILL, 0, 0, 1, 0)
combat:setArea(area)

function onUseWeapon(player, variant)
     return combat:execute(player, variant)
end
 
here you go:


and next time, provide all the information Rules for the Support board (https://otland.net/threads/rules-for-the-support-board.217087/)
 
Back
Top