PDA

View Full Version : [JX] Xin giúp đỡ addnpc random tọa độ KHÔNG TRÙNG LẬP!



yeuVLTK
25-02-18, 10:17 AM
Server Linux

Các bạn vui lòng chỉ mình cách Add 300 con Npc Random trong 1000 Tọa độ mà không bị TRÙNG với!
Bình thường mình dùng Random thì nó xuất hiện 1 bầy Npc : )))))

BladeKnight109
25-02-18, 10:57 AM
Server Linux

Các bạn vui lòng chỉ mình cách Add 300 con Npc Random trong 1000 Tọa độ mà không bị TRÙNG với!
Bình thường mình dùng Random thì nó xuất hiện 1 bầy Npc : )))))


Tọa độ gồm X và Y, random dc toa độ nào thì lưu lại vào mảng tạm, cứ mỗi lần random thì check xem tọa độ đó đã được random trước hay chưa, chưa thì add npc

hoivegame
25-02-18, 11:00 AM
Đây là code ví dụ để bạn áp dụng, còn cách chế thế nào thì tùy bạn nhé.


tb3Npc = {
{1,2},--toa x,y
{3,4},
{5,6}
}

local tbCircle = {}
local nCountNext = 0;
--bat dau lay random 2 toa ko trung nhau
while (1) do
local rate_random = random(getn(tb300Npc)); --random tb3Npc toa do
if not tbCircle[rate_random] then --ktra co trung toa do ko bang index table
if nCountNext < 2 then
tbCircle[rate_random] = 1;
nCountNext = nCountNext + 1;
end
end

if nCountNext >= 2 then --dung loop neu da du 2 toa do random ko trung
break;
end
end

--add npc da lay 2 toa do random o tren
for i, v in tbCircle do
--i: gia tri 1 duoc set mac dinh o tren
--v: index cua tb3Npc
local nX,nY = tb3Npc[v][1],tb3Npc[v][2];
AddNpc(1,2,SubWorldID2Idx(53),nX,nY)
end

yeuVLTK
25-02-18, 12:55 PM
Đây là code ví dụ để bạn áp dụng, còn cách chế thế nào thì tùy bạn nhé.


tb3Npc = {
{1,2},--toa x,y
{3,4},
{5,6}
}

local tbCircle = {}
local nCountNext = 0;
--bat dau lay random 2 toa ko trung nhau
while (1) do
local rate_random = random(getn(tb300Npc)); --random tb3Npc toa do
if not tbCircle[rate_random] then --ktra co trung toa do ko bang index table
if nCountNext < 2 then
tbCircle[rate_random] = 1;
nCountNext = nCountNext + 1;
end
end

if nCountNext >= 2 then --dung loop neu da du 2 toa do random ko trung
break;
end
end

--add npc da lay 2 toa do random o tren
for i, v in tbCircle do
--i: gia tri 1 duoc set mac dinh o tren
--v: index cua tb3Npc
local nX,nY = tb3Npc[v][1],tb3Npc[v][2];
AddNpc(1,2,SubWorldID2Idx(53),nX,nY)
end



Bạn xem giúp mình có đúng chưa
mình làm vẫn chưa được

function main()
local tbCircle = {}
local nCountNext = 0;
--bat dau lay random 2 toa ko trung nhau
while (1) do
local rate_random = random(getn(tb_coords)); --random tb3Npc toa do
if not tbCircle[rate_random] then --ktra co trung toa do ko bang index table
if nCountNext < 300 then
tbCircle[rate_random] = 1;
nCountNext = nCountNext + 1;
end
end

if nCountNext >= 300 then --dung loop neu da du 2 toa do random ko trung
break;
end
end

--add npc da lay 2 toa do random o tren
for i, v in tbCircle do
--i: gia tri 1 duoc set mac dinh o tren
--v: index cua tb3Npc
local k = random (1, getn(name))
local W, nx, ny, nn = tb_coords[v][1], tb_coords[v][2] * 32, tb_coords[v][3] * 32, name[k]
npcindex = AddNpcEx( random(319,348),1, 2, SubWorldID2Idx(W), nx, ny, 0, "test", 0 );
end

end

BladeKnight109
26-02-18, 07:53 AM
thử code bên dưới xem. 30 charrrrrrrrrrrrr



local tbCircle = {}
function main()
local nCountNext = 0;
--bat dau lay random 2 toa ko trung nhau
while (1) do
local rate_random = random(getn(tb_coords)); --random tb3Npc toa do
if not tbCircle[rate_random] then --ktra co trung toa do ko bang index table
if nCountNext < 300 then
tbCircle[rate_random] = 1;
nCountNext = nCountNext + 1;
end
end

if nCountNext >= 300 then --dung loop neu da du 2 toa do random ko trung
break;
end
end

--add npc da lay 2 toa do random o tren
for i, v in tbCircle do
--i: gia tri 1 duoc set mac dinh o tren
--v: index cua tb3Npc
local k = random (1, getn(name))
local W, nx, ny, nn = tb_coords[v][1], tb_coords[v][2] * 32, tb_coords[v][3] * 32, name[k]
npcindex = AddNpcEx( random(319,348),1, 2, SubWorldID2Idx(W), nx, ny, 0, "test", 0 );
end
end

hoặc cái này

local tbCircle = {}
function main()
local nCountNext = 0
while (nCountNext < 300) do
local rate_random = random(getn(tb_coords))
local _Flag = 1
for i=1,getn(tbCircle) do
if (tbCircle[i] == rate_random){
_Flag = 0
break;
}
end
if _Flag == 1 then
tbCircle[getn(tbCircle)+1] = rate_random
nCountNext = nCountNext + 1
end
end


lâu quá rồi ko viết lua nên ko biết đúng cú pháp ko :)).
Với lại random tọa độ đâu cần viết rườm rà như vậy.

yeuVLTK
26-02-18, 01:36 PM
thử code bên dưới xem. 30 charrrrrrrrrrrrr


hoặc cái này

local tbCircle = {}
function main()
local nCountNext = 0
while (nCountNext < 300) do
local rate_random = random(getn(tb_coords))
local _Flag = 1
for i=1,getn(tbCircle) do
if (tbCircle[i] == rate_random){
_Flag = 0
break;
}
end
if _Flag == 1 then
tbCircle[getn(tbCircle)+1] = rate_random
nCountNext = nCountNext + 1
end
end


lâu quá rồi ko viết lua nên ko biết đúng cú pháp ko :)).
Với lại random tọa độ đâu cần viết rườm rà như vậy.

cảm ơn bạn để tối về mình thử hii

yeuVLTK
02-03-18, 01:13 AM
thử code bên dưới xem. 30 charrrrrrrrrrrrr


hoặc cái này

local tbCircle = {}
function main()
local nCountNext = 0
while (nCountNext < 300) do
local rate_random = random(getn(tb_coords))
local _Flag = 1
for i=1,getn(tbCircle) do
if (tbCircle[i] == rate_random){
_Flag = 0
break;
}
end
if _Flag == 1 then
tbCircle[getn(tbCircle)+1] = rate_random
nCountNext = nCountNext + 1
end
end


lâu quá rồi ko viết lua nên ko biết đúng cú pháp ko :)).
Với lại random tọa độ đâu cần viết rườm rà như vậy.


