xlinhtinhx
15-05-12, 11:00 PM
bạn cho mình hỏi bước này làm như thế nào: <b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b> .jpg (<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>)
mình thêm 1 vật phảm vào NPC hiệu thuốc, đã mở file trong sever: ...\TSBD3.0\script\Global\buonban\hieuthuoc.lua
mình phải thêm hàm "Sale(shop_id)" vào như thế nào và thêm ở vi trí trong file "hieuthuoc.lua"
hàm "sale" có cần phải đặt trong "function" không
---The Script (c) By SV Thach Cuong Long Version 2.0
Include("\\script\\source\\sourcejx49.lua");
function main()
Say("<color=yellow>Hieu Thuoc<color>: Nguoi muon mua gi?",3,"Giao dich/gd","Mua nhanh/muathuoc","Thoat/no");
end
function gd()
Sale(1);
end;
function muathuoc()
Say("<color=yellow>Hieu Thuoc : <color>Cac ha hay lua chon loai <color=fire>Duoc Pham<color> muon mua", 7, "Duoc pham Tieu/dpt", "Duoc pham Trung Ha/dpth","Duoc pham Trung Thuong/dptt","Duoc pham Dai/dpd","Duoc pham Quy/dpq","Tro lai/main", "Thoat/no")
end;
function dpt()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon duoc pham <color=fire>Tieu<color> muon mua",6,"Kim Sang Duoc (Tieu)/ksdt","Hoi Nguyen Duoc (Tieu)/hndt","Cuu Don Duoc (Tieu)/cddt","Giai doc don (Tieu)/gddt","Tro lai/muathuoc","Thoat/no");
end;
function dpth()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon duoc pham <color=firee>Trung Ha<color> muon mua",6,"Kim Sang Duoc (Trung Ha)/ksdth","Hoi Nguyen Duoc (Trung Ha)/hndth","Cuu Don Duoc (Trung Ha)/cddth","Giai doc don (Trung Ha)/gddth","Tro lai/muathuoc","Thoat/no");
end;
function dptt()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon duoc pham <color=fire>Trung Thuong<color> muon mua",6,"Kim Sang Duoc (Trung Thuong)/ksdtt","Hoi Nguyen Duoc (Trung Thuong)/hndtt","Cuu Don Duoc (Trung Thuong)/cddtt","Giai doc don (Trung Thuong)/gddtt","Tro lai/muathuoc","Thoat/no");
end;
function dpd()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon duoc pham <color=fire>Dai<color> muon mua",6,"Kim Sang Duoc (Dai)/ksdd","Hoi Nguyen Duoc (Dai)/hndd","Cuu Don Duoc (Dai)/cddd","Giai doc don (Dai)/gddd","Tro lai/muathuoc","Thoat/no");
end;
function dpq()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon duoc pham <color=fire>Quy<color> muon mua",6,"Mau/cst","Mana/tnt","Mau + Mana/nht","Giai doc/thdd","Tro lai/muathuoc","Thoat/no");
end;
function ksdt()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Kim Sang Duoc (Tieu)<color> muon mua",4,"10 binh (500 luong)/ksdt10","20 binh (1000 luong)/ksdt20","30 binh (1500 luong)/ksdt30","Thoat/no");
end;
function hndt()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Hoi Nguyen Duoc (Tieu)<color> muon mua",4,"10 binh (500 luong)/hndt10","20 binh (1000 luong)/hndt20","30 binh (1500 luong)/hndt30","Thoat/no");
end;
function cddt()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Cuu Don Duoc (Tieu)<color> muon mua",4,"10 binh (800 luong)/cddt10","20 binh (1600 luong)/cddt20","30 binh (2400 luong)/cddt30","Thoat/no");
end;
function gddt()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Giai doc don (Tieu)<color> muon mua",4,"10 binh (250 luong)/gddt10","20 binh (500 luong)/gddt20","30 binh (750 luong)/gddt30","Thoat/no");
end;
function ksdth()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Kim Sang Duoc (Trung Ha)<color> muon mua",4,"10 binh (1000 luong)/ksdth10","20 binh (2000 luong)/ksdth20","30 binh (3000 luong)/ksdth30","Thoat/no");
end;
function hndth()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Hoi Nguyen Duoc (Trung Ha)<color> muon mua",4,"10 binh (1000 luong)/hndth10","20 binh (2000 luong)/hndth20","30 binh (3000 luong)/hndth30","Thoat/no");
end;
function cddth()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Cuu Don Duoc (Trung Ha)<color> muon mua",4,"10 binh (1500 luong)/cddth10","20 binh (3000 luong)/cddth20","30 binh (4500 luong)/cddth30","Thoat/no");
end;
function gddth()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Giai doc don (Trung Ha)<color> muon mua",4,"10 binh (500 luong)/gddth10","20 binh (1000 luong)/gddth20","30 binh (1500 luong)/gddth30","Thoat/no");
end;
function ksdtt()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Kim Sang Duoc (Trung Thuong)<color> muon mua",4,"10 binh (2500 luong)/ksdtt10","20 binh (5000 luong)/ksdtt20","30 binh (7500 luong)/ksdtt30","Thoat/no");
end;
function hndtt()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Hoi Nguyen Duoc (Trung Thuong)<color> muon mua",4,"10 binh (2500 luong)/hndtt10","20 binh (5000 luong)/hndtt20","30 binh (7500 luong)/hndtt30","Thoat/no");
end;
function cddtt()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Cuu Don Duoc (Trung Thuong)<color> muon mua",4,"10 binh (3750 luong)/cddtt10","20 binh (7500 luong)/cddtt20","30 binh (11250 luong)/cddtt30","Thoat/no");
end;
function gddtt()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Giai doc don (Trung Thuong)<color> muon mua",4,"10 binh (1250 luong)/gddtt10","20 binh (2500 luong)/gddtt20","30 binh (3750 luong)/gddtt30","Thoat/no");
end;
function ksdd()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Kim Sang Duoc (Dai)<color> muon mua",4,"10 binh (5000 luong)/ksdd10","20 binh (10000 luong)/ksdd20","30 binh (15000 luong)/ksdd30","Thoat/no");
end;
function hndd()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Hoi Nguyen Duoc (Dai)<color> muon mua",4,"10 binh (5000 luong)/hndd10","20 binh (10000 luong)/hndd20","30 binh (15000 luong)/hndd30","Thoat/no");
end;
function cddd()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Cuu Don Duoc (Dai)<color> muon mua",4,"10 binh (7500 luong)/cddd10","20 binh (15000 luong)/cddd20","30 binh (22500 luong)/cddd30","Thoat/no");
end;
function gddd()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Giai doc don (Dai)<color> muon mua",4,"10 binh (2500 luong)/gddd10","20 binh (5000 luong)/gddd20","30 binh (7500 luong)/gddd30","Thoat/no");
end;
function cst()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Cuu Sinh Tan<color> muon mua",4,"10 binh (20000 luong)/cst10","20 binh (40000 luong)/cst20","30 binh (60000 luong)/cst30","Thoat/no");
end;
function tnt()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Tinh Noi Tan<color> muon mua",4,"10 binh (20000 luong)/tnt10","20 binh (40000 luong)/tnt20","30 binh (60000 luong)/tnt30","Thoat/no");
end;
function nht()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Ngu Hoa Tan<color> muon mua",4,"10 binh (30000 luong)/nht10","20 binh (60000 luong)/nht20","30 binh (90000 luong)/nht30","Thoat/no");
end;
function thdd()
Say("<color=yellow>Hieu Thuoc: <color>Cac ha hay lua chon so luong duoc pham <color=fire>Tan Hoa Di Doc<color> muon mua",4,"10 binh (10000 luong)/thdd10","20 binh (20000 luong)/thdd20","30 binh (30000 luong)/thdd30","Thoat/no");
end;
function ksdt10()
if (GetCash() >= 500) then
Pay(500)
for i=1,10 do AddItem(1,0,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Kim Sang Duoc (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>500 luong<color>, khong the mua")
end
end;
function ksdt20()
if (GetCash() >= 1000) then
Pay(1000)
for i=1,20 do AddItem(1,0,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Kim Sang Duoc (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>1000 luong<color>, khong the mua")
end
end;
function ksdt30()
if (GetCash() >= 1500) then
Pay(1500)
for i=1,30 do AddItem(1,0,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Kim Sang Duoc (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>1500 luong<color>, khong the mua")
end
end;
function hndt10()
if (GetCash() >= 500) then
Pay(500)
for i=1,10 do AddItem(1,1,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Hoi Nguyen Duoc (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>500 luong<color>, khong the mua")
end
end;
function hndt20()
if (GetCash() >= 1000) then
Pay(1000)
for i=1,20 do AddItem(1,1,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Hoi Nguyen Duoc (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>1000 luong<color>, khong the mua")
end
end;
function hndt30()
if (GetCash() >= 1500) then
Pay(1500)
for i=1,30 do AddItem(1,1,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Hoi Nguyen Duoc (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>1500 luong<color>, khong the mua")
end
end;
function cddt10()
if (GetCash() >= 800) then
Pay(800)
for i=1,10 do AddItem(1,2,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Cuu Don Duoc (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>800 luong<color>, khong the mua")
end
end;
function cddt20()
if (GetCash() >= 1600) then
Pay(1600)
for i=1,20 do AddItem(1,2,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Cuu Don Duoc (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>1600 luong<color>, khong the mua")
end
end;
function cddt30()
if (GetCash() >= 2400) then
Pay(2400)
for i=1,30 do AddItem(1,2,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Cuu Don Duoc (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>2400 luong<color>, khong the mua")
end
end;
function gddt10()
if (GetCash() >= 250) then
Pay(250)
for i=1,10 do AddItem(1,3,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Giai Doc Don (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>250 luong<color>, khong the mua")
end
end;
function gddt20()
if (GetCash() >= 500) then
Pay(500)
for i=1,20 do AddItem(1,3,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Giai Doc Don (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>500 luong<color>, khong the mua")
end
end;
function gddt30()
if (GetCash() >= 750) then
Pay(750)
for i=1,30 do AddItem(1,3,0,1,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Giai Doc Don (Tieu)")
else
Talk(1,"no","Cac ha khong du <color=red>750 luong<color>, khong the mua")
end
end;
function ksdth10()
if (GetCash() >= 1000) then
Pay(1000)
for i=1,10 do AddItem(1,0,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Kim Sang Duoc (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>1000 luong<color>, khong the mua")
end
end;
function ksdth20()
if (GetCash() >= 2000) then
Pay(2000)
for i=1,20 do AddItem(1,0,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Kim Sang Duoc (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>2000 luong<color>, khong the mua")
end
end;
function ksdth30()
if (GetCash() >= 3000) then
Pay(3000)
for i=1,30 do AddItem(1,0,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Kim Sang Duoc (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>3000 luong<color>, khong the mua")
end
end;
function hndth10()
if (GetCash() >= 1000) then
Pay(1000)
for i=1,10 do AddItem(1,1,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Hoi Nguyen Duoc (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>1000 luong<color>, khong the mua")
end
end;
function hndth20()
if (GetCash() >= 2000) then
Pay(2000)
for i=1,20 do AddItem(1,1,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Hoi Nguyen Duoc (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>2000 luong<color>, khong the mua")
end
end;
function hndth30()
if (GetCash() >= 3000) then
Pay(3000)
for i=1,30 do AddItem(1,1,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Hoi Nguyen Duoc (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>3000 luong<color>, khong the mua")
end
end;
function cddth10()
if (GetCash() >= 1500) then
Pay(1500)
for i=1,10 do AddItem(1,2,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Cuu Don Duoc (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>1500 luong<color>, khong the mua")
end
end;
function cddth20()
if (GetCash() >= 3000) then
Pay(3000)
for i=1,20 do AddItem(1,2,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Cuu Don Duoc (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>3000 luong<color>, khong the mua")
end
end;
function cddth30()
if (GetCash() >= 4500) then
Pay(4500)
for i=1,30 do AddItem(1,2,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Cuu Don Duoc (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>4500 luong<color>, khong the mua")
end
end;
function gddth10()
if (GetCash() >= 500) then
Pay(500)
for i=1,10 do AddItem(1,3,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Giai Doc Don (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>500 luong<color>, khong the mua")
end
end;
function gddth20()
if (GetCash() >= 1000) then
Pay(1000)
for i=1,20 do AddItem(1,3,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Giai Doc Don (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>1000 luong<color>, khong the mua")
end
end;
function gddth30()
if (GetCash() >= 750) then
Pay(1500)
for i=1,30 do AddItem(1,3,0,2,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Giai Doc Don (Trung Ha)")
else
Talk(1,"no","Cac ha khong du <color=red>1500 luong<color>, khong the mua")
end
end;
function ksdtt10()
if (GetCash() >= 2500) then
Pay(2500)
for i=1,10 do AddItem(1,0,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Kim Sang Duoc (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>2500 luong<color>, khong the mua")
end
end;
function ksdtt20()
if (GetCash() >= 5000) then
Pay(5000)
for i=1,20 do AddItem(1,0,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Kim Sang Duoc (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>5000 luong<color>, khong the mua")
end
end;
function ksdtt30()
if (GetCash() >= 7500) then
Pay(7500)
for i=1,30 do AddItem(1,0,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Kim Sang Duoc (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>7500 luong<color>, khong the mua")
end
end;
function hndtt10()
if (GetCash() >= 2500) then
Pay(2500)
for i=1,10 do AddItem(1,1,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Hoi Nguyen Duoc (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>2500 luong<color>, khong the mua")
end
end;
function hndtt20()
if (GetCash() >= 5000) then
Pay(5000)
for i=1,20 do AddItem(1,1,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Hoi Nguyen Duoc (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>5000 luong<color>, khong the mua")
end
end;
function hndtt30()
if (GetCash() >= 7500) then
Pay(7500)
for i=1,30 do AddItem(1,1,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Hoi Nguyen Duoc (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>7500 luong<color>, khong the mua")
end
end;
function cddtt10()
if (GetCash() >= 3750) then
Pay(3750)
for i=1,10 do AddItem(1,2,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Cuu Don Duoc (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>3750 luong<color>, khong the mua")
end
end;
function cddtt20()
if (GetCash() >= 7500) then
Pay(7500)
for i=1,20 do AddItem(1,2,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Cuu Don Duoc (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>7500 luong<color>, khong the mua")
end
end;
function cddtt30()
if (GetCash() >= 11250) then
Pay(11250)
for i=1,30 do AddItem(1,2,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Cuu Don Duoc (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>11250 luong<color>, khong the mua")
end
end;
function gddtt10()
if (GetCash() >= 1250) then
Pay(1250)
for i=1,10 do AddItem(1,3,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Giai Doc Don (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>1250 luong<color>, khong the mua")
end
end;
function gddtt20()
if (GetCash() >= 2500) then
Pay(2500)
for i=1,20 do AddItem(1,3,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Giai Doc Don (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>2500 luong<color>, khong the mua")
end
end;
function gddtt30()
if (GetCash() >= 3750) then
Pay(3750)
for i=1,30 do AddItem(1,3,0,3,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Giai Doc Don (Trung Thuong)")
else
Talk(1,"no","Cac ha khong du <color=red>3750 luong<color>, khong the mua")
end
end;
function ksdd10()
if (GetCash() >= 5000) then
Pay(5000)
for i=1,10 do AddItem(1,0,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Kim Sang Duoc (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>5000 luong<color>, khong the mua")
end
end;
function ksdd20()
if (GetCash() >= 10000) then
Pay(10000)
for i=1,20 do AddItem(1,0,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Kim Sang Duoc (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>10000 luong<color>, khong the mua")
end
end;
function ksdd30()
if (GetCash() >= 15000) then
Pay(15000)
for i=1,30 do AddItem(1,0,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Kim Sang Duoc (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>15000 luong<color>, khong the mua")
end
end;
function hndd10()
if (GetCash() >= 5000) then
Pay(5000)
for i=1,10 do AddItem(1,1,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Hoi Nguyen Duoc (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>5000 luong<color>, khong the mua")
end
end;
function hndd20()
if (GetCash() >= 10000) then
Pay(10000)
for i=1,20 do AddItem(1,1,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Hoi Nguyen Duoc (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>10000 luong<color>, khong the mua")
end
end;
function hndd30()
if (GetCash() >= 15000) then
Pay(15000)
for i=1,30 do AddItem(1,1,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Hoi Nguyen Duoc (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>15000 luong<color>, khong the mua")
end
end;
function cddd10()
if (GetCash() >= 7500) then
Pay(7500)
for i=1,10 do AddItem(1,2,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Cuu Don Duoc (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>7500 luong<color>, khong the mua")
end
end;
function cddd20()
if (GetCash() >= 15000) then
Pay(15000)
for i=1,20 do AddItem(1,2,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Cuu Don Duoc (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>15000 luong<color>, khong the mua")
end
end;
function cddd30()
if (GetCash() >= 22500) then
Pay(22500)
for i=1,30 do AddItem(1,2,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Cuu Don Duoc (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>22500 luong<color>, khong the mua")
end
end;
function gddd10()
if (GetCash() >= 2500) then
Pay(2500)
for i=1,10 do AddItem(1,3,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Giai Doc Don (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>2500 luong<color>, khong the mua")
end
end;
function gddd20()
if (GetCash() >= 5000) then
Pay(5000)
for i=1,20 do AddItem(1,3,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Giai Doc Don (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>5000 luong<color>, khong the mua")
end
end;
function gddd30()
if (GetCash() >= 7500) then
Pay(7500)
for i=1,30 do AddItem(1,3,0,4,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Giai Doc Don (Dai)")
else
Talk(1,"no","Cac ha khong du <color=red>7500 luong<color>, khong the mua")
end
end;
function cst10()
if (GetCash() >= 20000) then
Pay(20000)
for i=1,10 do AddItem(1,0,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Cuu Sinh Tan")
else
Talk(1,"no","Cac ha khong du <color=red>20000 luong<color>, khong the mua")
end
end;
function cst20()
if (GetCash() >= 40000) then
Pay(40000)
for i=1,20 do AddItem(1,0,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Cuu Sinh Tan")
else
Talk(1,"no","Cac ha khong du <color=red>40000 luong<color>, khong the mua")
end
end;
function cst30()
if (GetCash() >= 60000) then
Pay(60000)
for i=1,30 do AddItem(1,0,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Cuu Sinh Tan")
else
Talk(1,"no","Cac ha khong du <color=red>60000 luong<color>, khong the mua")
end
end;
function tnt10()
if (GetCash() >= 20000) then
Pay(20000)
for i=1,10 do AddItem(1,1,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Tinh Noi Tan")
else
Talk(1,"no","Cac ha khong du <color=red>20000 luong<color>, khong the mua")
end
end;
function tnt20()
if (GetCash() >= 40000) then
Pay(40000)
for i=1,20 do AddItem(1,1,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Tinh Noi Tan")
else
Talk(1,"no","Cac ha khong du <color=red>40000 luong<color>, khong the mua")
end
end;
function tnt30()
if (GetCash() >= 60000) then
Pay(60000)
for i=1,30 do AddItem(1,1,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Tinh Noi Tan")
else
Talk(1,"no","Cac ha khong du <color=red>60000 luong<color>, khong the mua")
end
end;
function nht10()
if (GetCash() >= 30000) then
Pay(30000)
for i=1,10 do AddItem(1,2,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Ngu Hoa Tan")
else
Talk(1,"no","Cac ha khong du <color=red>30000 luong<color>, khong the mua")
end
end;
function nht20()
if (GetCash() >= 60000) then
Pay(60000)
for i=1,20 do AddItem(1,2,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Ngu Hoa Tan")
else
Talk(1,"no","Cac ha khong du <color=red>60000 luong<color>, khong the mua")
end
end;
function nht30()
if (GetCash() >= 90000) then
Pay(90000)
for i=1,30 do AddItem(1,2,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Ngu Hoa Tan")
else
Talk(1,"no","Cac ha khong du <color=red>90000 luong<color>, khong the mua")
end
end;
function thdd10()
if (GetCash() >= 10000) then
Pay(10000)
for i=1,10 do AddItem(1,3,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 10 binh Tan Hoa Di Doc")
else
Talk(1,"no","Cac ha khong du <color=red>10000 luong<color>, khong the mua")
end
end;
function thdd20()
if (GetCash() >= 20000) then
Pay(20000)
for i=1,20 do AddItem(1,3,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 20 binh Tan Hoa Di Doc")
else
Talk(1,"no","Cac ha khong du <color=red>20000 luong<color>, khong the mua")
end
end;
function thdd30()
if (GetCash() >= 30000) then
Pay(30000)
for i=1,30 do AddItem(1,3,0,5,0,0,0) end
Msg2Player("Ban nhan duoc 30 binh Tan Hoa Di Doc")
else
Talk(1,"no","Cac ha khong du <color=red>30000 luong<color>, khong the mua")
end
end;
function no()
end
mình mới tìm hiểu hi vọng nhận đươc sự giúp đỡ của mọi người:-s
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.