nhoxmap_b7
08-08-11, 01:12 PM
function kydanh()
if GetLevel() >= 10 and GetTask(11) >= 1 then
Talk(2, "","Da lau khong uong ruou bong lai cua ong chu tuu diem o Ba Lang Huyen, hom nay tam trang ta dang vui muong uong ruou.","Neu nguoi den cho ong chu tuu diem o Ba Lang Huyen (200/194) hoi mua ruou cho ta, ta se tra cong cho nguoi!")
SetTask(92, 2)
elseif GetTask(92) == 8 then
Say("Nguoi co mang ruou Bong Lai den cho tao khong?",1,"Dua ruou/ruou")
end
end
function ruou()
if HaveItem("Bong Lai Xuan") == 1 then
DelItem("Bong Lai Xuan")
SetRank(81)
AddRepute(15)
Msg2Player("Ban da nhan duoc 15 diem danh vong va duoc phong danh hieu Ky Danh De Tu")
elseif GetRank(81) >= 1 then
Talk(1,"","Nguoi da lam nhiem vu nay roi khong can lam nua")
elseif HaveItem("Bong Lai Xuan") == 0 then
Talk(1,"","Khong co ruou thi dung den gap ta")
end
end
function main(sel)
UTask_tw = GetTask(92);
if (UTask_tw == 2) then
Talk(4, "", "Chu quan! O day loai ruou nao la ngon nhat?", "Ruou ngon nhat o day la <color=Red>Bong Lai Xuan<color>, nau loai ruou nay ton rat nhieu cong suc, hon nua nguyen lieu rat kho tim.", "Chi can ruou ngon la duoc, ta muon mua mot hu, het bao nhieu tien?","Nguyen lieu can co Linh Chi, Huyen Sam, Ha Thu O")
SetTask(92, 4)
return
end;
if (UTask_tw == 4) then
if ( HaveItem("Linh Chi") == 0 or HaveItem("Huyen Sam") == 0 or HaveItem("Ha Thu O") == 0 ) then
Say("Nghe noi ba loai cay thuoc nay sinh truong tai <color=Red>phia Dong Bac Vu Lang son<color>, nhung o do co rat nhieu quai thu an thit nguoi, vi the khong ai co can dam den do.",1,"Ke thuc doi thoai/no")
else
Talk(2, "", "Chu quan! Ta da tim du ba loai nguyen lieu roi, ong giup ta nau ruou Bong Lai Xuan di!", "Duoc! Nhung phai cho mot gio dong ho moi xong.")
DelItem("Linh Chi")
DelItem("Huyen Sam")
DelItem("Ha Thu O")
SetTask(92, 6)
SetTimer(1080, 1)
end
return
end;
if (UTask_tw == 6) then
UTask_twsub01 = GetTask(13);
if (UTask_twsub01 == 1) then
AddEventItem("Bong Lai Xuan")
Msg2Player("Mua duoc hu ruou Bong Lai Xuan")
Talk(2,"","Day la hu ruou Bong Lai Xuan cua nguoi","Da ta huynh da nau ruou dum ta")
SetTask(92, 8)
else
Say("The nao?Bong Lai Xuan cua bon tiem khong phai la hu danh chu?",1,"Ket thuc doi thoai/no")
end
return
end;
Say("Noi day chung ta co du thuc an, hai san phong phu. Khach quan muon an gi? Muon uong ruou gi?",1,"Ket thuc doi thoai/no");
end;
function no()
end
mấy huynh xem giúp em coi em sai chỗ nào
if GetLevel() >= 10 and GetTask(11) >= 1 then
Talk(2, "","Da lau khong uong ruou bong lai cua ong chu tuu diem o Ba Lang Huyen, hom nay tam trang ta dang vui muong uong ruou.","Neu nguoi den cho ong chu tuu diem o Ba Lang Huyen (200/194) hoi mua ruou cho ta, ta se tra cong cho nguoi!")
SetTask(92, 2)
elseif GetTask(92) == 8 then
Say("Nguoi co mang ruou Bong Lai den cho tao khong?",1,"Dua ruou/ruou")
end
end
function ruou()
if HaveItem("Bong Lai Xuan") == 1 then
DelItem("Bong Lai Xuan")
SetRank(81)
AddRepute(15)
Msg2Player("Ban da nhan duoc 15 diem danh vong va duoc phong danh hieu Ky Danh De Tu")
elseif GetRank(81) >= 1 then
Talk(1,"","Nguoi da lam nhiem vu nay roi khong can lam nua")
elseif HaveItem("Bong Lai Xuan") == 0 then
Talk(1,"","Khong co ruou thi dung den gap ta")
end
end
function main(sel)
UTask_tw = GetTask(92);
if (UTask_tw == 2) then
Talk(4, "", "Chu quan! O day loai ruou nao la ngon nhat?", "Ruou ngon nhat o day la <color=Red>Bong Lai Xuan<color>, nau loai ruou nay ton rat nhieu cong suc, hon nua nguyen lieu rat kho tim.", "Chi can ruou ngon la duoc, ta muon mua mot hu, het bao nhieu tien?","Nguyen lieu can co Linh Chi, Huyen Sam, Ha Thu O")
SetTask(92, 4)
return
end;
if (UTask_tw == 4) then
if ( HaveItem("Linh Chi") == 0 or HaveItem("Huyen Sam") == 0 or HaveItem("Ha Thu O") == 0 ) then
Say("Nghe noi ba loai cay thuoc nay sinh truong tai <color=Red>phia Dong Bac Vu Lang son<color>, nhung o do co rat nhieu quai thu an thit nguoi, vi the khong ai co can dam den do.",1,"Ke thuc doi thoai/no")
else
Talk(2, "", "Chu quan! Ta da tim du ba loai nguyen lieu roi, ong giup ta nau ruou Bong Lai Xuan di!", "Duoc! Nhung phai cho mot gio dong ho moi xong.")
DelItem("Linh Chi")
DelItem("Huyen Sam")
DelItem("Ha Thu O")
SetTask(92, 6)
SetTimer(1080, 1)
end
return
end;
if (UTask_tw == 6) then
UTask_twsub01 = GetTask(13);
if (UTask_twsub01 == 1) then
AddEventItem("Bong Lai Xuan")
Msg2Player("Mua duoc hu ruou Bong Lai Xuan")
Talk(2,"","Day la hu ruou Bong Lai Xuan cua nguoi","Da ta huynh da nau ruou dum ta")
SetTask(92, 8)
else
Say("The nao?Bong Lai Xuan cua bon tiem khong phai la hu danh chu?",1,"Ket thuc doi thoai/no")
end
return
end;
Say("Noi day chung ta co du thuc an, hai san phong phu. Khach quan muon an gi? Muon uong ruou gi?",1,"Ket thuc doi thoai/no");
end;
function no()
end
mấy huynh xem giúp em coi em sai chỗ nào