yeuVLTK
04-04-18, 02:09 AM
if GetTask(2021) == 1 then
npc = "Thñy Thiªn Qu©n"
map = "Hoa S¬n" --2
elseif GetTask(2021) == 2 then
npc = "L©m V¸nh Yªn"
map = "B¹ch V©n §éng"--22
elseif GetTask( 2021 ) == 3 then
npc = "Tr¬ng D¹ng"
map = "Thanh Thµnh S¬n"--21
elseif GetTask(2021 ) == 4 then
npc = "Ngäc Hoa"
map = "Kinh Hoµng §éng"--5
elseif GetTask( 2021 ) == 5 then
npc ="L¨ng Siªu"
map = "Hìng Thñy §éng"--24
elseif GetTask( 2021 ) == 6 then
npc ="Hiªn Viªn Ngng"
map = "KiÕm C¸c T©y Nam"--19
elseif GetTask(2021 ) == 7 then
npc ="TrÇn T©m"
map = "Nh¹n Th¹ch §éng"--10
elseif GetTask( 2021) == 8 then
npc ="Lu Gi¸c"
map = "Kim Quang §éng"--4
elseif GetTask( 2021 ) == 9 then
npc ="§êng ThÇn DuÖ"
map = "KiÕm C¸c T©y B¾c"--3
elseif GetTask( 2021 ) == 10 then
npc ="Bïi Tranh"
map = "ThiÕt Th¸p TÇng 3"--40
elseif GetTask( 2021 ) == 11 then
npc ="TÞch Si ThÇn"
map = "Phôc Ngu S¬n T©y"--41
elseif GetTask( 2021 ) == 12 then
npc ="Cè DuËt Hµnh"
map = "Thiªn T©m §éng"--42
elseif GetTask( 2021) == 13 then
npc ="Cè TiÓu B¾c"
map = "KiÕm C¸c Trung Nguyªn"--43
elseif GetTask( 2021 ) == 14 then
npc ="Xi Vu"
map = "§µo Hoa Nguyªn" -- 55
elseif GetTask( 2021 ) == 15 then
npc ="L©m D¬ng"
map = "Vò L¨ng S¬n"--70
elseif GetTask( 2021 ) == 16 then
npc ="TÒ Minh"
map = "B¹ch Thñy §éng"--71
elseif GetTask( 2021 ) == 17 then
npc ="D MÆc"
map = "ThÇn Tiªn §éng" -- 23
elseif GetTask( 2021 ) == 18 then
npc ="Ph¬ng D Kh¶"
map = "Miªu LÜnh"--74
elseif GetTask( 2021 ) == 19 then
npc ="NhuËn Ngäc"
map = "Kháa Lang §éng"--75
elseif GetTask( 2021 ) == 20 then
npc ="Tèng Tö Ng«n"
map = "Phôc Ngu S¬n §«ng"--90
elseif GetTask( 2021 ) == 21 then
npc ="L©m Kh¶i ChÝnh"
map = "Mª Cung Kª Qu¸n §éng"--91
elseif GetTask( 2021 ) == 22 then
npc ="Hµn TiÒm"
map = "Thôc C¬ng S¬n"--92
elseif GetTask( 2021 ) == 23 then
npc ="La §«ng Phong"
map = "Linh Cèc §éng"--94
elseif GetTask( 2021 ) == 24 then
npc ="Minh NhÞ"
map = "Têng V©n §éng tÇng 2" --117
elseif GetTask( 2021 ) == 25 then
npc ="Ho¾c TriÓn B¹ch"
map = "Hoµng Hµ Nguyªn §Çu"--122
elseif GetTask( 2021 ) == 26 then
npc ="T©n Khoa"
map = "Kho¸i Ho¹t L©m"--136
elseif GetTask( 2021 ) == 27 then
npc ="M¹c ThiÖu Khiªm"
map = "Dîc V¬ng Cèc"--140
elseif GetTask( 2021 ) == 28 then
npc ="Lý Thõa Ng©n"
map = "Thiªn TÇm Th¸p 2"--165
elseif GetTask( 2021 ) == 29 then
npc ="Lôc D÷ Giang"
map = "Thæ PhØ §éng"--170
elseif GetTask( 2021 ) == 30 then
npc ="Long Phi Ly"
map = "§iÓm Th¬ng §éng tÇng 3" --173
elseif GetTask( 2021 ) == 31 then
npc ="Së Ly"
map = "TÇn l¨ng tÇng 2" -- 206
elseif GetTask( 2021 ) == 40 then
npc = "T KhÊu Tu©n"
map ="Têng V©n §éng tÇng 5"--120
elseif GetTask( 2021 ) == 41 then
npc = "Ho¾c Khø BÖnh"
map ="Dîc V¬ng §éng tÇng 4"--144
elseif GetTask( 2021 ) == 42 then
npc = "§«ng Hoa"
map ="Lu Tiªn §éng tÇng 5" --129
elseif GetTask( 2021 ) == 43 then
npc = "D¹ Thiªn L¨ng"
map ="Long Cung §éng"--180
elseif GetTask(2021 ) == 44 then
npc = "TÒ MÆc"
map ="D¬ng Gi¸c §éng"--196
elseif GetTask( 2021 ) == 45 then
npc = "Vò V¨n DuÖ"
map ="Thanh Khª §éng"--198
elseif GetTask( 2021 ) == 46 then
npc = "Cè D¹ B¹ch"
map ="Vò L¨ng §éng"--199
elseif GetTask(2021 ) == 47 then
npc = "Ngôy Th DiÖp"
map ="Cæ D¬ng §éng"--200
elseif GetTask( 2021 ) == 48 then
npc = "VÖ Khanh"
map ="B¨ng Hµ §éng"--201
elseif GetTask(2021 ) == 49 then
npc = "Lý Méc Ng"
map ="Phï Dung §éng" -- 202
elseif GetTask( 2021 ) == 50 then
npc = "Ch¬ng ViÔn"
map ="V« Danh §éng"--203
elseif GetTask(2021 ) == 51 then
npc = "TÇn Tèng"
map ="Phi Thiªn §éng"--204
elseif GetTask( 2021 ) == 52 then
npc = "T«ng ChÝnh V« ¦u"
map ="D¬ng Trung §éng"--205
elseif GetTask( 2021 ) == 53 then
npc = "TÇn M¹c"
map ="Sa M¹c §Þa BiÓu"--224
elseif GetTask( 2021 ) == 54 then
npc = "Chiªm Nam HuyÒn"
map ="Sa M¹c 1"--225
elseif GetTask( 2021 ) == 55 then
npc = "Trang NghÞ"
map ="Sa M¹c 2"--226
elseif GetTask( 2021 ) == 56 then
npc = "T©n Tö"
map ="Sa M¹c 3"--227
elseif GetTask( 2021 ) == 57 then
npc = "H»ng Gia"
map ="L©m Du Quan"--319
elseif GetTask( 2021 ) == 58 then
npc = "Hiªn Viªn TriÖt"
map ="Ch©n Nói Trêng B¹ch"--320
elseif GetTask( 2021 ) == 59 then
npc = "H¹ Méc"
map ="Trêng B¹ch S¬n Nam"--321
elseif GetTask( 2021 ) == 60 then
npc = "Hoµng Th¸i Cùc"
map ="Trêng B¹ch S¬n B¾c"--322
elseif GetTask(2021 ) == 61 then
npc = "Ninh DÞch"
map ="Thiªn Long Tù"--332
elseif GetTask( 2021 ) == 62 then
npc = "L©m DËt Chu"
map ="Phong L¨ng §é"--336
elseif GetTask( 2021 ) == 63 then
npc = "Høa ChÝ Qu©n"
map ="M¹c Cao QuËt"--340
elseif GetTask( 2021 ) == 64 then
npc = "TrÇn HiÕu ChÝnh"
map ="Trêng Giang Nguyªn §Çu"--9
elseif GetTask( 2021 ) == 65 then
npc = "D¹ C¶nh Lan"
map ="§¸y §éng §×nh Hå"--67
elseif GetTask( 2021 ) == 66 then
npc = "H¹ Lan Du"
map ="Miªu LÜnh"--74
elseif GetTask( 2021 ) == 67 then
npc = "Phong §»ng"
map ="ThiÕu L©m ph¸i"--103
elseif GetTask( 2021 ) == 68 then
npc = "Ch©u Sïng Quang"
map ="Vâ §ang Ph¸i"--81
elseif GetTask( 2021 ) == 69 then
npc = "Qu¸ch KÝnh Minh"
map ="§êng M«n ph¸i"--25
elseif GetTask( 2021 ) == 70 then
npc = "Së Phi Hoan"
map ="Ngò §éc gi¸o"--183
end
gia = 500 * GetTask(2022)
function main()
dofile("script/truyen/nv_truyna/bodau.lua");
if GetTask(2021) > 0 and GetTask(2038) == 0 then
Say("<color=fire>Bæ §Çu<color>: Ng¬i ®· xÐ lÖnh truy n· <color=red>"..npc.."<color> víi tiÒn treo thëng lµ <color=yellow>"..gia.." lîng<color>, ng¬i ®ång ý chø? ", 4,
"Ta muèn gÊp rìi/tragia1",
"Ta muèn gÊp ®«i/tragia2",
"Ta muèn gÊp ba/tragia3",
"Ta chÊp nhËn/ok")
elseif GetTask(2038) > 0 then
Talk(15,"add_quai","<color=fire>Bæ §Çu<color>: MËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>, ng¬i ®· cã th«ng tin råi sao kh«ng mau ®i ®i?!")
else
Talk(15,"","<color=fire>Bæ §Çu<color>: NÕu nhµ ng¬i ®¹t ®Õn cÊp ®é 50 cã thÓ xÐ c¸c lÖnh Truy n· ë Th«n trÊn. §¹t ®Õn cÊp ®é 90 cã thÓ t×m B¶ng c¸o thÞ ë 7 thµnh thÞ ®Ó nhËn nhiÖm vô Truy n·!")
end
end
function tragia1()
local ran = random (1,10)
if ran > 7 then
Talk(15,"nv1","<color=fire>Bæ §Çu<color>: Gi¸ treo thëng ®· ghi râ rµng lµ bao nhiªu ®ã, ng¬i kh«ng thÓ ra gi¸ kh¸c!","<color=green>"..GetName()..":<color> Th«i ®îc råi, cã bao nhiªu nhËn bÊy nhiªu..","<color=fire>Bæ §Çu<color>: §îc! mËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
else
Talk(15,"nv2","<color=fire>Bæ §Çu<color>: ...Th«i ®îc! thªm chót ®Ønh kh«ng sao, chñ yÕu ng¬i ph¶i lµm cho ®îc viÖc!","<color=fire>Bæ §Çu<color>: MËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
end
end
function tragia2()
local ran = random (1,10)
if ran > 5 then
Talk(15,"nv1","<color=fire>Bæ §Çu<color>: Gi¸ treo thëng ®· ghi râ rµng lµ bao nhiªu ®ã, ng¬i kh«ng thÓ ra gi¸ kh¸c!","<color=green>"..GetName()..":<color> Th«i ®îc råi, cã bao nhiªu nhËn bÊy nhiªu..","<color=fire>Bæ §Çu<color>: §îc! mËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
else
Talk(15,"nv3","<color=fire>Bæ §Çu<color>: Ng¬i còng biÕt tr¶ gi¸ qu¸ ®ã chø...ta ®ång ý!"," <color=fire>Bæ §Çu<color>: MËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
end
end
function tragia3()
local ran = random (1,10)
if ran > 3 then
Talk(15,"nv1","<color=fire>Bæ §Çu<color>: Gi¸ treo thëng ®· ghi râ rµng lµ bao nhiªu ®ã, ng¬i kh«ng thÓ ra gi¸ kh¸c!","<color=green>"..GetName()..":<color> Th«i ®îc råi, cã bao nhiªu nhËn bÊy nhiªu..","<color=fire>Bæ §Çu<color>: §îc! mËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
else
Talk(15,"nv4","<color=fire>Bæ §Çu<color>: C¸i g×...<color=yellow>"..gia *3 .." lîng<color>!!!","<color=green>"..GetName()..":<color> Ta còng ®ang kÑt ®ang cÇn tiÒn!","<color=fire>Bæ §Çu<color>: §Ó ta coi...tªn téi ph¹m nµy còng rÊt nguy hiÓm..®îc råi! V× sù an toµn cña b¸ t¸nh ta sÏ lÊy tiÒn tói thªm vµo cho ng¬i","<color=fire>Bæ §Çu<color>: MËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
end
end
function ok()
Talk(15,"nv1","<color=fire>Bæ §Çu<color>: Tèt! mËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
end
function nv1()
SetTask(2038, 2)
add_quai()
AddNote("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
Msg2Player("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
end
function nv2()
SetTask(2038, 3)
add_quai()
AddNote("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
Msg2Player("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
end
function nv3()
SetTask(2038, 4)
add_quai()
AddNote("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
Msg2Player("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
end
function nv4()
SetTask(2038, 5)
add_quai()
AddNote("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
Msg2Player("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
end
toa_do = {
{20,3563,6093},
{20,3539,6079},
{20,3548,6089},
{20,3458,5925},
{20,3465,6017},
}
function add_quai()
if GetTask(2021) == 1 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName(2, "Thñy Thiªn Qu©n")
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Thñy Thiªn Qu©n", 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai10.lua");
elseif GetTask(2021) == 2 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 22 , "L©m V¸nh Yªn" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "L©m V¸nh Yªn" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai11.lua");
elseif GetTask(2021) == 3 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 21 , "Tr¬ng D¹ng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Tr¬ng D¹ng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai12.lua");
elseif GetTask(2021) == 4 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 5 , "Ngäc Hoa" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ngäc Hoa" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai13.lua");
elseif GetTask(2021) == 5 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 24 , "L¨ng Siªu" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "L¨ng Siªu" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai14.lua");
elseif GetTask(2021) == 6 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 19 , "Hiªn Viªn Ngng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Hiªn Viªn Ngng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai15.lua");
elseif GetTask(2021) == 7 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 10 , "TrÇn T©m" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TrÇn T©m" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai16.lua");
elseif GetTask(2021) == 8 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 4 ,"Lu Gi¸c" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Lu Gi¸c" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai17.lua");
elseif GetTask(2021) == 9 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 3 , "§êng ThÇn DuÖ" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "§êng ThÇn DuÖ" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai18.lua");
elseif GetTask(2021) == 10 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 40 , "Bïi Tranh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Bïi Tranh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai19.lua");
elseif GetTask(2021) == 11 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 41 , "TÞch Si ThÇn" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÞch Si ThÇn" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai20.lua");
elseif GetTask(2021) == 12 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 42 , "Cè DuËt Hµnh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Cè DuËt Hµnh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai21.lua");
elseif GetTask(2021) == 13 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 43 , "Cè TiÓu B¾c" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Cè TiÓu B¾c" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai22.lua");
elseif GetTask(2021) == 14 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 55 , "Xi Vu" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Xi Vu" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai23.lua");
elseif GetTask(2021) == 15 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 70 , "L©m D¬ng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "L©m D¬ng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai24.lua");
elseif GetTask(2021) == 16 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 71 , "TÒ Minh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÒ Minh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai25.lua");
elseif GetTask(2021) == 17 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 23 ,"D MÆc" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "D MÆc" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai26.lua");
elseif GetTask(2021) == 18 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 74 , "Ph¬ng D Kh¶" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ph¬ng D Kh¶" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai27.lua");
elseif GetTask(2021) == 19 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 75 , "NhuËn Ngäc" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "NhuËn Ngäc" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai28.lua");
elseif GetTask(2021) == 20 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 90 , "Tèng Tö Ng«n" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Tèng Tö Ng«n" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai29.lua");
elseif GetTask(2021) == 21 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 91 , "L©m Kh¶i ChÝnh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "L©m Kh¶i ChÝnh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai30.lua");
elseif GetTask(2021) == 22 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 92 , "Hµn TiÒm" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Hµn TiÒm" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai31.lua");
elseif GetTask(2021) == 23 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 94 , "La §«ng Phong" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "La §«ng Phong" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai32.lua");
elseif GetTask(2021) == 24 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 117 , "Minh NhÞ" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Minh NhÞ" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai33.lua");
elseif GetTask(2021) == 25 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 122 , "Ho¾c TriÓn B¹ch" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ho¾c TriÓn B¹ch" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai34.lua");
elseif GetTask(2021) == 26 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 136 , "TÇn Khoa" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÇn Khoa" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai35.lua");
elseif GetTask(2021) == 27 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 140 , "M¹c ThiÖu Khiªm" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "M¹c ThiÖu Khiªm" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai36.lua");
elseif GetTask(2021) == 28 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 165 , "Lý Thõa Ng©n" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Lý Thõa Ng©n" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai37.lua");
elseif GetTask(2021) == 29 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 170 , "Lôc D÷ Giang" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Lôc D÷ Giang" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai38.lua");
elseif GetTask(2021) == 30 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 173 , "Long Phi Ly" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Long Phi Ly" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai39.lua");
elseif GetTask(2021) == 31 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 206 , "Së Ly" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Së Ly" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai40.lua");
elseif GetTask(2021) == 40 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 120 , "T KhÊu Tu©n" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "T KhÊu Tu©n" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai41.lua");
elseif GetTask(2021) == 41 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 144 , "Ho¾c Khø BÖnh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ho¾c Khø BÖnh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai42.lua");
elseif GetTask( 2021 ) == 42 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 129 , "§«ng Hoa" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "§«ng Hoa" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai43.lua");
elseif GetTask( 2021 ) == 43 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 180 , "D¹ Thiªn L¨ng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "D¹ Thiªn L¨ng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai44.lua");
elseif GetTask( 2021 ) == 44 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 196 , "TÒ MÆc" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÒ MÆc" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai45.lua");
elseif GetTask( 2021 ) == 45 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 198 , "Vò V¨n DuÖ" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Vò V¨n DuÖ" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai46.lua");
elseif GetTask( 2021 ) == 46 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 199 , "Cè D¹ B¹ch" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Cè D¹ B¹ch" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai47.lua");
elseif GetTask(2021 ) == 47 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 200 , "Ngôy Th DiÖp" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ngôy Th DiÖp" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai48.lua");
elseif GetTask( 2021 ) == 48 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 201 , "VÖ Khanh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "VÖ Khanh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai49.lua");
elseif GetTask( 2021 ) == 49 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName(202 , "Lý Méc Ng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Lý Méc Ng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai50.lua");
elseif GetTask( 2021 ) == 50 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 203 , "Ch¬ng ViÔn" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ch¬ng ViÔn" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai51.lua");
elseif GetTask(2021 ) == 51 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 204 , "TÇn Tèng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÇn Tèng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai52.lua");
elseif GetTask( 2021 ) == 52 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 205 , "T«ng ChÝnh V« ¦u" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "T«ng ChÝnh V« ¦u" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai53.lua");
elseif GetTask( 2021 ) == 53 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 224 , "TÇn M¹c" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÇn M¹c" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai54.lua");
elseif GetTask( 2021 ) == 54 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 225 , "ChiÕm Nam HuyÒn" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "ChiÕm Nam HuyÒn" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai55.lua");
elseif GetTask( 2021 ) == 55 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 226 , "Trang NghÞ" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Trang NghÞ" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai56.lua");
elseif GetTask( 2021 ) == 56 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 227 , "T©n tö" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "T©n tö" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai57.lua");
elseif GetTask( 2021 ) == 57 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 319 , "H»ng Gia" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "H»ng Gia" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai58.lua");
elseif GetTask( 2021 ) == 58 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 320 , "Hiªn Viªn TriÖt" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Hiªn Viªn TriÖt" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai59.lua");
elseif GetTask( 2021 ) == 59 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 321 , "H¹ Méc" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "H¹ Méc" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai60.lua");
elseif GetTask( 2021 ) == 60 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 322 , "Hoµng Th¸i Cùc" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Hoµng Th¸i Cùc" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai61.lua");
elseif GetTask( 2021 ) == 61 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 332 , "Ninh DÞch" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ninh DÞch" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai62.lua");
elseif GetTask(2021 ) == 62 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 336 , "L©m DËt Chu" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "L©m DËt Chu" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai63.lua");
elseif GetTask(2021 ) == 63 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 340 , "Høa ChÝ Qu©n" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Høa ChÝ Qu©n" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai64.lua");
elseif GetTask(2021 ) == 64 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 9 , "TrÇn HiÕu ChÝnh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TrÇn HiÕu ChÝnh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai65.lua");
elseif GetTask( 2021 ) == 65 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 67 , "D¹ C¶nh Lan" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "D¹ C¶nh Lan" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai66.lua");
elseif GetTask( 2021 ) == 66 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 74 , "H¹ Lan Du" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "H¹ Lan Du" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai67.lua");
elseif GetTask(2021 ) == 67 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 103 , "Phong §»ng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Phong §»ng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai68.lua");
elseif GetTask( 2021 ) == 68 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 81 , "Ch©u Sïng Quang" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ch©u Sïng Quang" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai69.lua");
elseif GetTask( 2021 ) == 69 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 25 , "Qu¸ch KÝnh Minh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Qu¸ch KÝnh Minh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai70.lua");
elseif GetTask( 2021 ) == 70 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 183 , "Së Phi Hoan" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Së Phi Hoan" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai71.lua");
else
Talk(15,"","<color=green>"..GetName()..":<color> BÞ lçi GetTask råi!!!")
end
end
Không hiểu sao script này khi gán vào NPC thì lúc Reload script thì nói chuyện được, khi khởi động lại sever thì không nói chuyện được, Tiếp tục reload script thì dùng đc,...
Các bác cứu em với!!!
npc = "Thñy Thiªn Qu©n"
map = "Hoa S¬n" --2
elseif GetTask(2021) == 2 then
npc = "L©m V¸nh Yªn"
map = "B¹ch V©n §éng"--22
elseif GetTask( 2021 ) == 3 then
npc = "Tr¬ng D¹ng"
map = "Thanh Thµnh S¬n"--21
elseif GetTask(2021 ) == 4 then
npc = "Ngäc Hoa"
map = "Kinh Hoµng §éng"--5
elseif GetTask( 2021 ) == 5 then
npc ="L¨ng Siªu"
map = "Hìng Thñy §éng"--24
elseif GetTask( 2021 ) == 6 then
npc ="Hiªn Viªn Ngng"
map = "KiÕm C¸c T©y Nam"--19
elseif GetTask(2021 ) == 7 then
npc ="TrÇn T©m"
map = "Nh¹n Th¹ch §éng"--10
elseif GetTask( 2021) == 8 then
npc ="Lu Gi¸c"
map = "Kim Quang §éng"--4
elseif GetTask( 2021 ) == 9 then
npc ="§êng ThÇn DuÖ"
map = "KiÕm C¸c T©y B¾c"--3
elseif GetTask( 2021 ) == 10 then
npc ="Bïi Tranh"
map = "ThiÕt Th¸p TÇng 3"--40
elseif GetTask( 2021 ) == 11 then
npc ="TÞch Si ThÇn"
map = "Phôc Ngu S¬n T©y"--41
elseif GetTask( 2021 ) == 12 then
npc ="Cè DuËt Hµnh"
map = "Thiªn T©m §éng"--42
elseif GetTask( 2021) == 13 then
npc ="Cè TiÓu B¾c"
map = "KiÕm C¸c Trung Nguyªn"--43
elseif GetTask( 2021 ) == 14 then
npc ="Xi Vu"
map = "§µo Hoa Nguyªn" -- 55
elseif GetTask( 2021 ) == 15 then
npc ="L©m D¬ng"
map = "Vò L¨ng S¬n"--70
elseif GetTask( 2021 ) == 16 then
npc ="TÒ Minh"
map = "B¹ch Thñy §éng"--71
elseif GetTask( 2021 ) == 17 then
npc ="D MÆc"
map = "ThÇn Tiªn §éng" -- 23
elseif GetTask( 2021 ) == 18 then
npc ="Ph¬ng D Kh¶"
map = "Miªu LÜnh"--74
elseif GetTask( 2021 ) == 19 then
npc ="NhuËn Ngäc"
map = "Kháa Lang §éng"--75
elseif GetTask( 2021 ) == 20 then
npc ="Tèng Tö Ng«n"
map = "Phôc Ngu S¬n §«ng"--90
elseif GetTask( 2021 ) == 21 then
npc ="L©m Kh¶i ChÝnh"
map = "Mª Cung Kª Qu¸n §éng"--91
elseif GetTask( 2021 ) == 22 then
npc ="Hµn TiÒm"
map = "Thôc C¬ng S¬n"--92
elseif GetTask( 2021 ) == 23 then
npc ="La §«ng Phong"
map = "Linh Cèc §éng"--94
elseif GetTask( 2021 ) == 24 then
npc ="Minh NhÞ"
map = "Têng V©n §éng tÇng 2" --117
elseif GetTask( 2021 ) == 25 then
npc ="Ho¾c TriÓn B¹ch"
map = "Hoµng Hµ Nguyªn §Çu"--122
elseif GetTask( 2021 ) == 26 then
npc ="T©n Khoa"
map = "Kho¸i Ho¹t L©m"--136
elseif GetTask( 2021 ) == 27 then
npc ="M¹c ThiÖu Khiªm"
map = "Dîc V¬ng Cèc"--140
elseif GetTask( 2021 ) == 28 then
npc ="Lý Thõa Ng©n"
map = "Thiªn TÇm Th¸p 2"--165
elseif GetTask( 2021 ) == 29 then
npc ="Lôc D÷ Giang"
map = "Thæ PhØ §éng"--170
elseif GetTask( 2021 ) == 30 then
npc ="Long Phi Ly"
map = "§iÓm Th¬ng §éng tÇng 3" --173
elseif GetTask( 2021 ) == 31 then
npc ="Së Ly"
map = "TÇn l¨ng tÇng 2" -- 206
elseif GetTask( 2021 ) == 40 then
npc = "T KhÊu Tu©n"
map ="Têng V©n §éng tÇng 5"--120
elseif GetTask( 2021 ) == 41 then
npc = "Ho¾c Khø BÖnh"
map ="Dîc V¬ng §éng tÇng 4"--144
elseif GetTask( 2021 ) == 42 then
npc = "§«ng Hoa"
map ="Lu Tiªn §éng tÇng 5" --129
elseif GetTask( 2021 ) == 43 then
npc = "D¹ Thiªn L¨ng"
map ="Long Cung §éng"--180
elseif GetTask(2021 ) == 44 then
npc = "TÒ MÆc"
map ="D¬ng Gi¸c §éng"--196
elseif GetTask( 2021 ) == 45 then
npc = "Vò V¨n DuÖ"
map ="Thanh Khª §éng"--198
elseif GetTask( 2021 ) == 46 then
npc = "Cè D¹ B¹ch"
map ="Vò L¨ng §éng"--199
elseif GetTask(2021 ) == 47 then
npc = "Ngôy Th DiÖp"
map ="Cæ D¬ng §éng"--200
elseif GetTask( 2021 ) == 48 then
npc = "VÖ Khanh"
map ="B¨ng Hµ §éng"--201
elseif GetTask(2021 ) == 49 then
npc = "Lý Méc Ng"
map ="Phï Dung §éng" -- 202
elseif GetTask( 2021 ) == 50 then
npc = "Ch¬ng ViÔn"
map ="V« Danh §éng"--203
elseif GetTask(2021 ) == 51 then
npc = "TÇn Tèng"
map ="Phi Thiªn §éng"--204
elseif GetTask( 2021 ) == 52 then
npc = "T«ng ChÝnh V« ¦u"
map ="D¬ng Trung §éng"--205
elseif GetTask( 2021 ) == 53 then
npc = "TÇn M¹c"
map ="Sa M¹c §Þa BiÓu"--224
elseif GetTask( 2021 ) == 54 then
npc = "Chiªm Nam HuyÒn"
map ="Sa M¹c 1"--225
elseif GetTask( 2021 ) == 55 then
npc = "Trang NghÞ"
map ="Sa M¹c 2"--226
elseif GetTask( 2021 ) == 56 then
npc = "T©n Tö"
map ="Sa M¹c 3"--227
elseif GetTask( 2021 ) == 57 then
npc = "H»ng Gia"
map ="L©m Du Quan"--319
elseif GetTask( 2021 ) == 58 then
npc = "Hiªn Viªn TriÖt"
map ="Ch©n Nói Trêng B¹ch"--320
elseif GetTask( 2021 ) == 59 then
npc = "H¹ Méc"
map ="Trêng B¹ch S¬n Nam"--321
elseif GetTask( 2021 ) == 60 then
npc = "Hoµng Th¸i Cùc"
map ="Trêng B¹ch S¬n B¾c"--322
elseif GetTask(2021 ) == 61 then
npc = "Ninh DÞch"
map ="Thiªn Long Tù"--332
elseif GetTask( 2021 ) == 62 then
npc = "L©m DËt Chu"
map ="Phong L¨ng §é"--336
elseif GetTask( 2021 ) == 63 then
npc = "Høa ChÝ Qu©n"
map ="M¹c Cao QuËt"--340
elseif GetTask( 2021 ) == 64 then
npc = "TrÇn HiÕu ChÝnh"
map ="Trêng Giang Nguyªn §Çu"--9
elseif GetTask( 2021 ) == 65 then
npc = "D¹ C¶nh Lan"
map ="§¸y §éng §×nh Hå"--67
elseif GetTask( 2021 ) == 66 then
npc = "H¹ Lan Du"
map ="Miªu LÜnh"--74
elseif GetTask( 2021 ) == 67 then
npc = "Phong §»ng"
map ="ThiÕu L©m ph¸i"--103
elseif GetTask( 2021 ) == 68 then
npc = "Ch©u Sïng Quang"
map ="Vâ §ang Ph¸i"--81
elseif GetTask( 2021 ) == 69 then
npc = "Qu¸ch KÝnh Minh"
map ="§êng M«n ph¸i"--25
elseif GetTask( 2021 ) == 70 then
npc = "Së Phi Hoan"
map ="Ngò §éc gi¸o"--183
end
gia = 500 * GetTask(2022)
function main()
dofile("script/truyen/nv_truyna/bodau.lua");
if GetTask(2021) > 0 and GetTask(2038) == 0 then
Say("<color=fire>Bæ §Çu<color>: Ng¬i ®· xÐ lÖnh truy n· <color=red>"..npc.."<color> víi tiÒn treo thëng lµ <color=yellow>"..gia.." lîng<color>, ng¬i ®ång ý chø? ", 4,
"Ta muèn gÊp rìi/tragia1",
"Ta muèn gÊp ®«i/tragia2",
"Ta muèn gÊp ba/tragia3",
"Ta chÊp nhËn/ok")
elseif GetTask(2038) > 0 then
Talk(15,"add_quai","<color=fire>Bæ §Çu<color>: MËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>, ng¬i ®· cã th«ng tin råi sao kh«ng mau ®i ®i?!")
else
Talk(15,"","<color=fire>Bæ §Çu<color>: NÕu nhµ ng¬i ®¹t ®Õn cÊp ®é 50 cã thÓ xÐ c¸c lÖnh Truy n· ë Th«n trÊn. §¹t ®Õn cÊp ®é 90 cã thÓ t×m B¶ng c¸o thÞ ë 7 thµnh thÞ ®Ó nhËn nhiÖm vô Truy n·!")
end
end
function tragia1()
local ran = random (1,10)
if ran > 7 then
Talk(15,"nv1","<color=fire>Bæ §Çu<color>: Gi¸ treo thëng ®· ghi râ rµng lµ bao nhiªu ®ã, ng¬i kh«ng thÓ ra gi¸ kh¸c!","<color=green>"..GetName()..":<color> Th«i ®îc råi, cã bao nhiªu nhËn bÊy nhiªu..","<color=fire>Bæ §Çu<color>: §îc! mËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
else
Talk(15,"nv2","<color=fire>Bæ §Çu<color>: ...Th«i ®îc! thªm chót ®Ønh kh«ng sao, chñ yÕu ng¬i ph¶i lµm cho ®îc viÖc!","<color=fire>Bæ §Çu<color>: MËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
end
end
function tragia2()
local ran = random (1,10)
if ran > 5 then
Talk(15,"nv1","<color=fire>Bæ §Çu<color>: Gi¸ treo thëng ®· ghi râ rµng lµ bao nhiªu ®ã, ng¬i kh«ng thÓ ra gi¸ kh¸c!","<color=green>"..GetName()..":<color> Th«i ®îc råi, cã bao nhiªu nhËn bÊy nhiªu..","<color=fire>Bæ §Çu<color>: §îc! mËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
else
Talk(15,"nv3","<color=fire>Bæ §Çu<color>: Ng¬i còng biÕt tr¶ gi¸ qu¸ ®ã chø...ta ®ång ý!"," <color=fire>Bæ §Çu<color>: MËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
end
end
function tragia3()
local ran = random (1,10)
if ran > 3 then
Talk(15,"nv1","<color=fire>Bæ §Çu<color>: Gi¸ treo thëng ®· ghi râ rµng lµ bao nhiªu ®ã, ng¬i kh«ng thÓ ra gi¸ kh¸c!","<color=green>"..GetName()..":<color> Th«i ®îc råi, cã bao nhiªu nhËn bÊy nhiªu..","<color=fire>Bæ §Çu<color>: §îc! mËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
else
Talk(15,"nv4","<color=fire>Bæ §Çu<color>: C¸i g×...<color=yellow>"..gia *3 .." lîng<color>!!!","<color=green>"..GetName()..":<color> Ta còng ®ang kÑt ®ang cÇn tiÒn!","<color=fire>Bæ §Çu<color>: §Ó ta coi...tªn téi ph¹m nµy còng rÊt nguy hiÓm..®îc råi! V× sù an toµn cña b¸ t¸nh ta sÏ lÊy tiÒn tói thªm vµo cho ng¬i","<color=fire>Bæ §Çu<color>: MËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
end
end
function ok()
Talk(15,"nv1","<color=fire>Bæ §Çu<color>: Tèt! mËt th¸m cña ta ®· ®iÒu tra ra <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>. Sau khi hoµn thµnh nhiÖm vô ng©n lîng sÏ ®îc chuyÓn vµo tµi kho¶n cña ng¬i, ng¬i kh«ng cÇn ph¶i t×m ta!")
end
function nv1()
SetTask(2038, 2)
add_quai()
AddNote("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
Msg2Player("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
end
function nv2()
SetTask(2038, 3)
add_quai()
AddNote("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
Msg2Player("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
end
function nv3()
SetTask(2038, 4)
add_quai()
AddNote("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
Msg2Player("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
end
function nv4()
SetTask(2038, 5)
add_quai()
AddNote("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
Msg2Player("Truy t×m téi ph¹m <color=red>"..npc.."<color> ®ang ë <color=green>"..map.."<color>")
end
toa_do = {
{20,3563,6093},
{20,3539,6079},
{20,3548,6089},
{20,3458,5925},
{20,3465,6017},
}
function add_quai()
if GetTask(2021) == 1 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName(2, "Thñy Thiªn Qu©n")
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Thñy Thiªn Qu©n", 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai10.lua");
elseif GetTask(2021) == 2 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 22 , "L©m V¸nh Yªn" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "L©m V¸nh Yªn" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai11.lua");
elseif GetTask(2021) == 3 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 21 , "Tr¬ng D¹ng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Tr¬ng D¹ng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai12.lua");
elseif GetTask(2021) == 4 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 5 , "Ngäc Hoa" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ngäc Hoa" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai13.lua");
elseif GetTask(2021) == 5 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 24 , "L¨ng Siªu" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "L¨ng Siªu" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai14.lua");
elseif GetTask(2021) == 6 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 19 , "Hiªn Viªn Ngng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Hiªn Viªn Ngng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai15.lua");
elseif GetTask(2021) == 7 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 10 , "TrÇn T©m" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TrÇn T©m" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai16.lua");
elseif GetTask(2021) == 8 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 4 ,"Lu Gi¸c" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Lu Gi¸c" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai17.lua");
elseif GetTask(2021) == 9 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 3 , "§êng ThÇn DuÖ" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "§êng ThÇn DuÖ" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai18.lua");
elseif GetTask(2021) == 10 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 40 , "Bïi Tranh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Bïi Tranh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai19.lua");
elseif GetTask(2021) == 11 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 41 , "TÞch Si ThÇn" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÞch Si ThÇn" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai20.lua");
elseif GetTask(2021) == 12 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 42 , "Cè DuËt Hµnh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Cè DuËt Hµnh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai21.lua");
elseif GetTask(2021) == 13 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 43 , "Cè TiÓu B¾c" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Cè TiÓu B¾c" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai22.lua");
elseif GetTask(2021) == 14 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 55 , "Xi Vu" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Xi Vu" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai23.lua");
elseif GetTask(2021) == 15 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 70 , "L©m D¬ng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "L©m D¬ng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai24.lua");
elseif GetTask(2021) == 16 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 71 , "TÒ Minh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÒ Minh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai25.lua");
elseif GetTask(2021) == 17 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 23 ,"D MÆc" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "D MÆc" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai26.lua");
elseif GetTask(2021) == 18 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 74 , "Ph¬ng D Kh¶" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ph¬ng D Kh¶" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai27.lua");
elseif GetTask(2021) == 19 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 75 , "NhuËn Ngäc" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "NhuËn Ngäc" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai28.lua");
elseif GetTask(2021) == 20 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 90 , "Tèng Tö Ng«n" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Tèng Tö Ng«n" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai29.lua");
elseif GetTask(2021) == 21 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 91 , "L©m Kh¶i ChÝnh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "L©m Kh¶i ChÝnh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai30.lua");
elseif GetTask(2021) == 22 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 92 , "Hµn TiÒm" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Hµn TiÒm" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai31.lua");
elseif GetTask(2021) == 23 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 94 , "La §«ng Phong" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "La §«ng Phong" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai32.lua");
elseif GetTask(2021) == 24 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 117 , "Minh NhÞ" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Minh NhÞ" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai33.lua");
elseif GetTask(2021) == 25 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 122 , "Ho¾c TriÓn B¹ch" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ho¾c TriÓn B¹ch" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai34.lua");
elseif GetTask(2021) == 26 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 136 , "TÇn Khoa" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÇn Khoa" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai35.lua");
elseif GetTask(2021) == 27 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 140 , "M¹c ThiÖu Khiªm" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "M¹c ThiÖu Khiªm" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai36.lua");
elseif GetTask(2021) == 28 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 165 , "Lý Thõa Ng©n" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Lý Thõa Ng©n" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai37.lua");
elseif GetTask(2021) == 29 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 170 , "Lôc D÷ Giang" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Lôc D÷ Giang" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai38.lua");
elseif GetTask(2021) == 30 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 173 , "Long Phi Ly" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Long Phi Ly" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai39.lua");
elseif GetTask(2021) == 31 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 206 , "Së Ly" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Së Ly" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai40.lua");
elseif GetTask(2021) == 40 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 120 , "T KhÊu Tu©n" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "T KhÊu Tu©n" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai41.lua");
elseif GetTask(2021) == 41 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 144 , "Ho¾c Khø BÖnh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ho¾c Khø BÖnh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai42.lua");
elseif GetTask( 2021 ) == 42 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 129 , "§«ng Hoa" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "§«ng Hoa" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai43.lua");
elseif GetTask( 2021 ) == 43 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 180 , "D¹ Thiªn L¨ng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "D¹ Thiªn L¨ng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai44.lua");
elseif GetTask( 2021 ) == 44 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 196 , "TÒ MÆc" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÒ MÆc" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai45.lua");
elseif GetTask( 2021 ) == 45 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 198 , "Vò V¨n DuÖ" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Vò V¨n DuÖ" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai46.lua");
elseif GetTask( 2021 ) == 46 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 199 , "Cè D¹ B¹ch" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Cè D¹ B¹ch" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai47.lua");
elseif GetTask(2021 ) == 47 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 200 , "Ngôy Th DiÖp" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ngôy Th DiÖp" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai48.lua");
elseif GetTask( 2021 ) == 48 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 201 , "VÖ Khanh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "VÖ Khanh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai49.lua");
elseif GetTask( 2021 ) == 49 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName(202 , "Lý Méc Ng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Lý Méc Ng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai50.lua");
elseif GetTask( 2021 ) == 50 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 203 , "Ch¬ng ViÔn" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ch¬ng ViÔn" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai51.lua");
elseif GetTask(2021 ) == 51 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 204 , "TÇn Tèng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÇn Tèng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai52.lua");
elseif GetTask( 2021 ) == 52 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 205 , "T«ng ChÝnh V« ¦u" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "T«ng ChÝnh V« ¦u" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai53.lua");
elseif GetTask( 2021 ) == 53 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 224 , "TÇn M¹c" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TÇn M¹c" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai54.lua");
elseif GetTask( 2021 ) == 54 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 225 , "ChiÕm Nam HuyÒn" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "ChiÕm Nam HuyÒn" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai55.lua");
elseif GetTask( 2021 ) == 55 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 226 , "Trang NghÞ" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Trang NghÞ" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai56.lua");
elseif GetTask( 2021 ) == 56 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 227 , "T©n tö" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "T©n tö" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai57.lua");
elseif GetTask( 2021 ) == 57 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 319 , "H»ng Gia" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "H»ng Gia" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai58.lua");
elseif GetTask( 2021 ) == 58 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 320 , "Hiªn Viªn TriÖt" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Hiªn Viªn TriÖt" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai59.lua");
elseif GetTask( 2021 ) == 59 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 321 , "H¹ Méc" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "H¹ Méc" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai60.lua");
elseif GetTask( 2021 ) == 60 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 322 , "Hoµng Th¸i Cùc" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Hoµng Th¸i Cùc" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai61.lua");
elseif GetTask( 2021 ) == 61 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 332 , "Ninh DÞch" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ninh DÞch" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai62.lua");
elseif GetTask(2021 ) == 62 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 336 , "L©m DËt Chu" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "L©m DËt Chu" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai63.lua");
elseif GetTask(2021 ) == 63 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 340 , "Høa ChÝ Qu©n" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Høa ChÝ Qu©n" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai64.lua");
elseif GetTask(2021 ) == 64 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 9 , "TrÇn HiÕu ChÝnh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "TrÇn HiÕu ChÝnh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai65.lua");
elseif GetTask( 2021 ) == 65 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 67 , "D¹ C¶nh Lan" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "D¹ C¶nh Lan" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai66.lua");
elseif GetTask( 2021 ) == 66 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 74 , "H¹ Lan Du" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "H¹ Lan Du" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai67.lua");
elseif GetTask(2021 ) == 67 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 103 , "Phong §»ng" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Phong §»ng" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai68.lua");
elseif GetTask( 2021 ) == 68 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 81 , "Ch©u Sïng Quang" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Ch©u Sïng Quang" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai69.lua");
elseif GetTask( 2021 ) == 69 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 25 , "Qu¸ch KÝnh Minh" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Qu¸ch KÝnh Minh" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai70.lua");
elseif GetTask( 2021 ) == 70 then
local i = random (1,3)
local id_npc = random(43,44)
local level = GetLevel()
ClearMapNpcWithName( 183 , "Së Phi Hoan" )
local map,nx, ny = SubWorldID2Idx(toa_do[i][1]) ,toa_do[i][2] * 32, toa_do[i][3] * 32;
local than = AddNpcEx(id_npc, level +10, random(0,4), map, nx, ny, 1, "Së Phi Hoan" , 1);
SetNpcScript(than, "\\script\\truyen\\nv_truyna\\quai\\quai71.lua");
else
Talk(15,"","<color=green>"..GetName()..":<color> BÞ lçi GetTask råi!!!")
end
end
Không hiểu sao script này khi gán vào NPC thì lúc Reload script thì nói chuyện được, khi khởi động lại sever thì không nói chuyện được, Tiếp tục reload script thì dùng đc,...
Các bác cứu em với!!!