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 ?

How i can solve this problem ?