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

Karmia

https://discord.gg/FP36zQyaYG
Joined
Apr 21, 2016
Messages
105
Reaction score
39
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
OP
K

Karmia

https://discord.gg/FP36zQyaYG
Joined
Apr 21, 2016
Messages
105
Reaction score
39
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:

zbizu

Legendary OT User
Joined
Nov 22, 2010
Messages
3,161
Solutions
23
Reaction score
2,313
Location
Poland
GitHub
Zbizu
Solution
Top