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

Lua TFS 1.0 - doAreaCombatHealth Direction Bug ?

eduardbean

Member
Joined
Nov 26, 2010
Messages
129
Solutions
2
Reaction score
16
I Make this in my script​

Code:
local area = createCombatArea{
    {1, 1, 1},
    {1, 1, 1},
    {1, 3, 1}
}

function onSay(player, words, param)

    local lvl = player:getLevel()
    local dmgMax = ((lvl * 5))
    local dmgMin = ((dmgMax*0.90))

    local position = player:getPosition()
    position:getNextPosition(player:getDirection())

    doAreaCombatHealth(player.uid, COMBAT_PHYSICALDAMAGE, position, area, -dmgMin, -dmgMax, CONST_ME_BLOCKHIT)

end
But This dont respect "3" ( 3 = Player in area ), how i can solve this and make a talkaction like a spell ?​

U1erVAF.png


How i can solve this problem ?​
 
Back
Top