How can I do this in my tibia will burst mode on the mouse?
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
function explosion(x, y, size, damage, id) 	for _, m in ipairs(MONSTERS) do 		if math.sqrt((m.x-player(id,'x'))^2+(m.y-player(id,'y'))^2) <= size then 			m:damage(id, math.floor(damage*math.random(60,140)/100), 251) 		end 	end 	parse("explosion " .. x .. " " .. y .. " " .. size .. " " .. damage .. " " .. id) end
1
explosion(player(id, "x"), player(id,"y"), 50, 10, id)
thanks..