tbGift.TaskGourp = Số Taks mới; --task m?i ph?i add vᯠgameserver\setting\player\task_def.txt
tbGift.TaskId_Count = 1;
tbGift.Use_Max =1;
function tbGift:Hotro()
local nCount = me.GetTask(self.TaskGourp, self.TaskId_Count);
local szMsg = "Nhận Hỗ Trợ";
local tbOpt = {};
if (nCount<self.Use_Max) then
table.insert(tbOpt , {"Nhận Thương Ngày", self.NhanHoTro, self});
else
table.insert(tbOpt, {"Bạn Đã Nhận Rồi "});
end
Dialog:Say(szMsg, tbOpt);
end
function tbGift:NhanHoTro()
local tbOpt = {};
local nCount = me.GetTask(self.TaskGourp, self.TaskId_Count);
me.SetTask(self.TaskGourp, self.TaskId_Count, 0);
if nCount >= self.Use_Max then
table.insert(tbOpt, {"Ngươi nhận rồi"});
return 0;
end
if (nCount == 0) then
me.AddBindCoin(400000);
table.insert(tbOpt, {"nhay", self.Chon, self});
me.SetTask(self.TaskGourp, self.TaskId_Count, nCount + 1);
end
Dialog:Say("Chọn phần Thưởng!", tbOpt);
end
function tbGMCard:hotro()
local szMsg = "Hay chon";
local tbOpt = {
{"Do Nam",self.DoNam,self},
{"Do Nu",self.DoNu,self },
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard
oNam()
local szMsg = "Hay chon";
local tbOpt = {
{"He Kim",self.HeKim,self},
{"He Moc",self.HeMoc,self},
{"He Thuy",self.HeThuy,self},
{"He Hoa",self.HeHoa,self},
{"He Tho",self.HeTho,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard
oNu()
local szMsg = "Hay chon";
local tbOpt = {
{"He Kim",self.HeKim1,self},
{"He Moc",self.HeMoc1,self},
{"He Thuy",self.HeThuy1,self},
{"He Hoa",self.HeHoa1,self},
{"He Tho",self.HeTho1,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard:HeKim()
local szMsg = "Hay chon";
local tbOpt ={
{"Do Ngoai",self.KimNgoai,self},
{"Do Noi",self.KimNoi,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard:HeKim1()
local szMsg = "Hay chon";
local tbOpt ={
{"Do Ngoai",self.KimNgoai1,self},
{"Do Noi",self.KimNoi1,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard:HeMoc()
local szMsg = "Hay chon";
local tbOpt ={
{"Do Ngoai",self.MocNgoai,self},
{"Do Noi",self.MocNoi,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard:HeMoc1()
local szMsg = "Hay chon";
local tbOpt ={
{"Do Ngoai",self.MocNgoai1,self},
{"Do Noi",self.MocNoi1,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard:HeThuy()
local szMsg = "Hay chon";
local tbOpt ={
{"Do Ngoai",self.ThuyNgoai,self},
{"Do Noi",self.ThuyNoi,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard:HeThuy1()
local szMsg = "Hay chon";
local tbOpt ={
{"Do Ngoai",self.ThuyNgoai1,self},
{"Do Noi",self.ThuyNoi1,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard:HeHoa()
local szMsg = "Hay chon";
local tbOpt ={
{"Do Ngoai",self.HoaNgoai,self},
{"Do Noi",self.HoaNoi,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard:HeHoa1()
local szMsg = "Hay chon";
local tbOpt ={
{"Do Ngoai",self.HoaNgoai1,self},
{"Do Noi",self.HoaNoi1,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard:HeTho()
local szMsg = "Hay chon";
local tbOpt ={
{"Do Ngoai",self.ThoNgoai,self},
{"Do Noi",self.ThoNoi,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard:HeTho1()
local szMsg = "Hay chon";
local tbOpt ={
{"Do Ngoai",self.ThoNgoai1,self},
{"Do Noi",self.ThoNoi1,self},
}
Dialog:Say(szMsg,tbOpt);
end
function tbGMCard:KimNgoai()
me.AddItem(2,1,548,7,3,10);
me.AddItem(2,1,568,7,3,10);
me.AddItem(2,1,611,10,3,10);
me.AddItem(1,10,1,9,3,10);
me.AddItem(2,8,309,9,3,10);
me.AddItem(2,9,629,9,3,10);
me.AddItem(2,11,309,9,3,10);
me.AddItem(2,4,159,9,3,10);
me.AddItem(2,5,159,9,3,10);
me.AddItem(2,6,160,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:KimNgoai1()
me.AddItem(2,1,548,7,3,10);
me.AddItem(2,1,568,7,3,10);
me.AddItem(2,1,621,7,3,10);
me.AddItem(1,7,2,10,3,10);
me.AddItem(1,10,2,9,3,10);
me.AddItem(2,8,319,9,3,10);
me.AddItem(2,9,639,9,3,10);
me.AddItem(2,11,319,9,3,10);
me.AddItem(2,4,159,9,3,10);
me.AddItem(2,6,160,9,3,10);
me.AddItem(2,5,159,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:KimNoi()
me.AddItem(2,1,558,7,3,10);
me.AddItem(2,1,578,7,3,10);
me.AddItem(1,7,1,9,3,10);
me.AddItem(1,10,1,9,3,10);
me.AddItem(2,8,309,9,3,10);
me.AddItem(2,9,629,9,3,10);
me.AddItem(2,11,309,9,3,10);
me.AddItem(2,4,159,9,3,10);
me.AddItem(2,6,160,9,3,10);
me.AddItem(2,5,159,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:KimNoi1()
me.AddItem(2,1,558,7,3,10);
me.AddItem(2,1,578,7,3,10);
me.AddItem(1,7,2,10,3,10);
me.AddItem(1,10,2,9,3,10);
me.AddItem(2,8,319,9,3,10);
me.AddItem(2,9,639,9,3,10);
me.AddItem(2,11,319,9,3,10);
me.AddItem(2,11,339,9,3,10);
me.AddItem(2,4,159,9,3,10);
me.AddItem(2,6,160,9,3,10);
me.AddItem(2,5,159,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:MocNgoai()
me.AddItem(2,1,968,7,3,10);
me.AddItem(2,1,588,7,3,10);
me.AddItem(2,2,651,7,3,10);
me.AddItem(2,2,77,7,3,10);
me.AddItem(2,2,87,7,3,10);
me.AddItem(2,2,97,7,3,10);
me.AddItem(1,7,1,9,3,10);
me.AddItem(1,10,1,9,3,10);
me.AddItem(2,8,329,9,3,10);
Me.AddItem(2,9,649,9,3,10);
me.AddItem(2,11,329,9,3,10);
me.AddItem(2,4,169,9,3,10);
me.AddItem(2,6,170,9,3,10);
me.AddItem(2,5,169,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:MocNgoai1()
me.AddItem(2,1,968,7,3,10);
me.AddItem(2,1,588,7,3,10);
me.AddItem(2,2,661,7,3,10);
me.AddItem(1,7,2,10,3,10);
me.AddItem(1,10,2,9,3,10);
me.AddItem(2,8,339,9,3,10);
Me.AddItem(2,9,659,9,3,10);
me.AddItem(2,11,339,9,3,10);
me.AddItem(2,4,169,9,3,10);
me.AddItem(2,6,170,9,3,10);
me.AddItem(2,5,169,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:MocNoi()
me.AddItem(2,1,598,7,3,10); chuong
me.AddItem(2,1,978,7,3,10); kiem
me.AddItem(1,7,1,9,3,10);
me.AddItem(1,10,1,9,3,10);
me.AddItem(2,8,329,9,3,10);
Me.AddItem(2,9,649,9,3,10);
me.AddItem(2,11,329,9,3,10);
me.AddItem(2,4,169,9,3,10);
me.AddItem(2,6,170,9,3,10);
me.AddItem(2,5,169,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:MocNoi1()
me.AddItem(2,1,598,7,3,10); chuong
me.AddItem(2,1,978,7,3,10); kiem
me.AddItem(1,7,2,10,3,10);
me.AddItem(1,10,2,9,3,10);
me.AddItem(2,8,339,9,3,10);
Me.AddItem(2,9,659,9,3,10);
me.AddItem(2,11,339,9,3,10);
me.AddItem(2,4,169,9,3,10);
me.AddItem(2,6,170,9,3,10);
me.AddItem(2,5,169,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:ThuyNgoai()
me.AddItem(2,1,618,7,3,10); chi doan
me.AddItem(2,1,608,7,3,10); dao
me.AddItem(2,1,638,7,3,10); kiem
me.AddItem(2,1,691,7,3,10); kiem
me.AddItem(2,2,87,7,3,10);
me.AddItem(2,2,97,7,3,10);
me.AddItem(1,7,1,9,3,10);
me.AddItem(1,10,1,9,3,10);
me.AddItem(2,8,349,9,3,10);
Me.AddItem(2,9,709,9,3,10);
me.AddItem(2,11,349,9,3,10);
me.AddItem(2,4,179,9,3,10);
me.AddItem(2,6,180,9,3,10);
me.AddItem(2,5,179,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:ThuyNgoai1()
me.AddItem(2,1,618,7,3,10); chi doan
me.AddItem(2,1,608,7,3,10); dao
me.AddItem(2,1,638,7,3,10); kiem
me.AddItem(2,1,278,7,3,10); kiem
me.AddItem(2,1,701,7,3,10); kiem
me.AddItem(1,7,2,10,3,10);
me.AddItem(1,10,2,9,3,10);
me.AddItem(2,8,359,9,3,10);
Me.AddItem(2,9,719,9,3,10);
me.AddItem(2,11,359,9,3,10);
me.AddItem(2,4,179,9,3,10);
me.AddItem(2,6,180,9,3,10);
me.AddItem(2,5,179,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:ThuyNoi()
me.AddItem(2,1,628,7,3,10); chuong
me.AddItem(2,1,,638,3,10); kiem thuy
me.AddItem(2,1,638,7,3,10); kiem
me.AddItem(2,1,278,7,3,10); kiem
me.AddItem(1,7,1,9,3,10);
me.AddItem(1,10,1,9,3,10);
me.AddItem(2,8,349,9,3,10);
Me.AddItem(2,9,709,9,3,10);
me.AddItem(2,11,349,9,3,10);
me.AddItem(2,4,179,9,3,10);
me.AddItem(2,6,180,9,3,10);
me.AddItem(2,5,179,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:ThuyNoi1()
me.AddItem(2,1,628,7,3,10); chuong
me.AddItem(2,1,,638,3,10); kiem thuy
me.AddItem(2,1,638,7,3,10); kiem
me.AddItem(2,1,278,7,3,10); kiem
me.AddItem(1,7,2,10,3,10);
me.AddItem(1,10,2,9,3,10);
me.AddItem(2,8,359,9,3,10);
Me.AddItem(2,9,719,9,3,10);
me.AddItem(2,11,359,9,3,10);
me.AddItem(2,4,179,9,3,10);
me.AddItem(2,6,180,9,3,10);
me.AddItem(2,5,179,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:HoaNgoai()
me.AddItem(2,1,658,7,3,10); chuong cai
me.AddItem(2,1,558,7,3,10); chuong cai
me.AddItem(2,2,751,7,3,10);
me.AddItem(1,7,1,9,3,10);
me.AddItem(1,10,1,9,3,10);
me.AddItem(2,8,369,9,3,10);
Me.AddItem(2,9,749,9,3,10);
me.AddItem(2,11,369,9,3,10);
me.AddItem(2,4,189,9,3,10);
me.AddItem(2,6,190,9,3,10);
me.AddItem(2,5,189,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:HoaNgoai1()
me.AddItem(2,1,658,7,3,10); chuong cai
me.AddItem(2,1,558,7,3,10); chuong cai
me.AddItem(2,2,761,7,3,10);
me.AddItem(1,7,2,10,3,12);
me.AddItem(1,10,2,9,3,10);
me.AddItem(2,8,379,9,3,10);
Me.AddItem(2,9,759,9,3,10);
me.AddItem(2,11,379,9,3,10);
me.AddItem(2,4,189,9,3,10);
me.AddItem(2,6,190,9,3,10);
me.AddItem(2,5,189,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:HoaNoi()
me.AddItem(2,1,668,7,3,10); chuong cai
me.AddItem(2,1,678,7,3,10); ma nhan
me.AddItem(1,7,1,9,3,12);
me.AddItem(1,10,1,9,3,10);
me.AddItem(1,10,2,9,3,10);
me.AddItem(2,8,369,9,3,10);
Me.AddItem(2,9,749,9,3,10);
me.AddItem(2,11,369,9,3,10);
me.AddItem(2,4,189,9,3,10);
me.AddItem(2,6,190,9,3,10);
me.AddItem(2,5,189,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:HoaNoi1()
me.AddItem(2,1,668,7,3,10); chuong cai
me.AddItem(2,1,678,7,3,10); ma nhan
me.AddItem(1,7,2,10,3,10);
me.AddItem(1,10,2,9,3,10);
me.AddItem(2,8,379,9,3,10);
Me.AddItem(2,9,759,9,3,10);
me.AddItem(2,11,379,9,3,10);
me.AddItem(2,4,189,9,3,10);
me.AddItem(2,6,190,9,3,10);
me.AddItem(2,5,189,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:ThoNgoai()
me.AddItem(2,1,698,7,3,10); kiem vo
me.AddItem(2,1,688,7,3,10); chuong cai
me.AddItem(2,2,791,7,3,10);
me.AddItem(1,7,1,9,3,10);
me.AddItem(1,10,1,9,3,10);
me.AddItem(2,8,389,9,3,10);
Me.AddItem(2,9,789,9,3,10);
me.AddItem(2,11,389,9,3,10);
me.AddItem(2,4,199,9,3,10);
me.AddItem(2,6,200,9,3,10);
me.AddItem(2,5,199,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:ThoNgoai1()
me.AddItem(2,1,698,7,3,10); kiem vo
me.AddItem(2,1,688,7,3,10); chuong cai
me.AddItem(2,2,801,7,3,10);
me.AddItem(1,7,2,10,3,10);
me.AddItem(1,10,2,9,3,10);
me.AddItem(2,8,399,9,3,10);
Me.AddItem(2,9,799,9,3,10);
me.AddItem(2,11,399,9,3,10);
me.AddItem(2,4,199,9,3,10);
me.AddItem(2,6,200,9,3,10);
me.AddItem(2,5,199,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:ThoNoi()
me.AddItem(2,1,708,7,3,10); kiem vo
me.AddItem(2,1,718,7,3,10); chuong cai
me.AddItem(1,7,1,9,3,10);
me.AddItem(1,10,1,9,3,10);
me.AddItem(2,8,389,9,3,10);
Me.AddItem(2,9,789,9,3,10);
me.AddItem(2,11,379,9,3,10);
me.AddItem(2,4,199,9,3,10);
me.AddItem(2,6,200,9,3,10);
me.AddItem(2,5,199,9,3,10);
--Chua bo trang bi vao******************************
end
function tbGMCard:ThoNoi1()
me.AddItem(2,1,708,7,3,10); kiem vo
me.AddItem(2,1,718,7,3,10); chuong cai
me.AddItem(1,7,2,10,3,10);
me.AddItem(1,10,2,9,3,10);
me.AddItem(2,8,399,9,3,10);
Me.AddItem(2,9,799,9,3,10);
me.AddItem(2,11,389,9,3,10);
me.AddItem(2,4,199,9,3,10);
me.AddItem(2,6,200,9,3,10);
me.AddItem(2,5,199,9,3,10);
end