nhoxmap_b7
09-08-11, 10:56 PM
function main(sel)
UTask_world19 = GetTask(101);
if (UTask_world19 <= 2) then
UTaskMain()
else
Default()
end;
end;
function UTaskMain()
if(UTask_world19 == 0) then
UTask_world19_0()
end;
if(UTask_world19 == 1) then
UTask_world19_1()
end;
end;
function Default()
i = random(0,1)
if (i == 0) then
Say("Co lao thai:Chao ban, ban dang choi server do alextuan phat trien do.",0)
return
end;
if (i == 1) then
Say("Co lao thai:Toi co mot nguoi con trai di danh ca da 3 ngay nay ko ve, toi rat lo lang.",0)
end;
end;
function UTask_world19_0()
Say("Co lao thai: Ban co the giup toi tim no duoc ko? Neu khong thi chac toi chet mat, ban hay di ve huong Bac, den Dong Dinh ho tim thu xem, no co mang theo mot mieng Ngoc Boi la vat ho than cua no,neu khong tim thay thi cung co gang tim gium ta mieng Ngoc Boi do cung duoc.",2,"Toi se tim/yes","Toi khong ranh/no")
end;
function UTask_world19_1()
if(HaveItem(239) == 1) then
Talk(2, "", "Co lao thai:Vay la con ta da mat tich, lam sao ta co the song noi... ...", "Co lao thai:Du sao ta cung cam on nguoi, de ta on ta se tang nguoi mot buc tranh...")
DelItem(239)
AddEventItem(240)
SetTask(101, 2)
else
Say("Co lao thai:Ban hay co gang giup toi tim cho duoc mieng Ngoc Boi cua con trai toi o huong Bac, tai Dong Dinh ho...",0)
end
end;
function yes()
Say("Co lao thai:Nguoi that la mot nguoi tot, toi rat cam on",0)
SetTask(101, 1)
end;
function no()
Say("Co lao thai:Nguoi dung la mot ke xau, nguoi se khong co tuong lai dau",0)
end;
xem giúp em có sai chỗ nào ko vậy
UTask_world19 = GetTask(101);
if (UTask_world19 <= 2) then
UTaskMain()
else
Default()
end;
end;
function UTaskMain()
if(UTask_world19 == 0) then
UTask_world19_0()
end;
if(UTask_world19 == 1) then
UTask_world19_1()
end;
end;
function Default()
i = random(0,1)
if (i == 0) then
Say("Co lao thai:Chao ban, ban dang choi server do alextuan phat trien do.",0)
return
end;
if (i == 1) then
Say("Co lao thai:Toi co mot nguoi con trai di danh ca da 3 ngay nay ko ve, toi rat lo lang.",0)
end;
end;
function UTask_world19_0()
Say("Co lao thai: Ban co the giup toi tim no duoc ko? Neu khong thi chac toi chet mat, ban hay di ve huong Bac, den Dong Dinh ho tim thu xem, no co mang theo mot mieng Ngoc Boi la vat ho than cua no,neu khong tim thay thi cung co gang tim gium ta mieng Ngoc Boi do cung duoc.",2,"Toi se tim/yes","Toi khong ranh/no")
end;
function UTask_world19_1()
if(HaveItem(239) == 1) then
Talk(2, "", "Co lao thai:Vay la con ta da mat tich, lam sao ta co the song noi... ...", "Co lao thai:Du sao ta cung cam on nguoi, de ta on ta se tang nguoi mot buc tranh...")
DelItem(239)
AddEventItem(240)
SetTask(101, 2)
else
Say("Co lao thai:Ban hay co gang giup toi tim cho duoc mieng Ngoc Boi cua con trai toi o huong Bac, tai Dong Dinh ho...",0)
end
end;
function yes()
Say("Co lao thai:Nguoi that la mot nguoi tot, toi rat cam on",0)
SetTask(101, 1)
end;
function no()
Say("Co lao thai:Nguoi dung la mot ke xau, nguoi se khong co tuong lai dau",0)
end;
xem giúp em có sai chỗ nào ko vậy