• 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+ Wall Runes (createCombatArea / AREADIAGONAL_WALLFIELD)

Tahm Kench

Well-Known Member
Joined
Apr 21, 2016
Messages
100
Reaction score
56
Hey, I've an issue with energy, fire, poison wall runes and unable to fix it. (TFS 1.3)

Nothing happends, when I shot the rune diagonal. I think there is a bug with createCombatArea or AREADIAGONAL_WALLFIELD.

Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGYBALL)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_ENERGYFIELD_PVP)
combat:setArea(createCombatArea(AREA_WALLFIELD, AREADIAGONAL_WALLFIELD))

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

Tahm Kench

Well-Known Member
Joined
Apr 21, 2016
Messages
100
Reaction score
56
Lua:
combat:setArea(createCombatArea(AREA_WALLFIELD))

Lua:
combat:setArea(createCombatArea(AREADIAGONAL_WALLFIELD))

they work like this but not with two arguments. Can't figure out how to fix this.

Can someone tell me where this function is located in the source code?
 
Last edited:
Top