[M]r[K]id
26-09-10, 04:04 PM
Em Xài Sever TSBD
Em xem cấu trúc các file .lua thì nó có dạng rớt đồ như thế này nì:
function dropnpc()
a = random(1,4)
cap = 10
i = floor(random(100,1000)/100)
nguhanh = random(0,4)
if a == 1 then
z = random(1,4)
if z > 1 then
if i == 1 then --vu khi
a = random(0,5)
AITW(0,0,a,cap,nguhanh,0,random(5,8))
elseif i == 2 then --ao giap
a = random(0,28)
AITW(0,2,a,cap,nguhanh,0,random(5,8))
elseif i == 3 then --non
a = random(0,13)
AITW(0,7,a,cap,nguhanh,0,random(5,8))
elseif i == 5 then --phucduyen
z = random(3,5)
AITW(4,z,0,0,0,0,0)
elseif i == 10 then --event MTBD
z = random(21,32)
AITW(4,z,0,0,0,0,0)
end
elseif z == 1 then
if i == 4 then --thuy tinh+ hongbaothach
z = random(8,11)
AITW(4,z,0,0,0,0,0)
elseif i == 6 then --huyentinh
z = random(55,61)
AITW(4,z,0,0,0,0,0)
elseif i == 7 then ---bikiep12x + 15x
a = random(1,5)
if a == 1 then
z = random(157,166)
AITW(4,z,0,0,0,0,0)
elseif a > 1 then
z = random(65,74)
AITW(4,z,0,0,0,0,0)
end
elseif i == 8 then --6 loai thao moc va thuyen rong
a = random(1,2)
if a == 1 then
z = random(220,225)
AITW(4,z,0,0,0,0,0)
elseif a == 2 then
z = random(184,189)
AITW(4,z,0,0,0,0,0)
end
elseif i == 9 then --Event bao ruong + bachcauhoan
a = random(1,4)
if a == 1 then
AITW(4,83,0,0,0,0,0)
elseif a == 2 then
AITW(4,151,0,0,0,0,0)
elseif a == 3 then
z = random(216,219)
AITW(4,z,0,0,0,0,0)
elseif a == 4 then
AITW(4,6,0,0,0,0,0)
end
elseif i == 11 then --event kim thiet lenh
z = random(115,119)
AITW(4,z,0,0,0,0,0)
end
end
end
end;
xem thì ko hỉu gì ca
em hướng dẫn em dc hum ?
hàm AITW ý
thanks nhìu nhaz'
Em xem cấu trúc các file .lua thì nó có dạng rớt đồ như thế này nì:
function dropnpc()
a = random(1,4)
cap = 10
i = floor(random(100,1000)/100)
nguhanh = random(0,4)
if a == 1 then
z = random(1,4)
if z > 1 then
if i == 1 then --vu khi
a = random(0,5)
AITW(0,0,a,cap,nguhanh,0,random(5,8))
elseif i == 2 then --ao giap
a = random(0,28)
AITW(0,2,a,cap,nguhanh,0,random(5,8))
elseif i == 3 then --non
a = random(0,13)
AITW(0,7,a,cap,nguhanh,0,random(5,8))
elseif i == 5 then --phucduyen
z = random(3,5)
AITW(4,z,0,0,0,0,0)
elseif i == 10 then --event MTBD
z = random(21,32)
AITW(4,z,0,0,0,0,0)
end
elseif z == 1 then
if i == 4 then --thuy tinh+ hongbaothach
z = random(8,11)
AITW(4,z,0,0,0,0,0)
elseif i == 6 then --huyentinh
z = random(55,61)
AITW(4,z,0,0,0,0,0)
elseif i == 7 then ---bikiep12x + 15x
a = random(1,5)
if a == 1 then
z = random(157,166)
AITW(4,z,0,0,0,0,0)
elseif a > 1 then
z = random(65,74)
AITW(4,z,0,0,0,0,0)
end
elseif i == 8 then --6 loai thao moc va thuyen rong
a = random(1,2)
if a == 1 then
z = random(220,225)
AITW(4,z,0,0,0,0,0)
elseif a == 2 then
z = random(184,189)
AITW(4,z,0,0,0,0,0)
end
elseif i == 9 then --Event bao ruong + bachcauhoan
a = random(1,4)
if a == 1 then
AITW(4,83,0,0,0,0,0)
elseif a == 2 then
AITW(4,151,0,0,0,0,0)
elseif a == 3 then
z = random(216,219)
AITW(4,z,0,0,0,0,0)
elseif a == 4 then
AITW(4,6,0,0,0,0,0)
end
elseif i == 11 then --event kim thiet lenh
z = random(115,119)
AITW(4,z,0,0,0,0,0)
end
end
end
end;
xem thì ko hỉu gì ca
em hướng dẫn em dc hum ?
hàm AITW ý
thanks nhìu nhaz'