taizero30
22-06-11, 10:08 PM
function chuyensinh()
local cs = GetTask(197)
if cs == nil then cs = 0 end
local cs = cs +1
if GetTask(197) < GetGlbMissionV(50) then
if GetLevel() >= CSTABLE[cs][1] then
if GetCash() >= CSTABLE[cs][2] then
if GetItemCount(iditemcantrongcs) >= CSTABLE[cs][3] then
for i=1,CSTABLE[cs][3] do DelItem(iditemcantrongcs) end
Pay(CSTABLE[cs][2])
SetLevel(10)
SetTask(197,GetTask(197)+1)
diemtn = (CSTABLE[cs][4]/2) + (GetTask(ttk) * 5)
diemkn = (floor(CSTABLE[cs][5]/2)) + GetTask(vlmt)
RollPoint()
AddProp(diemtn)
AddMagicPoint(diemkn)
checkvongsang()
KickOutSelf()
Talk(1,"","Day la lan Chuyen Sinh Thu: "..GetTask(197).." cua ban")
else
Talk(1,"","Ban Can Co <color=red>"..CSTABLE[cs][3].."<color> "..TENVP.." De Chuyen Sinh !")
end
else
Talk(1,"","<color=cyan>Chuyen Sinh Dai Su:<color> Ban can co "..(CSTABLE[cs][2]/10000).." van de chuyen sinh")
end
else
Talk(1,"","<color=cyan>Chuyen Sinh Dai Su:<color> Ban can dat "..CSTABLE[cs][1].." cap de chuyen sinh")
end
local cs = 0
local diemtn = 0
local diemkn = 0
else
Talk(1,"","<color=cyan>Chuyen Sinh Dai Su:<color> Gioi han chuyen sinh hien tai la "..GetGlbMissionV(50).." khong the tiep tuc chuyen sinh !")
end
end;
lỗi cs k bị disconect.....................................
local cs = GetTask(197)
if cs == nil then cs = 0 end
local cs = cs +1
if GetTask(197) < GetGlbMissionV(50) then
if GetLevel() >= CSTABLE[cs][1] then
if GetCash() >= CSTABLE[cs][2] then
if GetItemCount(iditemcantrongcs) >= CSTABLE[cs][3] then
for i=1,CSTABLE[cs][3] do DelItem(iditemcantrongcs) end
Pay(CSTABLE[cs][2])
SetLevel(10)
SetTask(197,GetTask(197)+1)
diemtn = (CSTABLE[cs][4]/2) + (GetTask(ttk) * 5)
diemkn = (floor(CSTABLE[cs][5]/2)) + GetTask(vlmt)
RollPoint()
AddProp(diemtn)
AddMagicPoint(diemkn)
checkvongsang()
KickOutSelf()
Talk(1,"","Day la lan Chuyen Sinh Thu: "..GetTask(197).." cua ban")
else
Talk(1,"","Ban Can Co <color=red>"..CSTABLE[cs][3].."<color> "..TENVP.." De Chuyen Sinh !")
end
else
Talk(1,"","<color=cyan>Chuyen Sinh Dai Su:<color> Ban can co "..(CSTABLE[cs][2]/10000).." van de chuyen sinh")
end
else
Talk(1,"","<color=cyan>Chuyen Sinh Dai Su:<color> Ban can dat "..CSTABLE[cs][1].." cap de chuyen sinh")
end
local cs = 0
local diemtn = 0
local diemkn = 0
else
Talk(1,"","<color=cyan>Chuyen Sinh Dai Su:<color> Gioi han chuyen sinh hien tai la "..GetGlbMissionV(50).." khong the tiep tuc chuyen sinh !")
end
end;
lỗi cs k bị disconect.....................................