English New Problm

1 reply
Goto Page
To the start Previous 1 Next To the start
13.09.13 05:14:41 pm
Up
ubmasterr
BANNED
Offline Off
Hi guys i have new problem.

Code:
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
13.09.13 06:09:59 pm
Up
Dimas541
User
Offline Off
user ubmasterr has written:
Hi guys i have new problem.

Code:
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 -.-
IMG:http://i49.tinypic.com/fnn9w.png
IMG:http://i45.tinypic.com/23vf2q.png
file File does not exist (14217) <-- My Tibia Edited file cs2d CarMods (20) <-- My CarMods
To the start Previous 1 Next To the start