Forum

> > Trash > New Problm
Forums overviewTrash overviewLog in to reply

English New Problm

1 reply
To the start Previous 1 Next To the start

closed moved New Problm

ubmasterr
BANNED Off Offline

Quote
Hi guys i have new problem.

Code:
1
2
3
4
5
6
7
8
9
10
addhook("attack", "BLOCKattack")
function BLOCKattack(id)
	for _, b in ipairs(BLOCKS) do
		local x, y = player(id, 'x'), player(id, 'y')
		local dist = math.sqrt((b.x-x)^2+(b.y-y)^2)
		if dist <= 32 then
		Block:damage(id, math.ceil(20*((PLAYERS[id].tmp.ppower)/math.random(60, 140))))
		end
	end	
end

I havent lua error but not working. why?/where are problem?.

thx all guys.

Admin/mod comment

Trashed because of bad title (and you know that it's bad, you wrote problm instead of problem to use this bad title anyway) /DC

old Re: New Problm

Dimas541
User Off Offline

Quote
user ubmasterr has written
Hi guys i have new problem.

Code:
1
2
3
4
5
6
7
8
9
10
addhook("attack", "BLOCKattack")
function BLOCKattack(id)
	for _, b in ipairs(BLOCKS) do
		local x, y = player(id, 'x'), player(id, 'y')
		local dist = math.sqrt((b.x-x)^2+(b.y-y)^2)
		if dist <= 32 then
		Block:damage(id, math.ceil(20*((PLAYERS[id].tmp.ppower)/math.random(60, 140))))
		end
	end	
end

I havent lua error but not working. why?/where are problem?.

thx all guys.


tibia code block system -.-
To the start Previous 1 Next To the start
Log in to replyTrash overviewForums overview