0 Members and 1 Guest are viewing this topic.

local c_wayfor(local j=0;j<18;j++){c_way = coord3d(67,23+j,0) if (c_way.y>29) c_way.z=-1 if (tile_x(c_way.x, c_way.y, 0).find_object(mo_tunnel)){ coorbord = label1 continue } if (!tile_x(c_way.x, c_way.y, -1).find_object(mo_way))break if ((way_x(c_way.x, c_way.y, c_way.z).get_dirs()==1) || (way_x(c_way.x, c_way.y, c_way.z).get_dirs()==2) || (way_x(c_way.x, c_way.y, c_way.z).get_dirs()==4)||(way_x(c_way.x, c_way.y, c_way.z).get_dirs()==8)){ coorbord = c_way if (c_way.y!=23 && c_way.y!=40)break }if(j==17){ this.next_step() reset_pot() }

local ribi = way_x(c_way.x, c_way.y, c_way.z).get_dirs()if (ribi == 1 || ribi == 2 || ribi == 4 || ribi == 8) {

Why don't you save way_x(c_way.x, c_way.y, c_way.z).get_dirs() in a variable?Code: [Select]local ribi = way_x(c_way.x, c_way.y, c_way.z).get_dirs()if (ribi == 1 || ribi == 2 || ribi == 4 || ribi == {

local ribi = way_x(c_way.x, c_way.y, c_way.z).get_dirs()if (ribi == 1 || ribi == 2 || ribi == 4 || ribi == {