as={
{35,25,25,15}, -- kim
{20,35,20,25}, -- moc
{25,25,25,25}, -- thuy
{30,20,30,20}, -- hoa
{20,15,25,40}, -- tho
}
function MuaTamPhapThien()
tongcash = GetCash()
if GetCash() >= 50000000 then
Pay(50000000)
if GetCash() ~= tongcash - 50000000 then
Talk(1,"","Hack h¶!")
logWrite(""..GetIP().." ---- "..GetName().." --- chuyen sinh "..GetTask(197).." --- Lever "..GetLevel().."")
return
end
function themskillcs()
for i=459,468 do DelMagic(i) end
id = GetTask(197)
if id >= 8 then
AddMagic(466,20)
else
AddMagic(458+id,20)
end
end
function LuuTrungSinhThanhCong()
file_IP = "dulieu/trungsinh.txt"
local IPData = openfile(file_IP, "a");
write(IPData, date("%y-%m-%d_%H:%M:%S").."\tNhan vat: "..GetName().." chuyen sinh lan ... thanh cong.\n");
closefile(IPData);
end;
function SetLevel(nLevel)
if(nLevel<1 or nLevel >200) then
--error
return 0;
end
local a=GetNpcIdx ();
a=setx (a,nLevel);
ktcss=GetTask(197)+1
if(a==1) then
KickOutSelf()
Msg2SubWorld("Ngêi ch¬i ["..GetName().."] ®· chuyÓn sinh lÇn thø ["..ktcss.."]")
print("|>> "..GetName().." Chuyen Sinh Thanh Cong Lan Thu "..ktcss.." ! <<|")
else
Msg2Player("<color=metal>Lçi khi chuyÓn sinh");
print("|>> "..GetName().." Chuyen Sinh Loi ??????????????? <<|")
end
end
function dvs()
if GetTask(197) >=2 then
for i=459,472 do
DelMagic(i)
end
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 2")
end
end;
function v1()
if GetTask(197) >=1 then
AddMagic(463,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 1")
end
end;
function v2()
if GetTask(197) >=2 then
AddMagic(464,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 2")
end
end;
function v3()
if GetTask(197) >= 3 then
AddMagic(465,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 3")
end
end;
function v4()
if GetTask(197) >= 4 then
AddMagic(466,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 4")
end
end;
function v5()
if GetTask(197) >=5 then
AddMagic(467,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 5")
end
end;
function v6()
if GetTask(197) >=6 then
AddMagic(468,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 6")
end
end;
function v7()
if GetTask(197) >=7 then
AddMagic(469,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 7")
end
end;
function v8()
if GetTask(197) >=8 then
AddMagic(470,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 8")
end
end;
function v9()
if GetTask(197) >=9 then
AddMagic(471,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 9")
end
end;
function v10()
if GetTask(197) >= 10 then
AddMagic(472,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 10")
end
end;
function v11()
if GetTask(197) >=11 then
AddMagic(459,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 11")
end
end;
function v12()
if GetTask(197) >=12 then
AddMagic(460,1)
else
Talk(1,"","<color=cyan>Lçi:<color> B¹n cÇn chuyÓn sinh 12")
end
end;
function logWrite(str)
local gm_Log = "dulieu/trungsinh.txt"
local fs_log = openfile(gm_Log, "a+");
write(fs_log, "\t"..str.."\n");
closefile(fs_log);
end
Khách viếng thăm
hãy cùng 66sac66 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!