1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("hit","kill") function kill(id,source,weapon,hpdmg,apdmg) local b = tile(x,y,"property") if b== obstacle then return 1 end end
addhook("hit","kill") function kill(id,source,weapon,hpdmg,apdmg) local b = tile(x,y,"property") if b== obstacle then return 1 end end
TileMaterial = { [0] = "Soundless", [1] = "Wall", [2] = "Obstacle", [3] = "Wall (No Shadow)", [4] = "Obstacle (No Shadow)", [10] = "Dirt", [11] = "Snow", [12] = "Step", [13] = "Tile", [14] = "Water", [15] = "Metal", [16] = "Wood", [50] = "Deadly - Normal", [51] = "Deadly - Explosion", [52] = "Deadly - Toxic", [53] = "Deadly - Abyss" } addhook("movetile","breath") function breath(id,x,y) local z = tile(x,y,"property") if z==14 then timer(1000,"parse","slap "..id) end end