Vẫn không được bạn ơi : ((((((((

HoangTVT
02-03-18, 07:27 AM
thử đoạn này, bạn tưởng tượng khu vực bạn add là hình tứ giác, lấy tọa độ góc trên trái và góc dưới phải thay thế vào tọa độ trong code


local tb_coords = {}
local tb_npcs = {}
local nLpos = 47262
local nTpos = 96890
local nRpos = 48042
local nBtpos = 98280
local nRange = 100
local nRow = floor((nBtpos - nTpos) / nRange)
local nCol = floor((nRpos - nLpos) / nRange)
for i=0,nRow do
for j=0,nCol do
tb_coords[getn(tb_coords)+1] = {nLpos+i*nRange,nTpos+j*nRange}
end
end
NPC_MAX = 300
local nCoordNum = getn(tb_coords)
if nCoordNum <= NPC_MAX then
tb_npcs = tb_coords
else
local count = 0
repeat
local tb_rd = tb_coords[random(1,nCoordNum)]
local bHave = 0
for i=1,getn(tb_npcs) do
if tb_npcs[i][1] == tb_rd[1] and tb_npcs[i][2] == tb_rd[2] then
bHave = 1
break
end
end
if bHave == 0 then
tb_npcs[getn(tb_npcs)+1] = tb_rd
count = count + 1
end
until (count > NPC_MAX)
end

for i=1,getn(tb_npcs) do
local x,y = tb_npcs[i][1],tb_npcs[i][2]
end

trungkhuyen
02-03-18, 01:22 PM
thử đoạn này, bạn tưởng tượng khu vực bạn add là hình tứ giác, lấy tọa độ góc trên trái và góc dưới phải thay thế vào tọa độ trong code


local tb_coords = {}
local tb_npcs = {}
local nLpos = 47262
local nTpos = 96890
local nRpos = 48042
local nBtpos = 98280
local nRange = 100
local nRow = floor((nBtpos - nTpos) / nRange)
local nCol = floor((nRpos - nLpos) / nRange)
for i=0,nRow do
for j=0,nCol do
tb_coords[getn(tb_coords)+1] = {nLpos+i*nRange,nTpos+j*nRange}
end
end
NPC_MAX = 300
local nCoordNum = getn(tb_coords)
if nCoordNum <= NPC_MAX then
tb_npcs = tb_coords
else
local count = 0
repeat
local tb_rd = tb_coords[random(1,nCoordNum)]
local bHave = 0
for i=1,getn(tb_npcs) do
if tb_npcs[i][1] == tb_rd[1] and tb_npcs[i][2] == tb_rd[2] then
bHave = 1
break
end
end
if bHave == 0 then
tb_npcs[getn(tb_npcs)+1] = tb_rd
count = count + 1
end
until (count > NPC_MAX)
end

for i=1,getn(tb_npcs) do
local x,y = tb_npcs[i][1],tb_npcs[i][2]
end

Cảm ơn bạn!
Nhưng nếu như vậy NPc có bị add vào mấy tọa độ mà nhân vật ko vào đc ko? (Nhà, núi, cây, sông,..)

yeuVLTK
02-03-18, 05:19 PM
Cảm ơn bạn!
Nhưng nếu như vậy NPc có bị add vào mấy tọa độ mà nhân vật ko vào đc ko? (Nhà, núi, cây, sông,..)

mình cũng có thắc mắc như bạn trên...không biết NPc có bị kẹt trong đó không?

HoangTVT
02-03-18, 05:36 PM
linux k check được tọa độ vật cản nên phải tự check và xóa những tọa độ không hợp lý, áp dụng với phạm vi và số lượng add lớn

yeuVLTK
02-03-18, 06:37 PM
linux k check được tọa độ vật cản nên phải tự check và xóa những tọa độ không hợp lý, áp dụng với phạm vi và số lượng add lớn

wow!!!!!
TUYỆT VỜI ^^!...............
Nhưng làm cách nào với nhiều Map cùng lúc ?
Và có thể lấy Get được tọa độ của NPC được Add vào ? (nếu add random 1 con Npc)

yeuVLTK
03-03-18, 01:04 PM
linux k check được tọa độ vật cản nên phải tự check và xóa những tọa độ không hợp lý, áp dụng với phạm vi và số lượng add lớn

<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
Nó bị kẹt vào gốc không click được!

HoangTVT
03-03-18, 02:17 PM
Đến đây coi như bạn đã có 1 danh sách tọa độ để add rồi, lúc add npc thì bạn set tên npc như đoạn code dưới, vào game bạn sẽ biết được npc kẹt có tọa độ bao nhiêu, rồi loại bỏ khỏi danh sách. Đấy cách làm của mình vs th này, ai có cách tốt hơn có thể tham khảo

format(NpcName, "%d/%d", x,y)

yeuVLTK
03-03-18, 05:18 PM
Cảm ơn các bạn:
"hoivegame"
"BladeKight109"
"HoangTvT"

Nhờ các bạn mà mình biết được 2 cách AddNpc random
Thì ra lúc đầu dùng Code của "hoivegame" và "BladeKight109" không được là do

local map,nx, ny = SubWorldID2Idx(tb_coords[v][1]) ,tb_coords[v][2] * 32, tb_coords[v][3] * 32; chổ này phải là "i" chứ không phải "v"
Lần nữa cảm ơn 3 bạn rất rất nhiều! Mình chơi off tự sướng nên muốn viết kiểu gặp Npc nhiệm vụ ngẫu nhiên, rồi Trả giá tiền công như trong game The Witcher 3 á hiii...
...
Cuối cùng xin các bạn giúp mình cách nào để mỗi con Npc được mỗi "Setscript" khác nhau ? Mình làm theo hướng dẫn các bạn AddNpc được random và không bị trùng nhưng Script thì tất cả Npc đều như nhau...(cùng nhiệm vụ giống nhau)

NhanVT
03-03-18, 05:44 PM
Cảm ơn các bạn:
"hoivegame"
"BladeKight109"
"HoangTvT"

Nhờ các bạn mà mình biết được 2 cách AddNpc random
Thì ra lúc đầu dùng Code của "hoivegame" và "BladeKight109" không được là do

local map,nx, ny = SubWorldID2Idx(tb_coords[v][1]) ,tb_coords[v][2] * 32, tb_coords[v][3] * 32; chổ này phải là "i" chứ không phải "v"
Lần nữa cảm ơn 3 bạn rất rất nhiều! Mình chơi off tự sướng nên muốn viết kiểu gặp Npc nhiệm vụ ngẫu nhiên, rồi Trả giá tiền công như trong game The Witcher 3 á hiii...
...
Cuối cùng xin các bạn giúp mình cách nào để mỗi con Npc được mỗi "Setscript" khác nhau ? Mình làm theo hướng dẫn các bạn AddNpc được random và không bị trùng nhưng Script thì tất cả Npc đều như nhau...(cùng nhiệm vụ giống nhau)

<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>

vuila9
03-03-18, 11:10 PM
Cảm ơn các bạn:
"hoivegame"
"BladeKight109"
"HoangTvT"

Nhờ các bạn mà mình biết được 2 cách AddNpc random
Thì ra lúc đầu dùng Code của "hoivegame" và "BladeKight109" không được là do

local map,nx, ny = SubWorldID2Idx(tb_coords[v][1]) ,tb_coords[v][2] * 32, tb_coords[v][3] * 32; chổ này phải là "i" chứ không phải "v"
Lần nữa cảm ơn 3 bạn rất rất nhiều! Mình chơi off tự sướng nên muốn viết kiểu gặp Npc nhiệm vụ ngẫu nhiên, rồi Trả giá tiền công như trong game The Witcher 3 á hiii...
...
Cuối cùng xin các bạn giúp mình cách nào để mỗi con Npc được mỗi "Setscript" khác nhau ? Mình làm theo hướng dẫn các bạn AddNpc được random và không bị trùng nhưng Script thì tất cả Npc đều như nhau...(cùng nhiệm vụ giống nhau)

Lâu quá không vào GR. Không biết dump jx có hướng giải quyết chưa ta?? chắc có rồi hay sao thấy ae dev jx cũng nhìu nhỉ:)>-

BladeKnight109
04-03-18, 10:42 AM
Hàm set 1 script cho npc:

function AddNPCEx(nId, nLevel, nMap, nX, nY, nOffsetX, nOffsetY, nScript, nCurCamp)
nOffsetX = nOffsetX or 0
nOffsetY = nOffsetY or 0
nScript = nScript or ""
nCurCamp = nCurCamp or 6
nBoss = nBoss or 0
local Series = random(0,4)
local mapindex = SubWorldID2Idx(nMap)
local npcid = nId
local npclvl = nLevel
local posx = floor((nX+nOffsetX/10)*8*32)
local posy = floor((nY+nOffsetY/10)*16*32)
local nNpcId = AddNpc(npcid,npclvl,mapindex,posx,posy);
SetNpcScript(nNpcId, nScript);
if (nCurCamp ~= 6) then
SetNpcSeries(nNpcId,Series)
end
SetNpcCurCamp(nNpcId, nCurCamp);
return nNpcId
end;

function AddNPCS(nId, nLevel, nMap, nPosX, nPosY, nScript, nCurCamp)
nScript = nScript or ""
nCurCamp = nCurCamp or 6
local Series = random(0,4)
local mapindex = SubWorldID2Idx(nMap)
local npcid = nId
local npclvl = nLevel
local nNpcId = AddNpc(npcid,npclvl,mapindex,nPosX,nPosY);
SetNpcScript(nNpcId, nScript);
if (nCurCamp ~= 6) then
SetNpcSeries(nNpcId,Series)
end
SetNpcCurCamp(nNpcId, nCurCamp);
return nNpcId
end;


Add npc theo tọa độ có sẵn

--Author: SystemError
--Date: 22/08/2013
Include("\\script\\global\\serverlib.lua")
Include("\\script\\global\\maplist.lua")

function CreateMonterNpcBienKinh()
local POSMONTER,i,nRandom,IDMonter,nLevelMonter,szScript
POSMONTER = {
{202,145,2,6},
{202,145,0,7},
{199,147,2,7},
{198,147,8,6},
{201,146,7,0},
{201,146,7,4},
{201,146,6,3},
{200,147,3,1},
{200,147,1,0},
{202,147,5,1},
{202,146,5,2},
{202,146,5,7},
{203,147,5,8},
{203,147,1,9},
{204,146,7,6},
{204,147,1,0},
{205,146,1,8},
{205,147,2,9},
{205,147,5,5},
{207,147,8,5},
{208,147,9,6},
{208,147,3,6},
{210,147,0,8},
{179,148,2,3},
{178,148,5,8},
{179,149,3,8},
{178,149,8,0},
{179,148,1,5},
{179,149,4,2},
{181,149,7,9},
{181,148,0,9},
{181,149,0,9},
{180,148,2,3},
{181,148,3,9},
{180,149,4,5},
{199,149,9,5},
{199,148,2,3},
{199,149,4,0},
{201,149,7,1},
{200,149,2,8},
{201,149,7,7},
{200,148,7,0},
{200,148,0,0},
{203,148,0,4},
{203,149,1,6},
{202,149,6,5},
{205,149,3,2},
{204,149,3,4},
{206,149,0,0},
{206,149,1,4},
{208,148,5,3},
{208,148,3,4},
{208,149,0,6},
{208,149,0,3},
{208,149,9,7},
{211,149,0,5},
{211,149,5,0},
{211,149,7,8},
{210,148,8,3},
{212,149,0,7},
{179,151,3,1},
{179,150,0,7},
{179,150,5,3},
{180,151,4,9},
{180,151,5,3},
{181,150,4,7},
{181,150,9,3},
{180,151,0,0},
{182,151,2,6},
{182,150,0,5},
{182,150,1,2},
{198,151,8,6},
{198,151,5,9},
{198,151,3,6},
{200,151,6,1},
{201,150,3,8},
{200,150,6,4},
{203,151,1,9},
{202,151,3,3},
{204,150,2,9},
{204,151,1,3},
{204,150,2,1},
{207,151,3,2},
{206,151,6,9},
{206,151,2,5},
{206,151,8,1},
{209,151,5,2},
{208,151,2,2},
{208,151,2,7},
{208,150,7,6},
{211,150,5,4},
{211,151,0,9},
{210,151,0,9},
{210,150,4,7},
{213,151,5,4},
{213,151,0,4},
{212,150,6,9},
{212,150,7,7},
{181,152,6,7},
{181,153,0,3},
{181,152,0,2},
{180,152,3,3},
{183,153,4,9},
{182,152,8,6},
{183,152,3,9},
{182,153,1,4},
{197,152,8,5},
{197,152,0,5},
{197,153,2,5},
{198,153,5,7},
{199,153,5,4},
{199,153,2,6},
{198,152,9,5},
{198,152,7,1},
{198,153,7,5},
{201,152,7,0},
{201,152,6,8},
{201,152,3,0},
{203,152,7,0},
{202,152,0,5},
{203,153,6,6},
{203,152,7,8},
{204,153,1,6},
{204,152,5,8},
{207,152,0,1},
{206,153,6,7},
{206,152,8,9},
{207,153,4,4},
{209,153,3,5},
{209,152,6,2},
{208,153,5,5},
{210,153,6,8},
{210,153,5,3},
{211,153,2,9},
{211,152,2,3},
{213,153,2,6},
{213,153,5,8},
{213,153,2,2},
{213,152,8,1},
{215,152,2,7},
{215,152,5,8},
{217,153,7,8},
{217,153,0,8},
{217,153,3,8},
{216,152,8,0},
{217,152,5,7},
{216,153,4,4},
{216,152,2,1},
{216,152,9,6},
{218,153,3,9},
{218,153,2,5},
{261,153,9,2},
{260,153,7,9},
{260,153,9,2},
{261,153,7,3},
{261,153,7,9},
{261,153,2,5},
{262,153,5,9},
{181,154,6,0},
{181,155,1,4},
{181,154,4,6},
{180,154,7,6},
{182,155,3,5},
{185,155,0,0},
{184,154,3,4},
{184,154,4,8},
{185,154,0,6},
{186,155,1,0},
{190,154,6,5},
{190,155,6,5},
{190,155,4,0},
{191,155,8,5},
{191,155,4,4},
{191,155,4,7},
{191,154,8,1},
{192,154,2,0},
{192,154,0,6},
{192,154,6,4},
{193,154,5,3},
{193,154,5,8},
{193,155,9,7},
{195,154,6,5},
{194,155,9,1},
{194,154,0,7},
{195,154,1,3},
{196,154,5,8},
{198,155,3,7},
{198,155,0,8},
{201,155,2,7},
{201,154,4,9},
{201,155,1,0},
{200,155,6,4},
{202,154,1,3},
{203,154,7,6},
{203,155,3,2},
{202,155,7,1},
{204,155,7,6},
{204,155,2,5},
{204,155,3,1},
{206,154,5,3},
{206,154,7,9},
{207,155,6,9},
{208,155,9,5},
{208,155,3,4},
{209,154,2,3},
{211,155,8,8},
{210,155,2,7},
{210,155,7,8},
{211,154,6,0},
{212,154,4,0},
{215,154,7,8},
{215,154,0,4},
{214,155,5,5},
{215,154,5,3},
{214,155,2,4},
{217,155,4,9},
{217,155,7,8},
{217,155,3,7},
{217,155,5,6},
{217,154,8,3},
{217,155,0,6},
{219,155,8,6},
{219,154,1,8},
{219,154,1,4},
{219,154,3,8},
{221,155,8,9},
{221,154,8,5},
{221,155,8,1},
{223,155,7,2},
{222,154,2,6},
{223,155,0,2},
{222,154,8,8},
{222,155,0,6},
{225,155,9,9},
{224,155,6,3},
{224,155,3,9},
{224,155,2,6},
{230,155,5,4},
{230,154,6,9},
{231,155,5,3},
{233,155,1,2},
{232,155,9,2},
{232,154,1,5},
{232,155,5,1},
{232,155,1,0},
{234,155,3,0},
{234,155,7,1},
{255,155,4,5},
{255,155,5,1},
{257,154,6,7},
{256,154,9,9},
{257,155,1,2},
{259,155,0,6},
{259,155,7,8},
{261,155,2,7},
{260,155,4,9},
{261,155,7,3},
{261,154,4,5},
{260,155,6,5},
{262,154,3,2},
{181,156,6,6},
{181,157,3,4},
{182,156,1,4},
{182,157,3,5},
{183,157,8,4},
{185,157,7,9},
{185,156,6,0},
{187,157,0,0},
{186,157,3,1},
{186,156,6,0},
{189,156,5,4},
{191,157,4,1},
{190,156,3,7},
{190,157,8,8},
{191,156,4,4},
{190,157,7,3},
{192,157,3,6},
{192,157,1,9},
{193,157,6,1},
{193,157,3,2},
{192,156,6,1},
{194,157,5,0},
{194,157,7,7},
{195,157,1,4},
{195,157,6,8},
{197,156,1,0},
{196,157,1,5},
{197,156,7,5},
{200,157,9,0},
{201,157,7,6},
{200,157,8,7},
{202,156,8,8},
{202,157,4,1},
{203,157,9,6},
{203,157,5,5},
{205,156,3,0},
{204,156,6,4},
{204,156,2,6},
{205,157,7,8},
{206,156,4,2},
{206,156,0,3},
{209,156,5,0},
{211,156,6,1},
{211,157,7,5},
{213,156,1,3},
{215,157,1,1},
{214,157,0,0},
{214,157,7,7},
{214,157,3,4},
{216,156,1,2},
{216,157,6,1},
{216,157,9,6},
{217,157,5,2},
{218,157,3,0},
{218,157,6,7},
{220,156,9,8},
{220,157,3,3},
{220,156,5,5},
{222,157,6,1},
{222,156,8,7},
{222,156,8,0},
{222,156,0,3},
{222,156,3,6},
{223,157,2,5},
{225,157,8,7},
{225,157,3,0},
{225,156,7,4},
{224,157,0,5},
{225,156,1,6},
{227,157,7,8},
{227,157,3,7},
{228,157,8,0},
{228,157,6,2},
{229,156,9,1},
{230,157,6,0},
{230,156,5,1},
{231,156,1,5},
{233,157,4,9},
{233,157,8,0},
{233,157,0,3},
{237,157,5,9},
{236,157,0,7},
{241,156,6,9},
{255,157,8,2},
{256,157,1,6},
{256,157,9,5},
{256,157,4,3},
{258,157,3,8},
{258,156,8,9},
{259,157,1,2},
{177,159,7,5},
{178,159,6,1},
{179,158,5,8},
{180,158,8,8},
{181,159,4,5},
{183,159,7,0},
{183,159,8,5},
{182,159,3,6},
{183,159,1,7},
{184,159,0,9},
{187,159,7,0},
{186,159,1,1},
{188,158,7,3},
{189,159,0,3},
{189,158,6,7},
{189,159,5,1},
{189,158,2,8},
{191,158,5,5},
{191,158,3,7},
{190,158,8,6},
{193,158,8,7},
{193,158,7,6},
{192,158,4,6},
{192,159,1,0},
{195,158,4,4},
{195,158,7,8},
{195,158,4,1},
{197,158,0,1},
{198,158,7,5},
{198,158,6,9},
{198,159,9,7},
{199,158,1,8},
{201,158,1,0},
{201,159,8,0},
{201,158,5,5},
{202,159,0,2},
{202,159,2,5},
{204,159,2,1},
{204,159,7,6},
{204,158,5,4},
{206,159,0,6},
{206,158,9,5},
{207,158,6,7},
{206,159,9,4},
{207,158,9,3},
{208,159,7,7},
{208,158,0,6},
{208,159,0,7},
{211,158,3,0},
{211,158,7,0},
{211,159,4,5},
{210,159,6,2},
{210,158,5,1},
{210,158,7,5},
{210,159,5,7},
{212,158,0,2},
{213,159,4,8},
{213,159,2,3},
{215,159,4,5},
{214,159,3,5},
{215,159,9,2},
{216,159,8,5},
{218,159,1,6},
{221,159,4,9},
{220,159,7,6},
{222,159,3,6},
{222,159,0,2},
{223,158,7,6},
{223,159,3,0},
{224,159,9,8},
{225,158,5,1},
{226,159,2,7},
{229,159,2,9},
{228,158,7,4},
{228,158,3,3},
{228,158,2,7},
{228,159,4,2},
{231,159,6,0},
{231,158,2,3},
{230,158,0,6},
{233,159,5,6},
{235,158,1,3},
{257,159,6,6},
{257,158,1,5},
{256,159,3,0},
{258,158,7,2},
{258,158,2,4},
{173,161,6,4},
{173,161,9,3},
{174,160,6,7},
{177,161,1,5},
{176,160,5,4},
{176,160,0,7},
{176,161,9,7},
{177,160,4,9},
{179,160,5,1},
{178,160,1,0},
{178,160,0,8},
{180,160,9,0},
{180,161,5,1},
{180,160,3,4},
{180,160,7,7},
{181,160,1,8},
{183,160,1,2},
{182,160,0,0},
{187,161,6,4},
{187,160,1,0},
{186,161,7,0},
{186,160,2,8},
{186,161,4,2},
{189,160,8,4},
{189,160,6,9},
{189,160,0,2},
{190,161,7,2},
{191,161,0,5},
{192,161,7,6},
{193,160,6,4},
{192,161,9,0},
{192,161,4,2},
{195,160,1,8},
{195,160,9,6},
{195,161,2,5},
{197,160,0,4},
{197,161,3,3},
{199,160,9,4},
{199,161,1,3},
{199,161,8,6},
{198,161,6,7},
{201,161,7,6},
{201,161,8,8},
{200,161,6,2},
{202,161,1,8},
{203,161,9,9},
{202,161,6,5},
{206,160,7,3},
{206,160,2,1},
{207,160,4,2},
{209,161,8,5},
{209,161,2,3},
{208,160,8,5},
{208,160,3,4},
{210,160,3,6},
{211,160,5,0},
{212,161,6,0},
{212,161,1,0},
{214,160,0,5},
{214,161,9,6},
{215,160,7,3},
{216,161,1,3},
{217,161,1,5},
{216,161,3,7},
{217,160,9,9},
{218,160,8,3},
{218,161,7,1},
{218,160,0,6},
{221,161,6,7},
{221,161,1,5},
{221,160,6,9},
{221,160,5,1},
{223,161,7,4},
{222,161,2,0},
{223,161,1,1},
{222,160,5,7},
{223,160,8,9},
{224,160,6,7},
{225,160,1,3},
{227,160,5,8},
{226,161,6,5},
{230,161,9,3},
{230,161,0,3},
{231,160,9,7},
{231,160,5,8},
{233,161,3,5},
{232,161,1,1},
{235,161,1,1},
{235,160,4,6},
{234,160,9,4},
{255,161,6,6},
{255,161,9,8},
{256,161,1,6},
{256,160,7,5},
{256,160,3,3},
{259,161,0,2},
{258,161,6,6},
{259,160,4,8},
{258,160,5,2},
{169,163,7,7},
{169,163,8,0},
{169,162,9,4},
{171,162,1,0},
{171,163,3,1},
{170,162,8,3},
{170,162,9,8},
{173,162,8,2},
{173,162,8,6},
{173,163,6,7},
{175,163,1,2},
{174,163,7,5},
{174,162,5,2},
{175,162,9,1},
{175,162,6,6},
{176,162,6,4},
{176,162,4,1},
{187,163,7,5},
{187,162,6,9},
{189,163,8,7},
{189,162,1,8},
{188,162,4,1},
{188,163,3,1},
{188,163,6,7},
{189,163,5,5},
{191,163,5,4},
{190,162,8,8},
{192,162,0,2},
{193,162,0,3},
{192,163,5,6},
{194,163,3,3},
{195,162,7,0},
{195,163,5,1},
{195,162,2,0},
{196,163,0,8},
{197,162,4,4},
{197,163,3,6},
{199,162,9,9},
{199,163,8,9},
{198,162,4,5},
{201,162,0,4},
{200,163,6,8},
{203,163,8,6},
{203,162,8,6},
{202,162,4,2},
{202,163,8,4},
{205,162,1,6},
{205,162,8,5},
{205,163,7,8},
{204,162,6,6},
{204,162,2,9},
{207,162,4,8},
{206,162,5,3},
{208,162,0,9},
{209,163,0,5},
{208,162,0,6},
{211,162,1,1},
{210,162,3,2},
{211,163,7,1},
{210,163,4,4},
{210,163,9,6},
{210,162,6,8},
{213,162,0,6},
{212,162,0,7},
{213,163,0,9},
{213,163,7,0},
{215,163,0,6},
{215,163,5,9},
{217,163,3,0},
{217,163,7,5},
{219,163,2,6},
{218,162,2,6},
{219,162,7,5},
{219,162,2,8},
{220,162,0,7},
{220,162,4,6},
{221,162,8,6},
{222,162,3,7},
{222,162,3,3},
{222,162,2,4},
{224,163,0,9},
{229,163,5,6},
{228,162,3,3},
{229,163,3,4},
{231,163,7,8},
{231,163,3,7},
{232,163,3,8},
{233,162,1,9},
{233,162,5,7},
{234,162,2,5},
{234,162,9,9},
{235,162,6,7},
{252,163,2,4},
{252,163,8,4},
{255,163,5,6},
{254,162,3,4},
{255,163,8,0},
{256,163,6,2},
{256,163,4,3},
{258,162,8,1},
{258,162,1,2},
{167,165,9,5},
{166,164,8,9},
{167,165,8,3},
{167,164,5,6},
{166,165,8,9},
{166,165,9,6},
{168,164,1,1},
{168,164,6,5},
{169,165,0,5},
{170,164,1,9},
{170,164,8,7},
{170,165,7,9},
{172,164,8,3},
{173,165,1,2},
{173,165,6,0},
{172,164,0,0},
{175,164,2,1},
{175,165,7,6},
{174,165,4,0},
{174,165,0,5},
{175,165,1,8},
{177,164,2,4},
{177,165,5,8},
{176,165,9,4},
{178,164,8,6},
{178,165,1,1},
{193,165,1,3},
{192,164,4,5},
{194,165,7,5},
{195,165,3,8},
{194,164,6,1},
{194,165,0,0},
{196,164,7,0},
{198,164,6,4},
{198,164,2,6},
{199,164,6,5},
{200,165,8,1},
{200,164,4,5},
{203,165,1,0},
{203,164,8,3},
{203,164,4,6},
{204,165,5,2},
{204,164,6,4},
{204,165,7,7},
{204,165,0,8},
{207,164,1,7},
{206,165,4,2},
{207,165,7,9},
{208,165,1,4},
{208,165,9,5},
{208,165,6,6},
{208,164,8,4},
{213,164,3,4},
{213,165,7,3},
{214,164,6,5},
{218,165,1,4},
{218,164,2,6},
{220,165,4,1},
{223,165,2,7},
{222,164,1,4},
{225,164,9,2},
{225,165,4,0},
{225,165,7,5},
{225,165,8,3},
{224,165,5,3},
{226,164,6,4},
{227,165,7,3},
{227,165,1,7},
{228,165,0,8},
{231,164,7,5},
{230,164,1,3},
{231,164,1,1},
{230,164,4,8},
{232,165,3,1},
{233,165,0,7},
{232,165,7,9},
{232,165,3,6},
{232,164,7,9},
{250,165,9,3},
{253,164,5,3},
{253,165,6,5},
{253,165,3,7},
{253,164,9,8},
{255,165,6,8},
{255,165,0,5},
{254,164,3,1},
{255,164,4,3},
{167,166,6,5},
{166,166,8,7},
{167,167,8,6},
{168,167,5,1},
{171,166,2,7},
{170,166,7,6},
{170,167,2,0},
{172,167,6,6},
{172,166,2,5},
{172,166,5,1},
{175,167,3,3},
{175,166,0,6},
{176,167,8,2},
{177,166,6,0},
{177,166,0,5},
{176,167,5,6},
{176,166,5,2},
{192,166,9,4},
{193,166,7,2},
{195,167,4,6},
{195,167,1,7},
{194,166,2,8},
{197,166,2,5},
{196,166,6,8},
{197,167,7,5},
{196,167,6,7},
{196,167,2,2},
{198,166,3,8},
{199,166,2,3},
{198,167,1,2},
{201,166,5,2},
{202,166,8,1},
{202,166,0,9},
{203,166,5,4},
{204,166,0,5},
{204,167,6,3},
{205,166,7,7},
{205,167,8,9},
{206,167,2,8},
{207,166,5,8},
{207,167,3,2},
{210,167,5,0},
{211,167,0,2},
{210,167,6,8},
{213,166,4,0},
{212,167,7,6},
{212,166,1,9},
{215,166,8,1},
{215,166,5,3},
{214,166,2,4},
{215,167,2,6},
{215,167,0,0},
{217,167,8,4},
{217,166,8,8},
{216,166,8,2},
{217,167,2,3},
{216,166,8,8},
{219,166,6,7},
{220,166,4,1},
{221,166,7,0},
{222,166,0,4},
{229,167,2,0},
{229,167,3,4},
{229,166,3,2},
{228,166,5,4},
{231,166,2,2},
{231,167,2,4},
{230,167,1,7},
{231,167,2,8},
{230,166,7,6},
{232,167,4,8},
{249,167,5,4},
{249,167,1,4},
{248,167,7,7},
{249,167,1,8},
{250,166,1,7},
{250,166,5,8},
{252,166,7,5},
{253,167,6,6},
{253,167,6,0},
{253,166,6,5},
{254,166,5,4},
{255,166,5,2},
{158,169,0,7},
{161,168,9,8},
{161,168,5,3},
{161,169,6,4},
{163,169,4,4},
{162,168,6,4},
{162,169,4,2},
{164,169,6,4},
{164,168,8,6},
{165,169,6,3},
{167,168,5,7},
{166,168,7,0},
{168,168,5,3},
{168,169,0,6},
{171,168,4,6},
{170,168,2,8},
{171,169,6,6},
{170,169,5,6},
{173,169,6,5},
{172,169,9,0},
{173,168,5,1},
{172,168,9,3},
{172,169,6,6},
{175,168,8,8},
{177,168,2,7},
{176,168,8,3},
{176,169,5,1},
{176,168,2,6},
{199,168,4,6},
{199,169,9,0},
{201,169,1,5},
{200,169,1,4},
{200,168,4,0},
{203,169,6,1},
{203,169,0,4},
{202,168,6,3},
{202,168,3,6},
{206,169,2,9},
{209,168,3,5},
{208,169,4,4},
{211,168,9,4},
{211,169,1,2},
{212,168,8,6},
{213,168,8,8},
{212,168,9,3},
{213,168,4,8},
{213,169,9,9},
{230,169,9,5},
{231,169,6,3},
{231,169,6,7},
{230,168,6,6},
{233,168,2,5},
{232,168,4,1},
{234,168,7,5},
{234,169,9,1},
{234,168,6,4},
{237,169,7,6},
{236,169,0,8},
{249,168,0,3},
{249,169,0,3},
{250,169,7,9},
{251,168,3,0},
{250,168,0,0},
{251,168,9,3},
{253,169,4,1},
{252,168,2,1},
{255,168,1,0},
{254,169,1,3},
{256,169,3,5},
{256,168,2,1},
{256,168,0,4},
{155,171,7,9},
{154,171,6,8},
{155,171,5,7},
{154,171,8,8},
{157,170,8,6},
{157,170,8,1},
{158,170,8,0},
{159,170,5,2},
{159,171,2,1},
{158,170,4,6},
{161,171,4,6},
{162,171,6,1},
{164,171,0,3},
{167,170,2,7},
{166,171,8,3},
{167,171,5,3},
{166,170,0,9},
{169,170,5,5},
{168,171,4,0},
{171,170,2,2},
{170,170,3,5},
{171,171,9,9},
{170,171,0,8},
{173,170,6,1},
{172,170,4,1},
{173,171,4,8},
{175,171,5,6},
{175,171,6,1},
{176,171,3,5},
{176,171,2,2},
{176,171,5,3},
{200,170,5,0},
{201,171,2,6},
{203,170,1,3},
{203,171,1,7},
{203,170,2,8},
{204,170,0,8},
{205,170,6,4},
{205,171,2,1},
{205,170,0,4},
{207,170,8,5},
{207,171,5,4},
{208,170,6,2},
{209,170,0,5},
{209,170,7,0},
{209,171,5,9},
{211,170,0,5},
{211,171,0,0},
{211,171,8,3},
{210,171,8,8},
{213,170,2,9},
{212,170,2,5},
{212,171,6,3},
{233,170,3,0},
{234,171,0,2},
{234,171,4,8},
{234,170,6,0},
{234,170,4,4},
{237,170,4,8},
{239,170,9,7},
{238,170,4,1},
{238,170,7,6},
{238,170,4,5},
{243,171,8,9},
{246,171,1,6},
{246,171,0,9},
{246,171,5,1},
{247,171,4,3},
{247,170,8,5},
{247,170,4,7},
{248,170,6,9},
{250,170,0,2},
{251,170,6,3},
{251,170,6,6},
{250,171,8,3},
{253,171,5,1},
{253,170,7,2},
{253,171,0,6},
{254,171,6,0},
{255,170,9,0},
{257,170,0,3},
{256,170,7,0},
{153,173,5,1},
{153,173,1,5},
{153,173,2,9},
{155,173,9,7},
{154,172,7,5},
{154,173,2,5},
{156,173,8,4},
{157,173,4,2},
{157,173,6,7},
{156,173,7,8},
{159,172,8,4},
{161,172,2,6},
{161,173,1,5},
{161,173,3,1},
{160,172,3,9},
{160,173,0,4},
{160,173,6,6},
{160,172,6,1},
{163,172,5,1},
{165,173,8,1},
{164,173,2,0},
{165,172,5,2},
{165,172,6,9},
{167,172,2,7},
{168,172,9,5},
{169,173,9,6},
{169,173,4,8},
{171,173,9,2},
{170,172,4,6},
{170,172,2,8},
{174,172,1,2},
{174,173,1,9},
{175,173,1,8},
{175,172,8,2},
{174,173,8,2},
{174,173,3,6},
{177,173,8,2},
{177,173,9,7},
{179,172,7,5},
{178,173,6,2},
{179,173,0,5},
{179,172,4,5},
{179,172,0,8},
{181,173,1,3},
{180,173,7,5},
{180,173,0,1},
{200,172,7,1},
{201,172,5,9},
{203,173,6,8},
{203,172,3,5},
{202,172,3,4},
{202,173,4,9},
{205,173,8,3},
{204,172,6,0},
{205,172,4,6},
{204,172,4,4},
{206,173,4,7},
{206,172,7,3},
{208,172,4,2},
{209,172,5,2},
{235,172,1,4},
{235,172,9,6},
{237,172,1,2},
{236,172,8,6},
{236,172,5,2},
{238,172,6,0},
{239,172,5,7},
{239,173,3,9},
{238,173,1,1},
{238,173,8,9},
{241,173,2,1},
{240,172,4,1},
{240,172,6,3},
{242,172,9,1},
{243,172,0,4},
{243,173,1,0},
{244,172,1,2},
{245,173,0,4},
{244,173,4,1},
{247,173,3,3},
{246,172,5,3},
{246,172,9,5},
{249,172,1,4},
{250,172,0,2},
{251,172,4,4},
{252,172,9,5},
{253,172,7,5},
{254,172,6,3},
{153,174,9,1},
{155,175,1,4},
{155,174,0,4},
{154,174,1,8},
{156,175,0,6},
{160,174,1,0},
{163,174,5,7},
{163,174,1,8},
{162,175,6,7},
{162,175,0,3},
{165,174,4,7},
{165,174,5,0},
{164,175,7,7},
{166,174,3,3},
{166,174,9,6},
{168,174,4,6},
{169,174,8,3},
{169,174,3,7},
{170,174,0,9},
{172,174,5,3},
{173,175,9,7},
{173,175,9,1},
{173,175,7,0},
{175,174,5,8},
{176,174,6,4},
{176,174,2,0},
{179,175,7,5},
{178,174,4,0},
{179,174,2,7},
{178,174,9,4},
{181,174,3,0},
{181,174,4,7},
{180,174,5,0},
{182,175,5,3},
{182,175,8,7},
{182,175,0,9},
{199,175,5,4},
{200,174,3,8},
{200,175,7,4},
{201,174,0,0},
{203,174,3,3},
{202,175,0,1},
{237,174,5,5},
{237,175,7,6},
{237,175,3,0},
{238,175,1,7},
{238,174,2,4},
{239,175,1,3},
{238,174,0,8},
{241,174,6,5},
{240,174,9,7},
{242,175,1,1},
{243,175,9,1},
{244,175,1,6},
{245,174,7,2},
{245,174,2,7},
{247,174,5,1},
{247,174,6,1},
{248,174,3,2},
{248,175,0,1},
{251,175,8,9},
{252,174,3,3},
{252,175,8,2},
{252,175,6,5},
{255,174,2,6},
{255,175,0,2},
{254,174,9,3},
{255,174,7,6},
{254,174,8,6},
{256,175,5,3},
{256,175,2,7},
{155,176,1,6},
{157,177,1,3},
{157,177,3,4},
{156,177,1,5},
{156,176,0,8},
{156,176,5,5},
{160,176,1,1},
{161,176,2,5},
{161,177,9,4},
{160,177,0,5},
{162,176,5,1},
{162,176,0,0},
{163,177,1,6},
{162,177,8,8},
{164,176,1,2},
{164,176,9,0},
{166,177,7,4},
{167,176,7,8},
{167,177,3,0},
{166,176,4,9},
{168,176,7,0},
{169,177,2,5},
{170,176,1,6},
{171,176,9,9},
{171,177,6,5},
{170,177,9,2},
{171,176,1,8},
{172,177,3,5},
{175,176,1,6},
{175,177,0,4},
{175,177,5,7},
{175,177,7,1},
{177,176,8,3},
{177,176,1,1},
{177,177,5,0},
{176,177,2,2},
{178,176,2,8},
{178,177,3,9},
{179,176,6,6},
{181,177,4,3},
{180,177,4,3},
{180,176,2,1},
{180,176,4,7},
{183,176,4,8},
{184,176,1,6},
{184,177,0,1},
{196,177,8,8},
{197,177,3,5},
{198,176,0,9},
{198,177,3,9},
{199,177,1,2},
{201,176,3,9},
{200,177,3,6},
{201,176,7,2},
{202,176,0,5},
{238,177,5,9},
{241,176,3,8},
{243,177,0,6},
{243,176,2,3},
{243,176,4,9},
{244,176,5,8},
{246,177,5,3},
{246,177,0,6},
{246,176,9,1},
{249,176,5,9},
{248,177,2,5},
{250,176,6,5},
{250,176,8,9},
{251,177,9,1},
{250,176,7,0},
{253,177,9,6},
{253,177,5,6},
{255,176,1,8},
{255,177,4,2},
{254,177,8,3},
{256,176,9,6},
{256,177,8,3},
{256,177,3,0},
{256,177,4,8},
{256,177,7,7},
{157,178,2,0},
{157,179,1,0},
{156,178,8,5},
{159,178,8,0},
{158,179,6,1},
{159,179,5,9},
{159,179,3,9},
{161,178,5,8},
{160,179,7,8},
{162,178,0,2},
{162,179,0,6},
{165,179,8,1},
{165,179,1,2},
{165,179,6,6},
{164,179,8,6},
{167,179,4,5},
{167,179,1,1},
{166,178,6,2},
{168,178,9,0},
{168,178,2,4},
{171,179,0,8},
{170,178,6,0},
{172,179,6,5},
{174,179,5,9},
{176,178,7,5},
{176,179,9,3},
{176,179,5,0},
{176,179,5,5},
{178,179,3,0},
{178,178,7,6},
{179,179,3,2},
{179,179,5,0},
{180,179,9,9},
{180,179,5,0},
{181,179,9,2},
{180,178,9,4},
{183,178,5,2},
{182,178,8,9},
{184,178,4,9},
{194,179,8,7},
{197,178,6,6},
{199,178,4,0},
{200,178,3,0},
{240,179,9,5},
{243,178,1,9},
{249,178,5,9},
{249,178,0,4},
{250,178,3,5},
{251,178,3,5},
{252,179,5,1},
{252,178,0,7},
{255,179,5,5},
{255,179,7,5},
{257,179,7,3},
{156,181,2,4},
{157,180,7,2},
{157,181,0,0},
{157,181,6,2},
{156,181,4,0},
{158,180,4,4},
{159,180,1,6},
{159,181,7,9},
{158,181,4,2},
{161,181,8,5},
{160,180,1,9},
{161,180,9,0},
{161,181,1,0},
{163,181,0,0},
{162,180,2,7},
{162,180,4,0},
{163,181,9,9},
{165,180,1,1},
{166,180,9,1},
{167,180,5,1},
{166,180,0,1},
{168,181,8,7},
{171,181,2,1},
{171,181,8,2},
{171,180,0,3},
{172,180,5,0},
{173,180,8,1},
{173,181,2,0},
{175,181,0,6},
{175,180,5,6},
{174,180,6,3},
{175,180,3,1},
{174,181,1,7},
{175,181,9,7},
{176,181,2,2},
{177,181,8,1},
{177,180,7,4},
{179,181,5,4},
{180,181,5,0},
{181,180,9,4},
{181,180,3,5},
{184,180,4,1},
{185,181,7,3},
{187,181,6,2},
{189,181,2,0},
{188,181,0,9},
{191,180,2,5},
{191,180,1,1},
{190,181,5,5},
{192,180,7,6},
{196,180,9,8},
{197,181,7,1},
{197,181,4,3},
{196,181,3,4},
{240,180,8,4},
{249,180,6,8},
{249,181,8,3},
{250,180,6,7},
{251,181,4,4},
{250,181,3,7},
{251,181,0,8},
{253,181,0,7},
{253,180,7,7},
{253,180,1,6},
{254,180,7,4},
{255,180,8,5},
{256,180,1,8},
{257,180,6,1},
{257,181,3,1},
{256,181,2,6},
{256,181,9,9},
{259,181,6,3},
{258,180,4,8},
{259,180,6,7},
{259,180,9,0},
{258,181,3,6},
{260,181,4,6},
{260,181,9,9},
{155,183,3,2},
{154,183,3,4},
{156,182,4,1},
{156,182,8,9},
{157,182,9,6},
{156,183,3,6},
{158,183,6,1},
{161,182,0,5},
{160,182,0,4},
{161,183,7,7},
{161,183,3,5},
{162,183,6,1},
{163,183,4,2},
{165,182,0,5},
{167,183,7,3},
{166,183,0,2},
{166,182,1,5},
{169,183,3,0},
{168,182,0,2},
{168,182,8,9},
{171,182,7,4},
{172,182,0,8},
{173,182,6,3},
{173,183,2,0},
{173,182,2,5},
{172,183,8,0},
{174,182,7,8},
{176,182,5,9},
{176,182,9,1},
{178,183,3,3},
{178,182,7,0},
{179,182,7,7},
{180,183,0,7},
{180,182,3,8},
{181,182,5,3},
{183,182,8,8},
{182,182,2,0},
{182,182,9,7},
{183,182,2,0},
{185,182,2,2},
{186,182,7,4},
{189,182,5,5},
{188,183,2,3},
{190,182,7,2},
{191,183,7,9},
{192,182,5,3},
{194,182,2,7},
{196,183,1,1},
{250,183,2,1},
{251,183,1,8},
{250,182,2,0},
{252,183,9,4},
{253,182,9,7},
{253,183,6,1},
{252,183,5,8},
{254,182,3,4},
{254,183,4,2},
{256,183,4,7},
{257,182,9,6},
{258,182,6,7},
{258,182,4,3},
{259,183,4,0},
{261,182,5,1},
{260,182,3,0},
{261,183,0,9},
{260,183,5,0},
{261,183,1,8},
{263,183,7,6},
{262,182,9,7},
{263,182,6,5},
{263,182,8,7},
{153,184,1,0},
{153,184,2,9},
{153,184,5,0},
{152,184,4,4},
{153,184,3,6},
{153,185,3,8},
{155,185,6,2},
{154,185,4,3},
{154,185,2,9},
{155,184,0,3},
{156,185,7,0},
{157,185,2,8},
{156,184,6,7},
{161,184,2,6},
{163,184,8,1},
{163,184,1,2},
{163,184,4,8},
{162,184,0,7},
{165,184,2,8},
{165,184,6,3},
{164,185,2,1},
{166,184,8,0},
{177,185,6,1},
{177,184,6,3},
{179,184,2,8},
{179,184,8,3},
{179,184,2,0},
{178,185,7,6},
{179,185,9,3},
{179,185,4,6},
{180,185,3,5},
{190,185,8,3},
{191,185,0,7},
{192,184,6,8},
{193,184,6,8},
{251,185,5,3},
{251,185,2,0},
{251,185,1,4},
{251,184,0,4},
{253,185,3,8},
{253,185,5,3},
{255,185,2,1},
{257,185,8,3},
{256,185,6,6},
{257,185,3,8},
{256,184,8,4},
{257,184,6,4},
{256,184,3,8},
{257,184,1,1},
{257,184,3,6},
{261,184,3,2},
{260,184,4,1},
{262,184,5,0},
{262,184,9,2},
{262,185,2,6},
{263,185,2,1},
{265,185,9,8},
{264,184,9,0},
{265,184,4,0},
{264,184,0,9},
{264,185,8,0},
{265,185,9,6},
{265,185,4,8},
{266,184,1,9},
{268,185,7,9},
{269,185,0,0},
{268,185,4,5},
{269,185,7,3},
{268,185,8,4},
{270,185,0,6},
{273,185,1,4},
{274,184,8,8},
{275,184,2,9},
{274,184,1,8},
{276,185,6,7},
{276,185,0,4},
{276,185,5,3},
{277,185,1,9},
{153,186,6,2},
{155,186,6,0},
{155,186,5,4},
{157,186,8,1},
{156,186,6,4},
{156,186,4,8},
{157,186,4,3},
{162,186,6,6},
{163,186,3,1},
{163,187,5,3},
{164,187,3,6},
{177,186,7,6},
{177,187,9,3},
{176,186,6,8},
{176,187,2,4},
{176,186,0,9},
{178,187,2,0},
{252,186,5,0},
{253,187,8,5},
{252,187,3,6},
{254,186,1,9},
{255,186,4,7},
{254,186,7,2},
{256,186,1,2},
{256,186,8,0},
{259,187,2,8},
{258,187,9,6},
{260,187,7,5},
{260,187,3,2},
{262,187,7,3},
{263,186,5,0},
{262,186,3,1},
{264,186,4,3},
{267,187,2,8},
{268,187,1,2},
{269,186,9,6},
{269,187,7,0},
{270,186,2,1},
{270,187,7,1},
{272,186,3,5},
{273,187,0,2},
{272,187,2,5},
{272,187,0,3},
{273,187,9,2},
{275,186,3,4},
{274,187,6,0},
{274,186,2,0},
{275,186,3,8},
{276,186,3,5},
{276,186,0,6},
{157,189,7,0},
{157,188,2,9},
{157,189,2,5},
{159,188,0,6},
{159,189,1,8},
{159,189,9,5},
{159,189,6,0},
{158,189,5,7},
{160,189,8,0},
{161,188,9,3},
{161,189,8,8},
{161,188,4,8},
{160,189,4,8},
{162,188,2,9},
{165,188,0,4},
{165,189,3,7},
{164,189,7,4},
{165,189,6,4},
{164,188,2,5},
{173,189,5,7},
{175,188,0,4},
{175,189,5,8},
{174,189,4,1},
{177,188,1,6},
{177,188,9,7},
{177,189,2,2},
{178,189,2,0},
{252,189,6,6},
{252,188,8,7},
{253,188,7,3},
{255,188,3,8},
{255,188,7,9},
{256,189,9,8},
{257,188,0,9},
{258,188,3,0},
{259,188,0,8},
{258,189,6,3},
{258,189,2,4},
{259,188,8,3},
{259,188,6,8},
{260,189,3,0},
{261,188,8,8},
{261,189,3,0},
{261,188,4,5},
{263,188,9,8},
{263,189,2,1},
{265,188,7,1},
{264,188,7,4},
{265,189,7,2},
{265,188,1,9},
{267,188,0,5},
{267,188,3,5},
{267,189,2,4},
{268,188,3,2},
{268,188,7,3},
{269,188,5,9},
{271,188,3,4},
{270,189,7,1},
{155,191,7,6},
{157,190,1,3},
{156,191,4,9},
{159,191,7,9},
{158,190,5,6},
{160,190,2,8},
{161,190,6,9},
{162,190,8,4},
{163,191,8,1},
{163,190,7,7},
{165,191,1,0},
{164,190,8,6},
{167,191,7,5},
{167,190,9,9},
{167,191,3,5},
{168,191,2,8},
{169,191,7,0},
{168,191,8,3},
{168,190,6,7},
{169,191,4,1},
{169,190,0,8},
{171,190,6,6},
{171,190,9,0},
{170,191,1,6},
{173,190,6,1},
{172,190,4,2},
{172,191,2,5},
{173,191,8,5},
{173,191,2,6},
{175,190,5,8},
{175,190,0,7},
{250,191,6,7},
{251,191,9,4},
{251,190,4,9},
{252,191,6,6},
{253,191,7,4},
{253,191,4,7},
{253,191,4,4},
{254,190,9,9},
{254,191,6,0},
{255,190,7,1},
{254,190,9,1},
{254,190,5,5},
{256,190,1,5},
{257,191,3,4},
{259,191,3,8},
{259,191,5,2},
{261,190,4,9},
{261,190,6,2},
{261,190,9,6},
{261,191,0,3},
{260,191,3,3},
{263,190,8,7},
{262,190,5,6},
{262,191,6,4},
{265,190,8,6},
{265,190,8,9},
{266,191,5,9},
{267,191,4,2},
{268,191,1,7},
{268,190,6,9},
{271,190,9,5},
{270,190,3,6},
{271,191,2,1},
{270,191,5,0},
{272,190,1,9},
{272,190,1,4},
{153,193,3,6},
{154,193,0,1},
{155,192,4,2},
{155,193,5,5},
{157,193,1,1},
{159,193,7,1},
{159,192,2,5},
{159,193,0,5},
{158,193,7,1},
{158,193,2,1},
{161,192,2,1},
{160,193,4,7},
{162,193,3,6},
{163,193,0,1},
{162,192,3,9},
{164,193,1,8},
{165,192,7,2},
{166,193,1,7},
{166,193,3,0},
{167,192,5,7},
{169,193,2,9},
{168,193,2,4},
{169,193,5,3},
{170,193,0,9},
{171,192,5,1},
{170,192,3,6},
{170,192,9,7},
{171,192,1,9},
{172,192,6,0},
{249,193,1,6},
{249,193,5,1},
{251,193,0,3},
{251,192,8,6},
{250,192,9,1},
{252,192,5,0},
{252,193,0,0},
{254,193,5,2},
{255,193,1,9},
{256,193,8,0},
{257,192,0,4},
{256,192,0,2},
{257,192,6,0},
{259,193,5,6},
{261,192,6,8},
{261,192,3,6},
{261,193,3,2},
{260,193,6,8},
{260,192,6,7},
{263,192,7,3},
{262,192,8,5},
{262,192,0,2},
{266,192,9,5},
{267,192,8,6},
{267,192,2,8},
{269,192,1,4},
{268,192,6,4},
{271,192,7,3},
{271,193,4,4},
{271,192,4,4},
{272,192,7,9},
{273,193,3,8},
{273,193,2,6},
{149,195,4,9},
{150,194,8,7},
{150,194,5,7},
{152,194,7,1},
{152,195,8,7},
{155,194,5,6},
{155,194,3,2},
{154,195,4,3},
{154,195,9,2},
{156,194,1,0},
{161,194,2,1},
{161,194,1,8},
{161,194,7,5},
{160,194,8,4},
{163,195,2,3},
{163,195,5,8},
{162,195,6,4},
{163,194,5,1},
{162,195,2,0},
{165,195,3,3},
{167,194,8,9},
{166,195,0,0},
{166,194,8,7},
{169,194,5,4},
{168,195,8,4},
{169,195,1,1},
{170,194,0,9},
{170,195,0,3},
{247,195,5,8},
{248,195,1,5},
{249,194,6,7},
{249,194,2,3},
{249,194,7,4},
{250,194,7,8},
{251,194,4,2},
{251,194,5,6},
{252,194,5,5},
{252,194,3,0},
{252,194,1,4},
{253,194,7,3},
{255,195,3,0},
{255,195,7,3},
{257,194,6,1},
{257,195,5,3},
{257,195,7,3},
{257,195,4,2},
{256,195,5,5},
{256,195,3,9},
{259,194,8,5},
{259,194,3,2},
{258,194,1,1},
{258,194,5,4},
{260,195,9,0},
{260,195,3,3},
{271,194,0,7},
{271,195,8,0},
{273,194,3,9},
{272,195,8,6},
{149,197,6,2},
{148,196,5,7},
{148,196,2,7},
{148,197,5,2},
{148,197,0,5},
{150,196,6,5},
{152,197,4,1},
{152,196,0,2},
{152,196,7,7},
{163,196,7,2},
{163,196,0,0},
{164,196,5,8},
{165,197,1,9},
{166,197,3,7},
{167,196,2,3},
{167,197,1,1},
{166,196,9,2},
{166,196,1,8},
{169,196,5,9},
{168,197,2,2},
{171,197,0,3},
{170,196,5,3},
{171,196,0,2},
{244,197,1,8},
{246,197,7,9},
{246,197,1,1},
{246,196,0,9},
{247,197,7,8},
{247,197,3,1},
{249,196,6,5},
{248,196,7,3},
{248,196,8,8},
{248,196,4,7},
{256,196,7,5},
{257,196,4,4},
{259,196,2,2},
{258,197,8,2},
{259,196,2,6},
{259,197,4,5},
{258,197,6,5},
{258,197,3,1},
{260,196,0,2},
{147,199,1,7},
{150,198,9,7},
{150,199,2,5},
{165,198,5,9},
{166,199,9,0},
{166,198,4,5},
{166,199,5,1},
{166,199,1,6},
{167,199,1,4},
{166,199,1,2},
{169,198,9,6},
{169,198,2,1},
{169,199,2,5},
{170,198,0,2},
{171,198,5,8},
{170,199,2,7},
{171,199,1,7},
{172,199,2,5},
{172,198,3,8},
{243,199,1,5},
{243,199,8,3},
{243,199,2,8},
{243,198,6,5},
{245,198,5,8},
{245,198,7,9},
{246,199,1,6},
{246,198,6,4},
{246,198,1,3},
{147,200,2,8},
{146,201,9,4},
{148,200,3,3},
{148,201,7,7},
{149,201,2,0},
{150,200,8,0},
{150,201,0,5},
{169,200,7,7},
{171,200,5,3},
{170,201,7,1},
{172,200,7,4},
{172,201,6,8},
{238,201,8,8},
{239,201,8,4},
{239,201,5,2},
{240,201,8,5},
{240,200,5,9},
{243,201,0,1},
{243,201,8,9},
{243,201,2,8},
{245,201,6,9},
{244,201,6,7},
{245,200,5,3},
{245,200,3,8},
{244,200,2,1},
{246,201,3,9},
{246,200,2,0},
{169,203,4,1},
{169,202,7,3},
{169,203,3,7},
{171,202,7,5},
{170,202,5,6},
{170,202,4,9},
{170,203,9,6},
{172,202,1,0},
{173,203,9,7},
{175,203,1,5},
{174,203,3,1},
{191,203,0,4},
{192,203,0,0},
{194,202,9,0},
{219,202,7,6},
{220,203,9,2},
{220,202,5,7},
{220,202,8,3},
{233,202,9,9},
{235,203,2,4},
{234,203,9,4},
{234,202,1,9},
{234,203,0,4},
{234,203,1,2},
{237,203,6,9},
{237,202,5,9},
{238,202,7,9},
{239,202,6,4},
{239,202,0,4},
{240,202,3,7},
{241,203,3,5},
{241,203,5,3},
{242,203,8,4},
{243,203,4,0},
{242,202,9,9},
{242,203,3,5},
{242,202,5,9},
{243,203,4,4},
{245,203,4,2},
{245,203,3,1},
{245,203,2,4},
{245,203,0,2},
{244,203,5,1},
{244,203,2,4},
{244,202,7,1},
{246,202,2,2},
{167,205,6,6},
{168,205,5,4},
{169,204,2,0},
{169,205,0,8},
{171,204,6,9},
{170,205,4,5},
{171,205,4,4},
{173,204,9,7},
{173,204,2,0},
{172,205,6,6},
{175,204,4,2},
{174,204,4,0},
{175,205,8,4},
{175,205,6,7},
{177,205,1,5},
{176,205,5,8},
{188,204,8,6},
{188,204,3,5},
{189,204,1,3},
{192,204,1,8},
{192,204,9,1},
{195,204,1,1},
{194,204,2,3},
{196,204,8,9},
{196,205,0,7},
{199,205,1,3},
{216,205,8,3},
{217,205,9,6},
{219,205,4,0},
{218,205,1,2},
{221,204,2,9},
{221,205,3,6},
{220,205,1,7},
{233,205,6,9},
{234,205,9,6},
{234,205,1,6},
{235,205,5,5},
{235,204,7,2},
{236,205,6,4},
{238,205,0,7},
{238,205,5,6},
{238,204,4,5},
{238,204,9,5},
{238,204,7,9},
{167,206,4,2},
{167,207,5,7},
{166,206,5,6},
{166,207,3,9},
{169,207,8,2},
{168,206,3,6},
{168,207,4,9},
{171,207,7,6},
{170,206,0,3},
{171,206,1,2},
{173,206,0,1},
{173,206,9,8},
{175,206,2,3},
{175,206,1,7},
{174,206,3,5},
{174,207,4,8},
{174,207,3,1},
{177,206,2,4},
{177,207,8,7},
{178,206,8,2},
{178,206,2,7},
{178,206,8,8},
{181,207,7,4},
{181,206,8,9},
{180,207,5,0},
{180,207,0,0},
{183,206,8,3},
{183,206,3,0},
{182,206,3,6},
{183,206,2,5},
{185,207,1,8},
{184,206,1,0},
{187,206,9,9},
{188,207,3,9},
{188,206,6,1},
{189,206,6,2},
{191,206,6,6},
{191,207,0,2},
{195,206,3,6},
{195,206,0,1},
{195,207,9,6},
{195,207,2,9},
{195,207,2,3},
{194,207,9,1},
{197,207,1,0},
{197,206,1,1},
{199,206,1,8},
{217,207,5,5},
{217,207,3,8},
{217,207,9,3},
{219,207,1,7},
{218,206,5,9},
{218,207,0,2},
{218,207,3,3},
{219,207,4,7},
{220,207,5,7},
{220,206,7,5},
{222,207,2,2},
{222,206,3,8},
{232,207,8,4},
{233,207,2,9},
{234,207,6,6},
{235,207,2,9},
{235,207,2,4},
{236,206,1,8},
{237,206,3,9},
{237,206,8,9},
{236,206,6,8},
{165,208,2,3},
{165,209,1,4},
{164,208,9,7},
{164,209,2,1},
{164,208,3,7},
{167,209,2,8},
{167,208,2,4},
{167,209,7,7},
{167,209,1,2},
{168,208,6,4},
{168,209,5,6},
{168,209,2,9},
{169,209,4,0},
{170,208,1,5},
{170,208,0,0},
{171,209,6,1},
{171,209,3,2},
{172,208,0,0},
{173,209,1,3},
{172,208,5,7},
{173,209,5,8},
{175,208,9,1},
{175,208,9,9},
{175,208,7,6},
{176,209,6,7},
{177,209,8,5},
{177,209,1,7},
{176,209,4,9},
{176,209,7,0},
{177,208,5,1},
{179,209,3,4},
{179,209,0,1},
{178,208,9,7},
{178,209,4,3},
{180,209,5,6},
{180,209,4,9},
{183,209,4,9},
{183,209,2,0},
{183,209,7,3},
{184,209,0,4},
{184,208,8,7},
{185,208,6,3},
{184,208,3,3},
{186,208,7,6},
{187,208,8,6},
{186,208,9,2},
{189,209,7,8},
{188,208,5,1},
{191,208,5,6},
{191,209,2,2},
{192,208,8,7},
{192,209,2,1},
{192,209,7,1},
{192,208,1,4},
{195,208,3,2},
{196,208,7,9},
{197,208,3,5},
{196,209,7,4},
{196,209,3,5},
{196,209,2,1},
{198,208,5,2},
{199,209,4,8},
{198,209,8,3},
{218,209,8,4},
{218,209,2,3},
{218,208,7,2},
{221,208,8,1},
{220,209,8,1},
{221,209,6,7},
{221,209,9,9},
{220,208,0,9},
{222,208,2,5},
{222,209,6,4},
{222,209,0,5},
{222,209,3,7},
{231,209,1,9},
{232,209,5,6},
{232,208,7,9},
{233,208,9,9},
{232,208,8,0},
{233,209,5,2},
{235,208,4,9},
{235,209,4,8},
{165,211,6,4},
{164,210,3,2},
{165,210,9,8},
{164,210,5,6},
{164,211,6,9},
{167,210,0,7},
{166,211,5,0},
{169,210,5,0},
{170,211,5,5},
{171,211,5,0},
{170,210,5,9},
{171,210,0,1},
{172,210,3,2},
{173,211,4,9},
{173,211,7,1},
{174,210,3,0},
{174,211,2,1},
{181,211,9,2},
{180,210,2,1},
{180,211,8,3},
{180,210,7,9},
{181,210,0,5},
{183,211,1,8},
{182,211,0,9},
{184,210,0,8},
{185,210,6,3},
{184,210,0,0},
{185,210,9,9},
{187,210,1,7},
{186,210,7,0},
{186,210,9,6},
{186,210,3,4},
{186,210,1,1},
{186,211,7,3},
{189,211,8,3},
{188,210,9,9},
{188,210,5,8},
{189,210,8,6},
{189,210,3,3},
{189,210,8,1},
{188,211,3,9},
{191,211,8,5},
{190,210,1,2},
{190,211,1,1},
{190,210,3,7},
{193,210,9,8},
{193,211,0,3},
{192,211,0,4},
{192,211,5,5},
{195,211,9,5},
{194,210,0,5},
{194,211,1,4},
{196,211,1,4},
{197,211,9,5},
{198,210,2,5},
{198,211,3,1},
{198,211,7,6},
{200,211,1,1},
{200,210,4,9},
{219,211,5,7},
{219,210,0,0},
{221,211,9,8},
{220,211,0,8},
{220,210,2,0},
{220,210,7,0},
{223,211,2,2},
{224,211,6,1},
{224,211,5,4},
{224,211,1,0},
{227,211,3,9},
{228,211,3,3},
{229,211,7,4},
{230,210,1,4},
{231,210,2,8},
{230,210,5,0},
{230,210,4,3},
{233,211,4,1},
{232,210,6,2},
{233,210,5,5},
{234,210,0,4},
{234,210,5,3},
{164,212,9,4},
{164,213,7,8},
{165,213,8,7},
{166,213,5,0},
{167,213,2,7},
{167,212,4,9},
{167,212,8,9},
{168,213,4,2},
{168,212,1,7},
{168,213,8,7},
{170,212,9,6},
{171,212,5,2},
{171,212,7,9},
{172,212,0,6},
{173,213,3,0},
{175,212,9,0},
{175,212,2,0},
{174,212,4,4},
{174,213,5,5},
{176,212,8,0},
{177,212,6,4},
{176,212,1,8},
{176,212,0,5},
{177,213,7,2},
{176,213,2,6},
{179,213,8,2},
{179,212,0,1},
{178,213,9,9},
{179,213,7,9},
{179,212,2,8},
{179,212,8,6},
{178,213,7,3},
{180,213,4,5},
{183,213,7,6},
{183,212,0,8},
{182,212,3,5},
{184,212,4,7},
{184,213,7,2},
{185,213,4,7},
{184,213,8,6},
{185,213,2,3},
{186,213,3,0},
{186,213,4,3},
{186,212,9,5},
{186,212,5,3},
{186,213,8,6},
{189,213,4,3},
{189,212,6,1},
{190,213,0,8},
{190,213,3,5},
{193,212,2,0},
{192,213,2,2},
{193,213,8,8},
{192,212,6,1},
{192,212,0,2},
{195,213,7,9},
{195,213,5,2},
{195,212,6,5},
{194,212,7,0},
{194,212,9,7},
{196,213,1,4},
{196,212,1,9},
{198,212,9,7},
{198,213,6,6},
{199,213,4,8},
{198,213,2,0},
{198,212,1,1},
{201,212,5,6},
{201,213,5,0},
{215,213,0,7},
{215,213,9,9},
{219,213,0,7},
{221,213,0,3},
{221,213,8,5},
{220,212,2,9},
{223,212,1,3},
{223,213,6,0},
{222,212,8,7},
{222,213,8,0},
{222,212,0,9},
{224,212,4,8},
{225,213,3,0},
{227,212,2,8},
{228,213,2,5},
{228,213,8,2},
{229,213,6,3},
{230,212,6,4},
{230,212,2,6},
{230,213,0,4},
{232,213,2,1},
{232,213,8,5},
{233,213,4,8},
{232,212,0,4},
{233,212,2,1},
{234,212,9,6},
{163,214,1,8},
{163,215,2,3},
{163,215,7,2},
{163,215,4,3},
{164,215,8,0},
{164,215,2,4},
{166,214,0,6},
{167,215,9,2},
{167,214,4,8},
{166,215,9,8},
{167,215,9,8},
{167,215,0,3},
{166,215,4,5},
{169,214,2,0},
{169,214,5,5},
{169,215,8,6},
{171,214,7,5},
{171,215,2,6},
{171,215,3,1},
{171,214,9,9},
{172,214,4,3},
{172,214,0,0},
{173,215,2,8},
{172,215,4,5},
{175,215,6,8},
{175,214,6,4},
{175,215,1,2},
{174,214,1,4},
{176,215,6,0},
{177,215,6,6},
{177,214,5,9},
{177,214,6,6},
{176,214,2,7},
{179,214,0,3},
{178,214,4,7},
{178,215,0,3},
{180,214,3,0},
{180,215,8,9},
{181,215,5,8},
{180,215,1,9},
{182,214,2,9},
{183,214,1,2},
{182,214,8,2},
{183,215,3,0},
{183,214,3,5},
{184,215,5,8},
{185,214,8,7},
{186,215,8,8},
{189,215,6,2},
{188,215,9,4},
{189,215,1,1},
{189,214,7,1},
{188,214,8,9},
{189,214,1,2},
{192,214,7,5},
{192,214,2,2},
{192,214,0,3},
{193,214,5,5},
{193,215,3,3},
{192,215,6,3},
{193,215,0,5},
{195,215,9,3},
{194,214,0,8},
{196,215,8,0},
{196,214,1,5},
{197,214,6,4},
{196,214,4,2},
{197,214,1,0},
{199,214,6,9},
{198,215,4,1},
{199,215,0,9},
{200,215,0,4},
{203,215,3,4},
{203,215,1,0},
{202,214,5,3},
{203,214,4,4},
{203,214,1,2},
{204,215,3,9},
{205,215,6,7},
{208,215,3,8},
{211,215,0,0},
{210,215,1,5},
{210,215,7,2},
{211,215,6,7},
{212,214,0,4},
{213,214,0,0},
{214,215,0,5},
{214,214,5,1},
{215,215,5,5},
{215,214,9,3},
{217,215,9,1},
{216,215,1,5},
{216,215,7,1},
{218,214,1,3},
{219,215,3,9},
{219,215,8,8},
{221,214,3,4},
{220,214,9,7},
{220,215,0,2},
{220,214,8,9},
{224,215,6,6},
{224,215,4,2},
{225,214,9,4},
{225,214,5,9},
{227,214,3,3},
{226,215,5,6},
{228,214,0,5},
{229,214,6,9},
{230,215,1,4},
{230,214,9,9},
{233,214,7,0},
{232,215,1,3},
{232,215,5,5},
{234,215,8,3},
{234,215,8,8},
{235,214,0,4},
{234,214,4,6},
{234,214,2,0},
{236,214,6,1},
{236,214,5,5},
{236,215,4,2},
{163,216,7,4},
{164,216,6,1},
{164,216,6,9},
{164,216,2,7},
{167,217,1,2},
{166,216,4,8},
{167,216,5,6},
{169,217,8,5},
{169,216,3,9},
{169,217,0,3},
{168,217,7,9},
{170,216,7,4},
{170,216,0,7},
{171,217,1,3},
{173,216,6,4},
{173,217,5,0},
{172,216,6,7},
{175,216,9,9},
{174,217,9,0},
{175,217,1,5},
{174,217,0,2},
{174,216,1,5},
{177,217,1,0},
{176,216,7,0},
{177,216,4,2},
{178,217,0,3},
{180,217,3,6},
{181,217,5,0},
{180,217,4,2},
{180,216,9,4},
{180,216,1,4},
{183,216,7,5},
{183,216,3,7},
{182,216,5,6},
{184,216,2,1},
{185,216,4,5},
{186,217,8,5},
{187,216,5,2},
{187,216,4,7},
{187,216,0,3},
{187,217,1,1},
{189,217,2,8},
{189,216,1,9},
{188,217,4,4},
{189,216,1,1},
{188,216,3,8},
{188,217,0,1},
{191,217,6,7},
{193,217,6,1},
{192,216,7,0},
{194,216,8,4},
{194,216,1,0},
{195,216,4,1},
{197,216,0,3},
{196,216,0,7},
{197,217,4,3},
{196,217,7,3},
{197,216,8,5},
{198,216,5,2},
{198,217,2,2},
{199,216,2,3},
{199,216,8,0},
{201,216,0,3},
{200,217,2,7},
{202,216,0,9},
{203,216,5,7},
{202,217,9,3},
{204,217,7,3},
{205,217,6,2},
{205,216,5,1},
{206,216,5,7},
{207,217,6,6},
{207,216,1,1},
{206,216,9,8},
{209,217,6,2},
{209,216,0,7},
{209,217,1,7},
{209,217,4,4},
{208,217,7,3},
{211,216,3,9},
{211,216,0,5},
{210,217,0,4},
{211,216,7,5},
{212,216,5,6},
{213,216,0,4},
{213,216,3,1},
{213,216,3,6},
{212,216,9,1},
{217,216,6,6},
{217,217,6,2},
{219,217,1,6},
{218,216,0,7},
{218,217,0,2},
{219,216,7,2},
{223,217,6,2},
{222,217,4,2},
{222,217,5,4},
{223,217,2,5},
{222,217,7,2},
{225,217,4,2},
{225,216,7,5},
{224,216,0,1},
{224,216,1,8},
{224,217,8,4},
{224,217,0,4},
{224,217,4,4},
{226,216,2,1},
{227,216,7,6},
{226,217,0,6},
{227,216,3,1},
{229,217,8,8},
{229,217,7,0},
{229,216,6,6},
{228,217,3,2},
{228,217,4,8},
{230,216,0,1},
{231,216,5,1},
{233,216,7,7},
{233,217,1,2},
{233,216,1,5},
{233,216,5,4},
{235,216,4,4},
{236,216,4,2},
{237,216,4,5},
{236,216,2,6},
{168,218,4,8},
{169,218,6,7},
{168,219,8,9},
{170,219,1,0},
{171,219,5,7},
{171,219,9,6},
{171,219,6,0},
{171,219,0,6},
{172,219,2,8},
{176,219,2,8},
{176,218,1,1},
{177,219,6,6},
{176,219,7,8},
{176,219,7,1},
{176,219,2,1},
{179,218,0,1},
{178,218,6,2},
{180,219,7,9},
{182,219,1,8},
{183,218,3,4},
{183,218,6,4},
{183,218,6,8},
{185,218,0,6},
{185,219,3,6},
{185,219,8,8},
{184,218,4,9},
{185,219,2,0},
{184,219,7,3},
{184,219,3,1},
{187,218,3,0},
{187,218,7,5},
{186,219,0,0},
{186,219,1,5},
{188,218,2,6},
{189,218,6,2},
{189,219,3,4},
{188,218,6,3},
{188,219,7,5},
{190,218,4,2},
{191,218,0,0},
{190,218,6,8},
{190,219,7,9},
{193,219,2,5},
{193,219,8,7},
{194,218,7,8},
{195,219,6,8},
{195,219,0,2},
{194,218,0,9},
{195,219,5,2},
{197,219,5,5},
{197,218,1,5},
{199,219,6,9},
{198,219,8,8},
{199,218,8,0},
{198,219,2,6},
{198,218,2,3},
{200,218,6,8},
{201,219,6,1},
{201,219,9,3},
{200,218,5,3},
{205,218,1,4},
{204,218,4,4},
{204,218,7,7},
{206,219,2,9},
{208,219,6,9},
{209,219,4,9},
{211,218,9,7},
{211,219,8,8},
{213,218,1,8},
{212,218,8,5},
{212,218,8,9},
{213,218,3,2},
{215,219,7,0},
{214,219,9,2},
{214,219,7,7},
{215,219,4,6},
{215,219,3,5},
{217,219,6,2},
{217,219,9,7},
{216,218,7,0},
{216,218,2,0},
{216,219,4,5},
{217,219,0,3},
{219,218,8,4},
{218,218,5,3},
{219,218,0,7},
{219,218,5,6},
{218,219,4,8},
{227,219,9,2},
{227,219,8,5},
{228,218,9,1},
{228,218,8,8},
{229,219,6,0},
{228,218,2,8},
{231,219,2,6},
{230,219,3,3},
{230,218,0,3},
{232,218,2,5},
{233,219,9,7},
{234,219,8,8},
{234,218,7,1},
{169,220,8,7},
{169,220,1,6},
{171,221,8,8},
{170,221,1,3},
{171,220,1,5},
{173,221,5,1},
{173,220,5,2},
{174,220,3,5},
{175,221,9,4},
{176,220,1,3},
{179,220,9,5},
{178,221,4,6},
{179,221,1,3},
{179,221,2,9},
{180,220,7,3},
{181,220,9,2},
{181,221,2,7},
{182,220,5,7},
{182,220,5,2},
{187,220,5,5},
{186,220,8,8},
{186,220,3,3},
{188,221,4,0},
{189,221,4,3},
{189,221,5,9},
{188,221,5,9},
{190,221,8,1},
{191,220,5,1},
{190,221,2,7},
{190,221,3,1},
{191,221,3,9},
{191,221,7,6},
{193,220,8,2},
{192,220,6,1},
{193,220,4,1},
{192,221,1,8},
{192,221,1,5},
{195,221,2,9},
{194,220,9,1},
{194,220,5,1},
{195,220,7,0},
{196,221,3,9},
{196,221,8,8},
{199,221,6,1},
{198,220,6,3},
{198,220,3,0},
{201,221,1,2},
{200,221,8,9},
{200,221,1,3},
{200,220,2,2},
{203,220,0,7},
{203,220,7,9},
{205,220,7,3},
{205,220,1,5},
{205,221,5,7},
{206,220,2,4},
{207,220,3,0},
{207,220,2,7},
{206,220,2,9},
{209,221,9,8},
{209,221,8,2},
{208,221,8,7},
{209,220,8,8},
{209,220,4,4},
{209,221,1,2},
{209,221,5,7},
{209,220,0,7},
{210,220,0,2},
{212,220,6,1},
{212,220,1,2},
{213,220,9,7},
{212,221,9,3},
{213,220,2,8},
{213,221,9,2},
{215,220,3,9},
{215,220,6,7},
{215,221,0,6},
{215,221,9,8},
{216,221,8,8},
{217,221,1,9},
{216,221,3,6},
{219,221,1,2},
{219,220,3,0},
{218,220,9,8},
{219,220,9,1},
{219,220,7,3},
{219,221,0,4},
{218,220,7,4},
{220,220,1,2},
{230,221,6,2},
{232,220,2,8},
{232,221,6,5},
{233,220,4,0},
{232,221,8,9},
{234,220,6,2},
{234,220,1,2},
{171,223,5,3},
{171,222,7,9},
{172,222,9,5},
{172,223,5,1},
{172,222,3,9},
{175,223,3,3},
{174,222,6,2},
{174,223,0,1},
{174,222,6,9},
{176,223,8,8},
{177,223,8,1},
{178,223,5,6},
{181,223,2,8},
{180,222,9,9},
{180,223,2,7},
{181,223,9,4},
{181,223,5,2},
{180,222,9,2},
{183,222,7,1},
{183,223,3,1},
{183,223,8,2},
{182,222,0,7},
{185,222,0,8},
{184,222,0,8},
{184,222,7,7},
{184,223,7,2},
{186,222,9,0},
{187,222,3,2},
{188,222,1,2},
{190,222,3,5},
{190,222,1,1},
{191,222,8,2},
{192,222,5,1},
{195,222,4,5},
{194,222,8,0},
{194,223,7,1},
{197,222,8,3},
{196,223,0,8},
{196,222,8,2},
{198,223,9,8},
{199,223,3,6},
{200,223,5,8},
{200,222,5,7},
{203,222,7,6},
{203,222,0,8},
{205,223,0,7},
{205,222,6,7},
{204,223,9,3},
{205,223,5,3},
{204,222,9,0},
{206,223,0,3},
{207,222,8,9},
{207,223,2,6},
{206,223,8,2},
{209,222,1,1},
{208,223,3,1},
{208,223,1,6},
{215,222,7,1},
{216,222,2,0},
{230,223,6,6},
{230,222,1,5},
{231,222,6,4},
{230,223,9,8},
{230,222,4,4},
{233,223,6,8},
{232,223,9,3},
{232,222,2,2},
{234,223,1,6},
{234,223,7,9},
{234,223,5,8},
{173,225,6,9},
{173,224,6,9},
{175,224,5,1},
{174,224,9,8},
{174,225,9,6},
{178,224,4,6},
{178,224,1,9},
{178,225,6,9},
{181,225,3,5},
{180,225,4,4},
{183,225,7,7},
{185,224,8,7},
{184,225,6,3},
{185,225,5,6},
{185,224,4,8},
{187,225,0,3},
{187,224,4,6},
{187,225,6,3},
{188,225,0,0},
{189,225,3,3},
{190,225,5,8},
{190,225,0,2},
{193,224,1,8},
{193,225,1,3},
{192,224,4,7},
{194,224,8,6},
{194,224,1,0},
{195,225,7,9},
{195,224,5,5},
{195,224,3,0},
{195,224,7,2},
{196,225,7,2},
{197,225,6,7},
{196,224,6,3},
{196,225,4,5},
{199,225,7,4},
{200,224,0,6},
{201,224,7,3},
{201,225,5,8},
{202,224,5,9},
{203,224,6,0},
{203,224,8,4},
{204,224,7,0},
{230,224,6,1},
{231,225,6,9},
{231,225,7,6},
{231,224,3,0},
{232,225,2,5},
{233,225,8,4},
{232,225,6,7},
{232,224,1,1},
{232,224,7,2},
{232,224,5,5},
{235,225,7,8},
{234,225,0,8},
{235,224,0,3},
{234,224,1,0},
{236,225,3,1},
{173,226,1,5},
{173,226,8,2},
{173,227,4,3},
{172,226,9,2},
{173,227,6,4},
{175,226,4,4},
{175,227,7,7},
{174,227,5,7},
{174,227,9,4},
{174,227,3,2},
{176,227,1,3},
{177,226,0,4},
{178,226,1,7},
{178,227,5,3},
{179,227,2,7},
{179,227,2,0},
{178,227,3,6},
{180,227,0,2},
{181,226,3,0},
{180,226,5,8},
{180,227,8,5},
{180,227,1,7},
{181,227,9,5},
{182,226,1,7},
{183,227,7,5},
{183,227,0,2},
{182,227,8,6},
{184,227,8,5},
{184,227,3,1},
{185,226,7,7},
{186,226,2,9},
{187,226,9,8},
{188,227,0,2},
{191,227,3,0},
{191,227,5,8},
{190,226,3,6},
{190,227,6,4},
{191,227,1,6},
{192,227,2,8},
{192,227,6,0},
{193,226,5,4},
{193,227,9,2},
{192,226,8,6},
{193,227,5,1},
{195,226,8,4},
{195,227,5,3},
{194,227,9,4},
{197,226,9,1},
{196,227,1,0},
{199,227,7,0},
{198,226,8,8},
{199,227,6,8},
{199,227,3,5},
{199,226,8,1},
{199,226,0,0},
{200,226,7,4},
{202,226,5,0},
{231,227,8,8},
{231,226,9,2},
{231,226,8,3},
{232,227,1,9},
{233,226,4,0},
{232,226,6,1},
{235,226,4,8},
{235,227,3,4},
{234,226,4,0},
{237,227,1,1},
{236,226,3,0},
{236,227,0,7},
{237,226,1,8},
{238,227,2,9},
{188,229,8,5},
{188,228,2,7},
{189,229,5,4},
{190,228,0,0},
{190,229,3,9},
{192,228,5,9},
{195,228,9,0},
{195,229,0,7},
{195,228,8,6},
{194,228,7,2},
{196,228,7,1},
{196,228,3,4},
{231,229,1,1},
{230,228,9,2},
{231,228,5,7},
{230,228,5,1},
{230,228,6,6},
{230,228,4,3},
{230,228,7,0},
{230,229,0,8},
{230,229,2,6},
{233,229,9,8},
{234,228,5,0},
{235,229,2,9},
{234,228,2,2},
{234,228,7,2},
{236,229,7,8},
{237,228,0,5},
{237,228,8,8},
{236,228,0,4},
{236,228,1,1},
{239,228,5,8},
{238,228,8,6},
{238,229,5,6},
{240,228,2,9},
{240,228,5,5},
{240,229,4,4},
{241,229,2,9},
{189,230,7,2},
{191,231,5,2},
{191,231,9,7},
{190,231,8,3},
{190,231,9,7},
{192,231,9,0},
{196,230,6,7},
{229,230,7,9},
{229,230,8,5},
{229,230,3,3},
{229,230,5,7},
{230,231,3,9},
{230,230,8,6},
{230,231,9,3},
{231,230,4,1},
{231,230,2,3},
{231,231,6,3},
{230,231,8,7},
{230,231,0,9},
{233,230,1,4},
{233,230,5,9},
{233,230,9,9},
{233,231,7,2},
{232,230,2,0},
{235,230,7,8},
{234,230,6,8},
{234,230,1,5},
{234,231,2,0},
{237,231,5,4},
{236,230,7,2},
{236,230,8,8},
{236,231,1,2},
{239,230,9,2},
{238,231,6,1},
{238,231,0,7},
{238,230,3,4},
{240,231,2,5},
{240,231,4,4},
{241,230,2,7},
{241,230,0,2},
{241,230,3,1},
{241,230,0,0},
{239,232,4,9},
{238,232,6,1},
{240,233,2,0},
{241,232,0,2},
{241,233,0,0},
{242,233,2,0},
{242,233,3,9},
{242,232,6,6},
{242,232,4,9},
{241,234,0,3},
{240,234,3,8},
{240,235,3,1},
{243,234,1,8},
{243,235,8,4},
{242,234,7,1},
{241,236,7,3},
{246,236,7,5},
{247,236,7,9},
{247,237,5,4},
}
IDMonter = {11,12,33,34}
for i=1, getn(POSMONTER) do
nRandom = random(1,4)
nLevelNpc = random(10,20)
if nRandom == 1 then
szScript = "\\script\\create_npc\\city\\bienkinh\\monter\\heor ung.lua"
elseif nRandom == 2 then
szScript = "\\script\\create_npc\\city\\bienkinh\\monter\\nhim .lua"
elseif nRandom == 3 then
szScript = "\\script\\create_npc\\city\\bienkinh\\monter\\hoan hung.lua"
else
szScript = "\\script\\create_npc\\city\\bienkinh\\monter\\linh mieu.lua"
end
AddNPCEx(IDMonter[nRandom],nLevelNpc,IDMapBienKinh,POSMONTER[i][1],POSMONTER[i][2],POSMONTER[i][3],POSMONTER[i][4],szScript,5)
end
print("Khoi Tao Quai Bien Kinh Thanh Cong")
end

Có thể viết script lấy tọa độ hiện tải của nhân vật đang đứng ghi ra file theo dạng array, rồi từ tọa độ lấy dc để add quái cho map đó. Trước mình dùng cách này, viết script vào bình máu hay gì đó, cứ muốn add con quái chỗ nào, chạy tới đó nhấn số 1 thế là nó tự ghi ra file rồi chỉ việc viết cript add quái với tọa độ vừa lấy dc. rất chuẩn.

hoivegame
05-03-18, 09:06 AM
À, thì bạn chỉ cần bỏ đường dẫn script vào table là được. Ví dụ nhé


tb_coords =
{
{53,1,2,"\\script\\npc\\first_test.lua"},
{53,3,4,"\\script\\npc\\second_test.lua"},

}
local map,nx, ny,npcscript = SubWorldID2Idx(tb_coords[v][1]) ,tb_coords[v][2] * 32, tb_coords[v][3] * 32, tb_coords[v][4];


sau đó dùng hàm SetNpcScript(nNpcIndex,npcscript) là được:)>-

yeuVLTK
05-03-18, 01:21 PM
À, thì bạn chỉ cần bỏ đường dẫn script vào table là được. Ví dụ nhé


tb_coords =
{
{53,1,2,"\\script\\npc\\first_test.lua"},
{53,3,4,"\\script\\npc\\second_test.lua"},

}
local map,nx, ny,npcscript = SubWorldID2Idx(tb_coords[v][1]) ,tb_coords[v][2] * 32, tb_coords[v][3] * 32, tb_coords[v][4];


sau đó dùng hàm SetNpcScript(nNpcIndex,npcscript) là được:)>-

vậy là NPC sẽ cố định script tại tọa độ đó ?
Hay à mình có thể viết một function, một mảng random "script" thứ 2 giống như Random tọa độ ở trên được ko nhỉ?

HoangTVT
05-03-18, 02:09 PM
cuối cùng bạn muốn làm cái gì, bạn nói ra luôn mình có thể đơn giản cho bạn, cứ từng bước rất tốn thời gian của bạn và mọi ng

yeuVLTK
05-03-18, 06:25 PM
cuối cùng bạn muốn làm cái gì, bạn nói ra luôn mình có thể đơn giản cho bạn, cứ từng bước rất tốn thời gian của bạn và mọi ng

xin lỗi bạn và mọi người vì mình không rõ ràng!
Ý mình là khi trên đường bất ngờ gặp Npc thì nhận nhiệm vụ yêu cầu ngẫu nhiên (đã được giúp)
Và mỗi Npc đó chỉ cho một Nhân vật nhận nv 1 lần, nếu Nhân vật thứ hai (mình chơi nhìu phái) có nhận cũng không được (để tránh bản thân ko kiềm chế được gian lận).
Nếu nhân vật thứ 2 muốn nhận Nhiệm vụ tương tự bắt buộc phải tìm Npc khác. Và nhân vật thứ nhất cũng phải tìm Npc khác sau khi hoàn thành. Vậy á :D

yeuVLTK
14-03-18, 12:47 PM
Các bác xem giúp mình bị lỗi gì mà hôm trước Script test dùng vẫn bình thường nên mình copy lưu lại.
Nay mang ra dùng thì khi Load script (item để test script) thì sever báo có lỗi ở Line 52- tức là dòng mình bôi màu đỏ!



tb_coords = {
{53,1628,3181},
{53,1659,3189},
{53,1681,3173},
{53,1683,3184},
{53,1671,3144},
{53,1652,3128},
{53,1639,3122},
{53,1621,3114},
{53,1606,3125},
{53,1575,3151},
{53,1560,3151},
{53,1595,3174},
{53,1592,3217},
{53,1571,3201},
{53,1558,3186},
{53,1558,3226},
{53,1575,3248},
{53,1604,3247},
{53,1634,3244}


}



name = {
"\\script\\truyen\\cha.lua",
"\\script\\truyen\\me.lua",
"\\script\\truyen\\ongnoi.lua",
"\\script\\truyen\\myphuong.lua",
"\\script\\truyen\\bangoai.lua",


}





function main()
dofile("script/t.lua");
ClearMapNpcWithName(53,"YÕt Kiªu")
local tbCircle = {}
local nCountNext = 0;
--bat dau lay random 2 toa ko trung nhau
while (nCountNext < 10) do -- so luong toa do muon add
local rate_random = random(getn(tb_coords))
local _Flag = 1
for i=1,getn(tbCircle) do
if (tbCircle[i] == rate_random){
_Flag = 0
break;
}
end
if _Flag == 1 then
tbCircle[getn(tbCircle)+1] = rate_random
nCountNext = nCountNext + 1
end
end
end
--add npc da lay 2 toa do random o tren
for i, v in tbCircle do
--i: gia tri 1 duoc set mac dinh o tren
--v: index cua tb3Npc
local i
local map,nx, ny = SubWorldID2Idx(tb_coords[i][1]) ,tb_coords[i][2] * 32, tb_coords[i][3] * 32;
than = AddNpcEx(1779, 100, random(0,4), SubWorldID2Idx(53), nx, ny, 0, "YÕt Kiªu", 0);
SetNpcScript(than, random(getn(name)));
end
return 1
end

DNTmaster
14-03-18, 05:15 PM
tb_coords = {
{53,1628,3181},
{53,1659,3189},
{53,1681,3173},
{53,1683,3184},
{53,1671,3144},
{53,1652,3128},
{53,1639,3122},
{53,1621,3114},
{53,1606,3125},
{53,1575,3151},
{53,1560,3151},
{53,1595,3174},
{53,1592,3217},
{53,1571,3201},
{53,1558,3186},
{53,1558,3226},
{53,1575,3248},
{53,1604,3247},
{53,1634,3244}


}



name = {
"\\script\\truyen\\cha.lua",
"\\script\\truyen\\me.lua",
"\\script\\truyen\\ongnoi.lua",
"\\script\\truyen\\myphuong.lua",
"\\script\\truyen\\bangoai.lua",


}





function main()
dofile("script/t.lua");
ClearMapNpcWithName(53,"YÕt Kiªu")
local tbCircle = {} --cái này khởi tạo ko có dữ liệu thì xuống dưới làm gì có dữ liệu mà chạy để lấy tbCircle[i]
local nCountNext = 0;
--bat dau lay random 2 toa ko trung nhau
while (nCountNext < 10) do -- so luong toa do muon add
local rate_random = random(getn(tb_coords))
local _Flag = 1
for i=1,getn(tbCircle) do -- Cái này cho vào 1 if kiểm tra table tbCircle rỗng thì bỏ qua có dữ liệu thì mới chạy. Theo cả code thì tới đây nó là for 1,0 thì ko lỗi mới lạ
if (tbCircle[i] == rate_random){
_Flag = 0
break;
}
end
if _Flag == 1 then
tbCircle[getn(tbCircle)+1] = rate_random
nCountNext = nCountNext + 1
end
end
end
--add npc da lay 2 toa do random o tren
for i, v in tbCircle do
--i: gia tri 1 duoc set mac dinh o tren
--v: index cua tb3Npc
local i
local map,nx, ny = SubWorldID2Idx(tb_coords[i][1]) ,tb_coords[i][2] * 32, tb_coords[i][3] * 32;
than = AddNpcEx(1779, 100, random(0,4), SubWorldID2Idx(53), nx, ny, 0, "YÕt Kiªu", 0);
SetNpcScript(than, random(getn(name)));
end
return 1
end

HoangTVT
14-03-18, 05:23 PM
Thì bởi vì rỗng nên lần lặp đầu tiên sẽ k chạy vòng lặp đó mà chỉ gán thôi, lần 2 trở lên mới chạy trong đó mà. Vấn đề ở đây bạn post ảnh gsv báo lỗi vào code thay vì bôi đỏ code nhé

trungkhuyen
20-03-18, 02:07 PM
tb_coords = {
{53,1628,3181},
{53,1659,3189},
{53,1681,3173},
{53,1683,3184},
{53,1671,3144},
{53,1652,3128},
{53,1639,3122},
{53,1621,3114},
{53,1606,3125},
{53,1575,3151},
{53,1560,3151},
{53,1595,3174},
{53,1592,3217},
{53,1571,3201},
{53,1558,3186},
{53,1558,3226},
{53,1575,3248},
{53,1604,3247},
{53,1634,3244}


}



name = {
"\\script\\truyen\\cha.lua",
"\\script\\truyen\\me.lua",
"\\script\\truyen\\ongnoi.lua",
"\\script\\truyen\\myphuong.lua",
"\\script\\truyen\\bangoai.lua",


}





function main()
dofile("script/t.lua");
ClearMapNpcWithName(53,"YÕt Kiªu")
local tbCircle = {} --cái này khởi tạo ko có dữ liệu thì xuống dưới làm gì có dữ liệu mà chạy để lấy tbCircle[i]
local nCountNext = 0;
--bat dau lay random 2 toa ko trung nhau
while (nCountNext < 10) do -- so luong toa do muon add
local rate_random = random(getn(tb_coords))
local _Flag = 1
for i=1,getn(tbCircle) do -- Cái này cho vào 1 if kiểm tra table tbCircle rỗng thì bỏ qua có dữ liệu thì mới chạy. Theo cả code thì tới đây nó là for 1,0 thì ko lỗi mới lạ
if (tbCircle[i] == rate_random){
_Flag = 0
break;
}
end
if _Flag == 1 then
tbCircle[getn(tbCircle)+1] = rate_random
nCountNext = nCountNext + 1
end
end
end
--add npc da lay 2 toa do random o tren
for i, v in tbCircle do
--i: gia tri 1 duoc set mac dinh o tren
--v: index cua tb3Npc
local i
local map,nx, ny = SubWorldID2Idx(tb_coords[i][1]) ,tb_coords[i][2] * 32, tb_coords[i][3] * 32;
than = AddNpcEx(1779, 100, random(0,4), SubWorldID2Idx(53), nx, ny, 0, "YÕt Kiªu", 0);
SetNpcScript(than, random(getn(name)));
end
return 1
end
Mình cũng muốn biết cách add random không trùng kiểu này, vậy phải kiểm tra rỗng thế nào bạn?