[KT] Share code add đồng cho nhân vật?
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Trang 1 của 6 1 2 3 ... CuốiCuối
Kết quả 1 đến 10 của 53
  1. #1
    Vi phạm quy định VNGameZoneVN's Avatar
    Ngày tham gia
    Mar 2012
    Đang ở
    https://t.me*********
    Bài viết
    427
    Thanks
    202
    Thanked 564 Times in 74 Posts

    Share code add đồng cho nhân vật?

    ĐÂY LÀ CODE MÌNH LÀM ADD ĐỒNG CHO NHÂN VẬT BẠN MUỐN ADD CHO AI CŨNG DC. MIỄN LÀ NGƯỜI ĐÓ ONLINE TRONG SV. Pro biết rồi thì xin đừng chém em nha
    MUỐN ADD DỒNG CHO AI THÌ NHẬP TÊN NHÂN VẬT ĐÓ RỒI ADD VÀO.

    MÌNH ADD CODE NÀY VÀO NPC Hỗ Trợ Tân Thủ


    Code:
    --NPC Test1
    --Require("\\script\\misc\\gm.lua");
    --Require("\\script\\misc\\gm_player.lua");
    --Require("\\script\\misc\\gm_role.lua");
    
    
    
    local tbTest1 = Npc:GetClass("test1");
    
    function tbTest1:OnDialog()
    local szMsg = "Chức Năng KT <color=yellow>Tam Thanh<color>";
    local tbOpt = { 
    {"Ta Muốn Trùng Sinh", self.tuluyen1, self},
    {"Ta Muốn Danh Hiệu", self.DanhHieu, self},
    {"Ta Muốn Nhận Trang Bị", self.Trangbichomemcacloai, self},
    {"Nhận Phi Phong Và Ngựa Mới(VIP)", self.PhiPhongNew, self},
    {"<color=yellow>các loại shop",self.cacloaishop,self},
    --{"Ta Muốn Nhận Thưởng Hằng Ngày", self.nhanthuong, self},
    {"Ta Muốn Nhận Thưởng cấp 35", self.nhanqua, self},
    {"Nhận túi tân thủ", self.tuitanthu, self},
    {"Học Max kỹ năng sống", self.kynangsong, self},
    {"Admin Nạp Đồng Cho member", self.Adminmoinapdc, self},
    {"<color=green>Vật Phẩm Cưới <color>",self.VatPhamcuoi,self},
    {"<color=white>Ero 2012<color>",self.Ero,self},
    {"<color=white>Mảnh ghép cực phẩn<color>",self.ManhGhep,self},
    {"Để Ta Suy Nghỉ"},
    };
    Dialog:Say(szMsg, tbOpt);
    end
    -------------------
    -----------------------
    
    -----------------
    function tbTest1:VatPhamcuoi()
    	local szMsg = "Xin hãy chọn:";
    	local tbOpt = 
    	{
    		{"Vật Phẩm Cưới <color=green>Hiệp Sĩ<color>",self.VatPham1,self},
    		{"Vật Phẩm Cưới <color=blue>Quý Tộc<color>",self.VatPham2,self},
    		{"Vật Phẩm Cưới <color=yellow>Vương Hầu<color>",self.VatPham3,self},
    		{"Vật Phẩm Cưới <color=gold>Hoàng Gia<color>",self.VatPham4,self},
    		{"<color=white>Hoa Tình x10000<color>",self.HoaTinh,self},
    		{"Kết Thúc"};
    			};
    	Dialog:Say(szMsg, tbOpt);
    end
    
    -------------------
    -------------------
    
    -----------------
    --------------------
    function tbTest1:DanhHieu()
    	local szMsg = "Xin hãy chọn:";
    	local tbOpt = 
    	{
    		{"Hiệp Lữ",self.HiepLu,self};
    		{"Chiến Quốc Nguyên Soái",self.ChienQuocNguyenSoai,self};
    		{"Giang Hồ",self.GiangHo,self};
    		{"Hoạt Động",self.HoatDong,self};
    		{"Tự Tạo",self.TuTao,self};
    		{"Danh Hiệu Khác",self.DanhHieuKhac,self};
    		{"Kết Thúc"};
    			};
    	Dialog:Say(szMsg, tbOpt);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:HiepLu()
    	local szMsg = "Xin hãy chọn:";
    	local tbOpt = 
    	{
    		{"Hiểu Mộng La Thường",self.HieuMongLaThuong,self};
    		{"Thương Ưng Mê Điệp",self.ThuongUngMeDiep,self};
    		{"Bá Đạo Server",self.BaDaoServer,self};
    			};
    	Dialog:Say(szMsg, tbOpt);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:HieuMongLaThuong()
    	me.AddTitle(13, 1, 2, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ThuongUngMeDiep()
    	me.AddTitle(13, 1, 1, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:BaDaoServer()
    	me.AddTitle(13, 1, 3, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ChienQuocNguyenSoai()
    	me.AddTitle(2, 3, 1, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:GiangHo()
    	local szMsg = "Xin hãy chọn:";
    	local tbOpt = 
    	{
    		{"Kim Long Lang Nhân",self.KimLongLangNhan,self};
    		{"Kim Ngọc Giai Nhân",self.KimNgocGiaiNhan,self};
    		{"Bôn tẩu giang hồ",self.BonTauGiangHo,self};
    		{"Phi Kỵ Tiếu Càn Khôn",self.PhiKyTieuCanKhon,self};
    		{"Nhất Lãm Chúng Sơn Tiểu",self.NhatLamChungSonTieu,self};
    			};
    	Dialog:Say(szMsg, tbOpt);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:KimLongLangNhan()
    	me.AddTitle(5, 13, 1, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:KimNgocGiaiNhan()
    	me.AddTitle(5, 13, 2, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:BonTauGiangHo()
    	me.AddTitle(5, 14, 1, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:PhiKyTieuCanKhon()
    	me.AddTitle(5, 15, 1, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:NhatLamChungSonTieu()
    	me.AddTitle(5, 16, 1, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:HoatDong()
    	local szMsg = "Xin hãy chọn:";
    	local tbOpt = 
    	{
    		{"Thu Thủy Y Nhân",self.ThuThuyYnhan,self};
    		{"Khuynh Quốc Khuynh Thành",self.KhuynhQuocKhuynhThanh,self};
    		{"Võ Lâm Thập Đại Mỹ Nữ",self.VoLamThapDaiMyNu,self};
    		{"Võ lâm đệ nhất mỹ nữ",self.VoLamDeNhatMyNu,self};
    		{"Danh hiệu VIP - 1",self.DanhHieuVip1,self};
    		{"Danh hiệu VIP - 2",self.DanhHieuVip2,self};
    		{"Danh hiệu VIP - 3",self.DanhHieuVip3,self};
    		{"Võ Lâm Thế Gia",self.VoLamTheGia,self};
    		{"Phóng Viên",self.PhongVien,self};
    			};
    	Dialog:Say(szMsg, tbOpt);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ThuThuyYnhan()
    	me.AddTitle(6, 6, 2, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:KhuynhQuocKhuynhThanh()
    	me.AddTitle(6, 6, 4, 10);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:VoLamThapDaiMyNu()
    	me.AddTitle(6, 6, 5, 10);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:VoLamDeNhatMyNu()
    	me.AddTitle(6, 6, 6, 11);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:DanhHieuVip1()
    	me.AddTitle(6, 7, 1, 8);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:DanhHieuVip2()
    	me.AddTitle(6, 7, 2, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:DanhHieuVip3()
    	me.AddTitle(6, 7, 3, 10);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:VoLamTheGia()
    	me.AddTitle(6, 14, 1, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:PhongVien()
    	me.AddTitle(6, 19, 1, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:DanhHieuKhac()
    	local szMsg = "Xin hãy chọn:";
    	local tbOpt = 
    	{
    		{"Fans Liên Đấu",self.FansLienDau,self};
    		{"Độc Cô Cầu Bại",self.DocCoCauBai,self};
    		{"Thiên Hạ Vô Địch",self.ThienHaVoDich,self};
    		{"Thiên Hạ Vô Song",self.ThienHaVoSong,self};
    		{"Võ Lâm Chí Tôn",self.VoLamChiTon,self};
    			};
    	Dialog:Say(szMsg, tbOpt);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:FansLienDau()
    	me.AddTitle(6, 24, 1, 9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:DocCoCauBai()
    	me.AddTitle(6, 57, 1, 1);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ThienHaVoDich()
    	me.AddTitle(6, 56, 1, 1);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ThienHaVoSong()
    	me.AddTitle(6, 60, 1, 1);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:VoLamChiTon()
    	me.AddTitle(6, 61, 1, 1);
    end
    -------------------
    ---------------------
    -----------------
    function tbTest1:ManhGhep()
    local szMsg = "Xin hãy chọn:";
    local tbOpt = 
    {	
    {"Rương Anh Hùng",self.RuongAnhHung,self},
    {"Rương Mảnh Ghép Cực Phẩm",self.RuongManhGhepCucPham,self},
    {"Mảnh Ghép Vũ Khí Cực Phẩm",self.ManhGhepVuKhiCucPham,self},
    {"Mảnh Ghép Y Phục Cực Phẩm",self.ManhGhepYPhucCucPham,self},
    {"Mảnh Ghép Giới Chỉ Cực Phẩm",self.ManhGhepGioiChiCucPham,self},
    {"Mảnh Ghép Hạng Liên Cực Phẩm",self.ManhGhepHangLienCucPham,self},
    {"Mảnh Ghép Hộ Phù Cực Phẩm",self.ManhGhepHoPhuCucPham,self},
    {"Mảnh Ghép Như Hài Cực Phẩm",self.ManhGhepNhuHaiCucPham,self},
    {"Mảnh Ghép Yêu Đái Cực Phẩm",self.ManhGhepYeuDaiCucPham,self},
    {"Mảnh Ghép Thiên Mão Cực Phẩm",self.ManhGhepThienMaoCucPham,self},
    {"Mảnh Ghép Hộ Uyển Cực Phẩm",self.ManhGhepHoUyenCucPham,self},
    {"Mảnh Ghép Ngọc Bội Cực Phẩm",self.ManhGhepNgocBoiCucPham,self},
    {"Bảo Rương Mảnh Ghép",self.BaoRuongManhGhep,self},
    {"Rương Đồng hành",self.RuongDongHanh,self},
    {"Kết Thúc"},
    };
    Dialog:Say(szMsg,tbOpt);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:RuongAnhHung()
    me.AddItem(18,1,1190,1);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:RuongManhGhepCucPham()
    me.AddItem(18,1,1190,2);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ManhGhepVuKhiCucPham()
    me.AddItem(18,1,1192,2);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ManhGhepYPhucCucPham()
    me.AddItem(18,1,1192,3);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ManhGhepGioiChiCucPham()
    me.AddItem(18,1,1192,4);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ManhGhepHangLienCucPham()
    me.AddItem(18,1,1192,5);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ManhGhepHoPhuCucPham()
    me.AddItem(18,1,1192,6);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ManhGhepNhuHaiCucPham()
    me.AddItem(18,1,1192,7)
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ManhGhepYeuDaiCucPham()
    me.AddItem(18,1,1192,8);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ManhGhepThienMaoCucPham()
    me.AddItem(18,1,1192,9);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ManhGhepHoUyenCucPham()
    me.AddItem(18,1,1192,10);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:ManhGhepNgocBoiCucPham()
    me.AddItem(18,1,1192,11);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:BaoRuongManhGhep()
    me.AddItem(18,1,1190,4);
    end
    ----------------------------------------------------------------------------------
    function tbTest1:RuongDongHanh()
    me.AddItem(18,1,1190,3);
    end
    
    
    
    
    function tbTest1:Ero()
    me.AddItem(18,1,1196,1);
    me.AddItem(18,1,1197,1);
    me.AddItem(18,1,1198,1);
    me.AddItem(18,1,687,1);
    end
    
    function tbTest1:kynangsong()
    	for i=1,10 do me.SaveLifeSkillLevel(i,120) end;
    	me.Msg(string.format("Đã max toàn bộ kỹ năng sống"));
    end
    
    function tbTest1:VatPham1()
    me.AddItem(18,1,603,1);
    me.AddItem(18,1,595,1);
    me.AddItem(18,1,569,1);
    end
    
    function tbTest1:VatPham2()
    me.AddItem(18,1,603,2);
    me.AddItem(18,1,595,2);
    me.AddItem(18,1,569,1);
    end
    function tbTest1:VatPham3()
    me.AddItem(18,1,603,3);
    me.AddItem(18,1,595,3);
    me.AddItem(18,1,569,1);
    end
    
    function tbTest1:VatPham4()
    me.AddItem(18,1,603,4);
    me.AddItem(18,1,595,4);
    me.AddItem(18,1,569,1,0);
    end
    function tbTest1:HoaTinh()
    me.AddItem(18,1,607,1);
    end
    
    
    
    
    ------------------------------
    ----------------------------------
    function tbTest1:PhiPhongNew()
     local nSeries = me.nSeries;
     local szMsg = "Chọn lấy <color=yellow>Phi Phong<color> mà bạn cần nhé ^^";
     local tbOpt = {
      {"<color=purple>Trục Nhật<color> - <color=yellow>Lăng Thiên<color> <color=blue>[Nam]    <color>",self.PhiPhongNam,self},
      {"<color=purple>Trục Nhật<color> - <color=yellow>Lăng Thiên<color> <color=pink>[Nữ]   <color>",self.PhiPhongNu,self},
      {"Tuyết Mã",self.TuyetMa,self}, 
      {"Hãn Huyết Thần Mã",self.NguaDo,self};  
      {"Kim Mao Sư Tử",self.kmaosutu,self}; 
      {"Bạch Mao Sư Tử",self.bmaosutu,self};  
      {"Kỳ Lân Xanh",self.kylanxanh,self}; 
      {"lạc đà vip 1",self.lacdao1,self}, 
      {"lạc đà vip 2",self.lacdao2,self}, 
      {"lạc đà vip 3",self.lacdao3,self}, 
       {"Thần thú 1",self.thanthu1,self}, 
        {"Thần thú 2",self.thanthu2,self}, 
    	 {"Thần thú 3",self.thanthu3,self},
    	 {"Tuyết Vũ Thiên Hương",self.TuyetVuThienHuong,self},
      {"Kết Thúc Đối Thoại"}, 
      -- {"phi ưng lửa",self.phiung,self}, 
       }
     Dialog:Say(szMsg,tbOpt);
    end
    ----------------------------------
    function tbTest1:PhiPhongNam()
     local nSeries = me.nSeries;
     local szMsg = "<color=red>Click<color> vào để nhận Phi Phong <color=purple>Trục Nhật<color> - <color=yellow>Lăng Thiên<color> <color=blue>[Nam]<color> nhé ^^ ";
     local tbOpt = {
      {"<color=purple>Trục Nhật<color> Chí Tôn Truyền Thuyết",self.TrucNhatChiTonNam,self},
      {"<color=purple>Trục Nhật<color> Vô Song Vương Giả",self.TrucNhatVoSongNam,self},
      {"<color=yellow>Lăng Thiên<color> Chí Tôn Truyền Thuyết",self.LangThienChiTonNam,self},
      {"<color=yellow>Lăng Thiên<color> Vô Song Vương Giả",self.LangThienVoSongNam,self},
      
       }
     Dialog:Say(szMsg,tbOpt);
    end
    
    function tbTest1:TuyetVuThienHuong()
    me.AddItem(1,12,20063,10);
    end
    
    function tbTest1:thanthu1()
    me.AddItem(1,12,20059,10);
    end
    function tbTest1:thanthu2()
    me.AddItem(1,12,20060,10);
    end
    function tbTest1:thanthu3()
    me.AddItem(1,12,20061,10);
    end
    
    
    function tbTest1:kylanxanh()
    me.AddItem(18,1,1285,4);
    end  
    
    -------------
    
    ----------------------------------------------------------------------------------
    
    
    ---------------
    
    function tbTest1:NguaDo()
    me.AddItem(1,12,61,4);
    end  
    function tbTest1:lacdao1()
    me.AddItem(1,12,56,4);--lac da 01
    end
    function tbTest1:lacdao2()
    me.AddItem(1,12,57,4);--lac da 02
    end
    function tbTest1:lacdao3()
    me.AddItem(1,12,58,4);--lac da 03
    end
    
    function tbTest1:kmaosutu()
    me.AddItem(1,12,50,4);--lac da 03
    end
    
    function tbTest1:bmaosutu()
    me.AddItem(1,12,51,4);--lac da 03
    end
    
    
    
    function tbTest1:TuyetMa()
    me.AddItem(1,12,55,4);
    end 
    
    -----------------------------------
    function tbTest1:TrucNhatChiTonNam()
    me.AddItem(1,17,11,9);
    end
    -----------------------------------
    function tbTest1:TrucNhatVoSongNam()
    me.AddItem(1,17,11,10);
    end
    -----------------------------------
    function tbTest1:LangThienChiTonNam()
    me.AddItem(1,17,13,9);
    end
    -----------------------------------
    function tbTest1:LangThienVoSongNam()
    me.AddItem(1,17,13,10);
    end
    -----------------------------------
    function tbTest1:PhiPhongNu()
     local nSeries = me.nSeries;
     local szMsg = "<color=red>Click<color> vào để nhận Phi Phong <color=purple>Trục Nhật<color> - <color=yellow>Lăng Thiên<color> <color=pink>[Nữ]<color> nhé ^^ ";
     local tbOpt = {
      {"<color=purple>Trục Nhật<color> Chí Tôn Truyền Thuyết",self.TrucNhatChiTonNu,self},
      {"<color=purple>Trục Nhật<color> Vô Song Vương Giả",self.TrucNhatVoSongNu,self},
      {"<color=yellow>Lăng Thiên<color> Chí Tôn Truyền Thuyết",self.LangThienChiTonNu,self},
      {"<color=yellow>Lăng Thiên<color> Vô Song Vương Giả",self.LangThienVoSongNu,self},
       }
     Dialog:Say(szMsg,tbOpt);
    end
    ---------------------------------
    function tbTest1:TrucNhatChiTonNu()
    me.AddItem(1,17,12,9);
    end
    -----------------------------------
    function tbTest1:TrucNhatVoSongNu()
    me.AddItem(1,17,12,10);
    end
    -----------------------------------
    function tbTest1:LangThienChiTonNu()
    me.AddItem(1,17,14,9);
    end
    -----------------------------------
    function tbTest1:LangThienVoSongNu()
    me.AddItem(1,17,14,10);
    end
    -------------------------
    ------------------------
    
    
    
    
    
    function tbTest1:tuitanthu()
    		local nCount = me.GetItemCountInBags(18,1,351,1);
    		if (nCount == 0) then
    			local tbNewPlayerGiftItem = { 18, 1, 351, 1 }
    			local tbBaseProp = KItem.GetItemBaseProp(unpack(tbNewPlayerGiftItem));
    			if not tbBaseProp then
    				return;
    			end
    			
    			local tbItem =
    			{
    				nGenre		= tbNewPlayerGiftItem[1],
    				nDetail		= tbNewPlayerGiftItem[2],
    				nParticular	= tbNewPlayerGiftItem[3],
    				nLevel		= tbNewPlayerGiftItem[4],
    				nSeries		= (tbBaseProp.nSeries > 0) and tbBaseProp.nSeries or 0,
    				bBind		= KItem.IsItemBindByBindType(tbBaseProp.nBindType),
    				nCount 		= 1;
    			};
    		
    			if (0 == me.CanAddItemIntoBag(tbItem)) then
    				me.Msg("Hành trang đầy");
    				return;
    			end	
    		
    			tbNewPlayerGiftItem[5] = tbItem.nSeries;
    			me.AddItem(unpack(tbNewPlayerGiftItem));
    			me.Msg("Nhận được Túi tân thủ !");			
    		else
    			Dialog:Say("<color=red> Bạn đã có Túi tân thủ <color>");
    		end	
    end
    ---------------------------------------------
    --------------------------------
    --function tbTest1:Tuitanthu()
    --me.AddItem(18,1,351,1);
    --end
    ----------------------------------
    ----------------------------------
    
    function tbTest1:tuluyen1()
    if (me.nLevel < 150) then
    Dialog:Say("Công lực của bạn còn yếu, tới <color=yellow>cấp 150<color> Hãy gặp ta nha.");
    return 0;
    end;
    
    	me.ResetFightSkillPoint();
    	me.JoinFaction(0);
    	me.SetTask(2,1,1);
    	me.UnAssignPotential();
    	me.AddLevel(10 - me.nLevel);
    	me.AddPotential(100)
    	me.AddFightSkillPoint(10);
    	me.KickOut();
    	Dialog:Say("<color=yellow>Trùng Sinh Thành Công<color> Hãy gặp ta nha.");
    	me.Msg("Đã Trùng Sinh!");
    end
    
    	
    
    -------------------
    ---nạp card
    -----------------
    ------------------
    
    
    -----------------
    --------------
    ---------------
    ---hàm admin nap đồng và đồ + cấp cho member
    function tbTest1:Adminmoinapdc()
    
    
    	local szMsg = "Ta có thể giúp gì cho nguoi";
    	local tbOpt = {};
    	if (me.szName == "BáVương" ) or (me.szName == "MộngNhư" ) then
    	table.insert(tbOpt, {"Chức năng Admin" , self.AskRoleName, self});
    	end
    	table.insert(tbOpt, {"Ta chỉ ghé ngang qua"});
    	Dialog:Say(szMsg, tbOpt);
    end
    
    function tbTest1:AskRoleName()
     Dialog:AskString("Tên nhân vật", 16, self.OnInputRoleName, self);
    end
    function tbTest1:OnInputRoleName(szRoleName)
     local nPlayerId = KGCPlayer.GetPlayerIdByName(szRoleName);
     if (not nPlayerId) then
      Dialog:Say("Tên này không tồn tại!", {"Nhập lại", self.AskRoleName, self}, {"Kết thúc đối thoại"});
      return;
     end
     
     self:ViewPlayer(nPlayerId);
    end
    
    --------------
    function tbTest1:ViewPlayer(nPlayerId)
    
    local szMsg = "Ta có thể giúp gì cho ngươi";
    local tbOpt = {
    {"Nạp Đồng Ngay", self.Napdong, self, nPlayerId },
    {"Cho Lên Cấp", self.Lencapchomem, self, nPlayerId },
    {"Cho Nhận Đồ", self.Chomemnhando, self, nPlayerId },
    {"Kết thúc đối thoại"},
    };
    Dialog:Say(szMsg, tbOpt);
    end
    -----------------------------
    ------------------------------
    
    
    ------------------------
    -------------------------
    function tbTest1:Napdong(nPlayerId)
        Dialog:AskNumber("Nhập số đồng .", 2000000000, self.ConSo, self,nPlayerId);--Nhập số đồng muốn nạp cho người chơi
    
    end
    function tbTest1:ConSo(nPlayerId,szSoDong)
        local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    pPlayer.AddJbCoin(szSoDong);
    end
    ------------
    function tbTest1:Lencapchomem(nPlayerId)
    	local szMsg = "Ta có thể giúp gì cho ngươi";
    	local tbOpt = { 		
    		{"Nhận Kinh Nghiệm Cấp 10<color>",self.LenLevel110,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 20<color>",self.LenLevel120,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 30<color>",self.LenLevel130,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 40<color>",self.LenLevel140,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 50<color>",self.LenLevel150,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 60<color>",self.LenLevel160,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 70<color>",self.LenLevel170,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 80<color>",self.LenLevel180,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 90<color>",self.LenLevel190,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 100<color>",self.LenLevel1100,self,nPlayerId},
    		{"Trang Sau >>>",self.lsDiemKinhNghiem12,self,nPlayerId},
    	{"Ta Chỉ Xem Qua Thôi..."},
    	};
    	Dialog:Say(szMsg, tbOpt);
    end
    
    
    function tbTest1:lsDiemKinhNghiem12(nPlayerId)
    local szMsg = "Ta có thể giúp gì cho ngươi";
    	local tbOpt = { 		
    		{"Nhận Kinh Nghiệm Cấp 110<color>",self.LenLevel1110,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 120<color>",self.LenLevel1120,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 130<color>",self.LenLevel1130,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 140<color>",self.LenLevel1140,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 150<color>",self.LenLevel1150,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 180<color>",self.LenLevel1180,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 200<color>",self.LenLevel1200,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 210<color>",self.LenLevel1210,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 220<color>",self.LenLevel1220,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 230<color>",self.LenLevel1230,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 240<color>",self.LenLevel1240,self,nPlayerId},
    		{"Nhận Kinh Nghiệm Cấp 255<color>",self.LenLevel1255,self,nPlayerId},
    		--{"Nhận 100 Triệu Điểm Kinh Nghiệm",self.DiemKinhNghiem,self},
    		--{"Bánh Ít Thịt Heo (10c)",self.BanhItThitHeo,self},
    		{"<<< Trang Trước",self.Lencapchomem,self,nPlayerId},
    	{"Ta Chỉ Xem Qua Thôi..."},
    	};
    	Dialog:Say(szMsg, tbOpt);
    end
    -------------
    function tbTest1:Chomemnhando(nPlayerId)
    local szMsg = "Ta có thể giúp gì cho ngươi";
    local tbOpt = {
    {"<color=yellow>Nhận Đồ set +16<color>",self.DoCuoi12,self,nPlayerId},
    {"Kết thúc đối thoại"},
    };
    Dialog:Say(szMsg, tbOpt);
    end
    -------------
    ---------------
    ------------------
    
    -- đồ cuối 12 cho mem 
    function tbTest1:DoCuoi12(nPlayerId)
    local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    local nSeries = pPlayer.nSeries;
     local szMsg = "Hay chon";
     local tbOpt = {
      {"Đồ Ngoại Công",self.Dongoai,self,nPlayerId},
      {"Đồ Nội Công",self.Donoi,self,nPlayerId},
      {"Kết thúc đối thoại"},
     }
     Dialog:Say(szMsg,tbOpt);
    end
    function tbTest1:Dongoai(nPlayerId)
    local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    local nSex = pPlayer.nSex;
      local nSeries = pPlayer.nSeries;
     if (nSeries == 0) then
      Dialog:Say("Bạn hãy gia nhập phái");
      return;
     end
     
     if (1 == nSeries) then
     
      if (0 == nSex) then --male
      pPlayer.AddGreenEquip(8,519,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,537,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(10,20211,10,5,16); --Th?y Hoàng H?ng Hoang Uy?n
     pPlayer.AddGreenEquip(4,20161,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20065,10,5,16); --Tiêu Dao Bá V??ng Ngoa
     pPlayer.AddGreenEquip(11,20105,10,5,16); --Th?y Hoàng Chi?n Th?n ??ng Van B?i
     pPlayer.AddGreenEquip(5,20085,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,353,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,487,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20045,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20000,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     else   --female
    pPlayer.AddGreenEquip(8,520,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,538,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(10,20212,10,5,16);
     pPlayer.AddGreenEquip(4,20161,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20066,10,5,16); --Tiêu Dao Huy?n N? Ngoa
     pPlayer.AddGreenEquip(11,20106,10,5,16); --Th?y Hoàng Chi?n Th?n B?ng Tinh H??ng Nang
     pPlayer.AddGreenEquip(5,20085,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,354,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,488,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20050,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20000,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     end
     elseif (2 == nSeries) then
     
      if (0 == nSex) then --male
      pPlayer.AddGreenEquip(8,523,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,541,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(10,20215,10,5,16);
     pPlayer.AddGreenEquip(4,20163,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20067,10,5,16); --Tiêu Dao Bá V??ng Ngoa
     pPlayer.AddGreenEquip(11,20107,10,5,16); --Th?y Hoàng Chi?n Th?n ??ng Van B?i
     pPlayer.AddGreenEquip(5,20087,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,373,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,489,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20046,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20001,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     else   --female
     pPlayer.AddGreenEquip(8,524,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,542,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(10,20216,10,5,16);
     pPlayer.AddGreenEquip(4,20163,10,5,16); --V? Uy C? Tinh Gi?i
    pPlayer.AddGreenEquip(7,20068,10,5,16); --Tiêu Dao Huy?n N? Ngoa
     pPlayer.AddGreenEquip(11,20108,10,5,16); --Th?y Hoàng Chi?n Th?n B?ng Tinh H??ng Nang
    pPlayer.AddGreenEquip(5,20087,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,374,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,490,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20051,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20001,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     end
     elseif (3 == nSeries) then
     
      if (0 == nSex) then --male
      pPlayer.AddGreenEquip(8,527,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,545,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(10,20219,10,5,16);
     pPlayer.AddGreenEquip(4,20165,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20069,10,5,16); --Tiêu Dao Bá V??ng Ngoa
     pPlayer.AddGreenEquip(11,20109,10,5,16); --Th?y Hoàng Chi?n Th?n ??ng Van B?i
     pPlayer.AddGreenEquip(5,20089,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,393,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,491,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20047,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20002,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     --Chua bo trang bi vao******************************
     else   --female
     pPlayer.AddGreenEquip(8,528,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,546,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(10,20220,10,5,16);
     pPlayer.AddGreenEquip(4,20165,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20070,10,5,16); --Tiêu Dao Huy?n N? Ngoa
     pPlayer.AddGreenEquip(11,20110,10,5,16); --Th?y Hoàng Chi?n Th?n B?ng Tinh H??ng Nang
     pPlayer.AddGreenEquip(5,20089,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,394,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,492,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20052,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20002,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     --Chua bo trang bi vao******************************
     end
     elseif (4 == nSeries) then
     
      if (0 == nSex) then --male
      pPlayer.AddGreenEquip(8,531,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,549,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(10,20223,10,5,16);
     pPlayer.AddGreenEquip(4,20167,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20071,10,5,16); --Tiêu Dao Bá V??ng Ngoa
     pPlayer.AddGreenEquip(11,20111,10,5,16); --Th?y Hoàng Chi?n Th?n ??ng Van B?i
     pPlayer.AddGreenEquip(5,20091,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,413,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,493,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20048,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20003,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     else   --female
     pPlayer.AddGreenEquip(8,532,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,550,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(10,20224,10,5,16);
     pPlayer.AddGreenEquip(4,20167,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20072,10,5,16); --Tiêu Dao Huy?n N? Ngoa
     pPlayer.AddGreenEquip(11,20112,10,5,16); --Th?y Hoàng Chi?n Th?n B?ng Tinh H??ng Nang
     pPlayer.AddGreenEquip(5,20091,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,414,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,494,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20053,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20003,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     end
     elseif (5 == nSeries) then
     
      if (0 == nSex) then --male
      pPlayer.AddGreenEquip(8,535,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,553,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(10,20227,10,5,16);
     pPlayer.AddGreenEquip(4,20169,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20073,10,5,16); --Tiêu Dao Bá V??ng Ngoa
     pPlayer.AddGreenEquip(11,20113,10,5,16); --Th?y Hoàng Chi?n Th?n ??ng Van B?i
     pPlayer.AddGreenEquip(5,20093,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,433,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,495,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20049,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20004,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     else   --female
     pPlayer.AddGreenEquip(8,536,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,554,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(10,20228,10,5,16);
     pPlayer.AddGreenEquip(4,20169,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20074,10,5,16); --Tiêu Dao Huy?n N? Ngoa
     pPlayer.AddGreenEquip(11,20114,10,5,16); --Th?y Hoàng Chi?n Th?n B?ng Tinh H??ng Nang
     pPlayer.AddGreenEquip(5,20093,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,434,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,496,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20054,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20004,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     --Chua bo trang bi vao******************************
     end
     else
      Dbg:WriteLogEx(Dbg.LOG_INFO, "Quan Lãnh Thổ", me.szName, "Bạn chưa gia nhập phái", nSeries);
     end
     ---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 tbTest1:Donoi(nPlayerId) 
    local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    local nSex = pPlayer.nSex;
      local nSeries = pPlayer.nSeries;
     if (nSeries == 0) then
      Dialog:Say("Bạn hãy gia nhập phái");
      return;
     end
     
     if (1 == nSeries) then
      if (0 == nSex) then --male
     pPlayer.AddGreenEquip(8,519,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,537,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(10,20213,10,5,16);
     pPlayer.AddGreenEquip(4,20162,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20065,10,5,16); --Tiêu Dao Bá V??ng Ngoa
     pPlayer.AddGreenEquip(11,20105,10,5,16); --Th?y Hoàng Chi?n Th?n ??ng Van B?i
     pPlayer.AddGreenEquip(5,20086,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,353,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,487,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20045,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20000,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     else   --female
     pPlayer.AddGreenEquip(8,520,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,538,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     
      pPlayer.AddGreenEquip(10,20214,10,5,16);
     pPlayer.AddGreenEquip(4,20162,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20066,10,5,16); --Tiêu Dao Huy?n N? Ngoa
     pPlayer.AddGreenEquip(11,20106,10,5,16); --Th?y Hoàng Chi?n Th?n B?ng Tinh H??ng Nang
     pPlayer.AddGreenEquip(5,20086,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,354,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,488,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20050,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20000,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     end
     elseif (2 == nSeries) then
     
      if (0 == nSex) then --male
     pPlayer.AddGreenEquip(8,523,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,541,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     
      pPlayer.AddGreenEquip(10,20217,10,5,16);
     pPlayer.AddGreenEquip(4,20164,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20067,10,5,16); --Tiêu Dao Bá V??ng Ngoa
     pPlayer.AddGreenEquip(11,20107,10,5,16); --Th?y Hoàng Chi?n Th?n ??ng Van B?i
     pPlayer.AddGreenEquip(5,20088,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,373,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,489,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20046,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20001,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     else   --female
    pPlayer.AddGreenEquip(8,524,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,542,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
        pPlayer.AddGreenEquip(10,20218,10,5,16);
     pPlayer.AddGreenEquip(4,20164,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20068,10,5,16); --Tiêu Dao Huy?n N? Ngoa
     pPlayer.AddGreenEquip(11,20108,10,5,16); --Th?y Hoàng Chi?n Th?n B?ng Tinh H??ng Nang
     pPlayer.AddGreenEquip(5,20088,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,374,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,490,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20051,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20001,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     --Chua bo trang bi vao******************************
     end
     elseif (3 == nSeries) then
     
      if (0 == nSex) then --male
     pPlayer.AddGreenEquip(8,527,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,545,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     
       pPlayer.AddGreenEquip(10,20221,10,5,16);
     pPlayer.AddGreenEquip(4,20166,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20069,10,5,16); --Tiêu Dao Bá V??ng Ngoa
     pPlayer.AddGreenEquip(11,20109,10,5,16); --Th?y Hoàng Chi?n Th?n ??ng Van B?i
     pPlayer.AddGreenEquip(5,20090,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,393,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,491,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20047,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20002,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     --Chua bo trang bi vao******************************
     else   --female
     pPlayer.AddGreenEquip(8,528,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,546,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(10,20222,10,5,16);
     pPlayer.AddGreenEquip(4,20166,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20070,10,5,16); --Tiêu Dao Huy?n N? Ngoa
     pPlayer.AddGreenEquip(11,20110,10,5,16); --Th?y Hoàng Chi?n Th?n B?ng Tinh H??ng Nang
     pPlayer.AddGreenEquip(5,20090,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,394,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,492,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20052,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20002,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     --Chua bo trang bi vao******************************
     end
     elseif (4 == nSeries) then
     
      if (0 == nSex) then --male
     pPlayer.AddGreenEquip(8,531,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,549,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     
       pPlayer.AddGreenEquip(10,20225,10,5,16);
     pPlayer.AddGreenEquip(4,20168,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20071,10,5,16); --Tiêu Dao Bá V??ng Ngoa
     pPlayer.AddGreenEquip(11,20111,10,5,16); --Th?y Hoàng Chi?n Th?n ??ng Van B?i
     pPlayer.AddGreenEquip(5,20092,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,413,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,493,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20048,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20003,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     --Chua bo trang bi vao******************************
     else   --female
     pPlayer.AddGreenEquip(8,532,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,550,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
       pPlayer.AddGreenEquip(10,20226,10,5,16);
     pPlayer.AddGreenEquip(4,20168,10,5,16);--V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20072,10,5,16); --Tiêu Dao Huy?n N? Ngoa
     pPlayer.AddGreenEquip(11,20112,10,5,16); --Th?y Hoàng Chi?n Th?n B?ng Tinh H??ng Nang
     pPlayer.AddGreenEquip(5,20092,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,414,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,494,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20053,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20003,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     --Chua bo trang bi vao******************************
     end
     elseif (5 == nSeries) then
     
      if (0 == nSex) then --male
      pPlayer.AddGreenEquip(8,535,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,553,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
       pPlayer.AddGreenEquip(10,20229,10,5,16);
     pPlayer.AddGreenEquip(4,20170,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20073,10,5,16); --Tiêu Dao Bá V??ng Ngoa
     pPlayer.AddGreenEquip(11,20113,10,5,16); --Th?y Hoàng Chi?n Th?n ??ng Van B?i
     pPlayer.AddGreenEquip(5,20094,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,433,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,495,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20049,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20004,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     --Chua bo trang bi vao******************************
     else   --female
      pPlayer.AddGreenEquip(10,20230,10,5,16);
    pPlayer.AddGreenEquip(8,536,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
      pPlayer.AddGreenEquip(8,554,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     
     pPlayer.AddGreenEquip(4,20170,10,5,16); --V? Uy C? Tinh Gi?i
     pPlayer.AddGreenEquip(7,20074,10,5,16); --Tiêu Dao Huy?n N? Ngoa
     pPlayer.AddGreenEquip(11,20114,10,5,16); --Th?y Hoàng Chi?n Th?n B?ng Tinh H??ng Nang
     pPlayer.AddGreenEquip(5,20094,10,5,16); --Tr?c L?c Thiên ?i?p L?u Van Liên
     pPlayer.AddGreenEquip(8,434,10,5,16); --Tr?c L?c Hoàng Long Tri?n Yêu
     pPlayer.AddGreenEquip(9,496,10,5,16); --Tr?c L?c Kinh Van Kh?i
     pPlayer.AddGreenEquip(3,20054,10,5,16); --Th?y Hoàng Long Lan Y
     pPlayer.AddGreenEquip(6,20004,10,5,16); --V? Uy L?m Nh?t Tinh Huy?n Phù
     end
     else
      Dbg:WriteLogEx(Dbg.LOG_INFO, "Quan Lãnh Thổ", me.szName, "Bạn chưa gia nhập phái", nSeries);
     end
     
    end
    ------------------
    ---------------------
    ---------------------
    -----------------
    ------------------
    function tbTest1:LenLevel110(nPlayerId)
        local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(10 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel120(nPlayerId)
        local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(20 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel130(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(30 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel140(nPlayerId)
    	pPlayer.AddLevel(40 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel150(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(50 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel160(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(60 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel170(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(70 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel180(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(80 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel190(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(90 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel1100(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(100 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel1110(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(110 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel1120(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(120 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel1130(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(130 - pPlayer.nLevel);
    end
    
    function tbTest1:LenLevel1140(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(140 - pPlayer.nLevel);
    end
    function tbTest1:LenLevel1150(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(150 - pPlayer.nLevel);
    end
    function tbTest1:LenLevel1180(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(180 - pPlayer.nLevel);
    end
    function tbTest1:LenLevel1200(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(200 - pPlayer.nLevel);
    end
    function tbTest1:LenLevel1210(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(200 - pPlayer.nLevel);
    end
    function tbTest1:LenLevel1220(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(200 - pPlayer.nLevel);
    end
    function tbTest1:LenLevel1230(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(200 - pPlayer.nLevel);
    end
    function tbTest1:LenLevel1240(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(200 - pPlayer.nLevel);
    end
    function tbTest1:LenLevel1255(nPlayerId)
    	local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    	pPlayer.AddLevel(200 - pPlayer.nLevel);
    end
    ---------------------
    -- kết thúc hàm admin nap đồng và đồ + cấp cho member
    
    
    
    ----------------
    --------------
    ----------------
    
    
    function tbTest1:cacloaishop()
    local szMsg = "Ta có thể giúp gì cho ngươi";
    local tbOpt = {
    		
    	{"Shop Thủy Hoàng vũ khí",  self.ShopThuyhoang, self},
    	--{"Nhiệm vụ 110",  self.Nhiemvu110, self},
    	{"Shop Tiêu Dao cốc",  self.Tdc, self},
    	{"Shop Liên Đấu",  self.ShopLiendau, self},
    	{"Shop Tranh Đoạt Lãnh Thổ",  self.Shoptranhdoat, self},
    	{"Shop Chúc Phúc",  self.Shopchucphuc, self},
    	{"Shop Thắt lưng thịnh hạ",  self.Shopthinhha, self},
    	{"Shop Luyện hóa đồ Tần lăng",  self.Shopluyenhoatanlang, self},
    	{"Shop Quan Hàm",  self.ShopQuanham, self},
    		
    	{"Ta chỉ ghé ngang qua"},
    	};
    	Dialog:Say(szMsg, tbOpt);
    
    end
    
    
    function tbTest1:ShopQuanham()
    	local nSeries = me.nSeries;
    	if (nSeries == 0) then
    		Dialog:Say("Bạn hãy gia nhập phái");
    		return;
    	end
    	
    	if (1 == nSeries) then
    		me.OpenShop(149, 1);
    	elseif (2 == nSeries) then
    		me.OpenShop(150, 1);
    	elseif (3 == nSeries) then
    		me.OpenShop(151, 1);
    	elseif (4 == nSeries) then
    		me.OpenShop(152, 1);
    	elseif (5 == nSeries) then
    		me.OpenShop(153, 1);
    	else
    		Dbg:WriteLogEx(Dbg.LOG_INFO, "Hỗ Trợ tân thủ", me.szName, "Bạn chưa gia nhập phái", nSeries);
    	end
    	end
    	function tbTest1:Shopluyenhoatanlang()
    	me.OpenShop(155,1)
    	end
    	function tbTest1:Shoptranhdoat()
    	me.OpenShop(147,1)
    	end
    	function tbTest1:Shopthinhha()
    	me.OpenShop(128,1)
    	end
    	function tbTest1:Shopchucphuc()
    	me.OpenShop(133,1)
    	end
    	function tbTest1:Tdc()
    	me.OpenShop(132,1)
    	end
    	function tbTest1:ShopLiendau()
    	me.OpenShop(134,1)
    	end
    		
    		
    
    function tbTest1:ShopThuyhoang()
    local nSeries = me.nSeries;
    	if (nSeries == 0) then
    		Dialog:Say("Bạn hãy gia nhập phái");
    		return;
    	end
    	
    	if (1 == nSeries) then
    		me.OpenShop(156, 1);
    	elseif (2 == nSeries) then
    		me.OpenShop(157, 1);
    	elseif (3 == nSeries) then
    		me.OpenShop(158, 1);
    	elseif (4 == nSeries) then
    		me.OpenShop(159, 1);
    	elseif (5 == nSeries) then
    		me.OpenShop(160, 1);
    	else
    		Dbg:WriteLogEx(Dbg.LOG_INFO, "Hỗ Trợ tân thủ", me.szName, "Bạn chưa gia nhập phái", nSeries);
    	end
    end
    
    
    
    
    function tbTest1:nhanqua()
    if (me.nLevel==35) then
    --me.AddItem(18, 1, 400, 1);
    me.AddExp(1000000000);
    me.AddBindCoin(100000);
    me.AddBindMoney(5000000);
    --local szMsg = "Ta có thể giúp gì cho ngươi";
    	--local tbOpt = {
    		
    		--{"<color=yellow>Nhận thưởng ngay<color>",nhanquacap11,self},
    		
    	 
    		
    	--{"Ta chỉ ghé ngang qua"},
    	--};
    	--Dialog:Say(szMsg, tbOpt);
    
    else
    	local szMsg = "Cấp của bạn không thể nhận thưởng";
    	local tbOpt = {};
    	Dialog:Say(szMsg, tbOpt);
    end
    end
    
    -----------------------------------
    ------------------------------------
    -------------------------------------
    --------------------------------------
    -------------------------------------
    --------------------------------------
    tbTest1.TaskGourp = 3000; --task mới phải add vào gameserver\setting\player\task_def.txt
    tbTest1.TaskId_Day = 1; --task lưu ngày
    tbTest1.TaskId_Count = 2; --task lưu lần nhận
    tbTest1.TaskId_Last = 3; --task lưu thời gian nhận
    tbTest1.Relay_Time = 30*60; --thời gian giữa 2 lần nhận mình để 30p 1 lần
    tbTest1.Use_Max =5; --số lần nhận tối đa
    
    function tbTest1:nhanthuong()
    	local nDate = tonumber(GetLocalDate("%Y%m%d"));
    	if me.GetTask(self.TaskGourp, self.TaskId_Day) < nDate then
    		me.SetTask(self.TaskGourp, self.TaskId_Day, nDate);
    		me.SetTask(self.TaskGourp, self.TaskId_Count, 0);
    		me.SetTask(self.TaskGourp, self.TaskId_Last, 0);
    	end 
    	local nCount = me.GetTask(self.TaskGourp, self.TaskId_Count);
    	local szMsg = "";
    	szMsg = string.format("Mỗi <color=yellow>30 phút online<color> hàng ngày có thể nhận thưởng, tối đa <color=yellow>%d<color> lần.\n\n",self.Use_Max);
    	local szColor = "<color=Gray>"
    	local szColorx = "<color>"
    	szMsg = szMsg.."\n<color=yellow>Lần 1:<color> "..((nCount >= 1 and szColor) or "").."5 túi phúc hoàng kim<color>";
    	szMsg = szMsg.."\n<color=yellow>Lần 2:<color> "..((nCount >= 2 and szColor) or "").."50 vạn bạc khóa-5v đồng khóa-HT 7-8-9-10-11-12-Tinh Lục Họat lực.<color>";
    	szMsg = szMsg.."\n<color=yellow>Lần 3:<color> "..((nCount >= 3 and szColor) or "").."3 vạn đồng-3 van bạc.<color>";
    	szMsg = szMsg.."\n<color=yellow>Lần 4:<color> "..((nCount >= 4 and szColor) or "").."mặt nạ hàn long phục hổ - 10 rương Ngũ hành hồn thạch(1000).<color>";
    	szMsg = szMsg.."\n<color=yellow>Lần 5:<color> "..((nCount >= 5 and szColor) or "").."1 mặt nạ víp.<color>";
    	szMsg = szMsg..string.format("\n\n<color=yellow>Hôm nay bạn đã nhận "..((nCount >= self.Use_Max and "đủ") or nCount).." phần thưởng.<color>");
    	local tbOpt = {};
    	if (nCount<self.Use_Max) then
    		table.insert(tbOpt , {"Nhận thưởng ngay",  self.nhanthuong1, self});
    	end
    	table.insert(tbOpt, {"Ta chỉ ghé ngang qua"});
    	Dialog:Say(szMsg, tbOpt);
    end
    
    function tbTest1:nhanthuong1()
    	local nCount = me.GetTask(self.TaskGourp, self.TaskId_Count);
        if nCount >= self.Use_Max then
            Dialog:Say(string.format("Hôm nay bạn đã nhận đủ phần thưởng."));
            return 0; 
        end    
    	local nLast = me.GetTask(self.TaskGourp, self.TaskId_Last);
    	local nHour = tonumber(GetLocalDate("%Y%m%d%H%M%S"));
    	local nSec1 = Lib:GetDate2Time(nHour);
    	local nSec2 = nLast + self.Relay_Time;
    		if nSec1 < nSec2 then
    			if ((nSec2 - nSec1)<=60) then
    				me.Msg(string.format("Còn <color=yellow>%s giây<color> nữa mới nhận được phần thưởng tiếp theo.", (nSec2 - nSec1)));
    			else
    				me.Msg(string.format("Còn <color=yellow>%d phút<color> nữa mới nhận được phần thưởng tiếp theo.", (nSec2 - nSec1)/60));
    			end
    			return 0;
    		end
    	if (nCount == 0) then
    		me.AddItem(18,	1,	80,	1); --phần thưởng thứ 1
    		me.AddItem(18,	1,	80,	1);
    		me.AddItem(18,	1,	80,	1);
    		me.AddItem(18,	1,	80,	1);
    		me.AddItem(18,	1,	80,	1);
    		me.AddItem(18,1,1197,1);
    		me.AddItem(18,1,1197,1);
    		me.AddItem(18,1,1197,1);
    		me.AddItem(18,1,1197,1);
    		me.AddItem(18,1,1197,1);
    		me.AddItem(18,1,1197,1);
    		me.AddItem(18,1,1197,1);
    		me.AddItem(18,1,1197,1);
    		me.AddItem(18,1,1197,1);
    		me.AddItem(18,1,1197,1);
    	elseif (nCount == 1) then
    		me.AddBindCoin(50000);
    		me.AddBindMoney(500000);
    		me.AddItem(18,1,1,7);
    		me.AddItem(18,1,1,7);
    		me.AddItem(18,1,1,7);
    		me.AddItem(18,1,1,7);
    		me.AddItem(18,1,1,7);
    		me.AddItem(18,1,1,8);
    		me.AddItem(18,1,1,8);
    		me.AddItem(18,1,1,8);
    		me.AddItem(18,1,1,8);
    		me.AddItem(18,1,1,9);
    		me.AddItem(18,1,1,9);
    		me.AddItem(18,1,1,11);
    		me.AddItem(18,1,1,12);
    		me.AddItem(18,1,1,10);
    		me.ChangeCurMakePoint(40000);
    		me.ChangeCurGatherPoint(40000); --phần thưởng thứ 2
    	elseif (nCount == 2) then
    		me.AddJbCoin(30000);
    		me.Earn(30000,0); --phần thưởng thứ 3
    	elseif (nCount == 3) then
    		me.AddItem(1,13,63,1);
    		me.AddItem(18,1,244,2);
    		me.AddItem(18,1,244,2);
    		me.AddItem(18,1,244,2);
    		me.AddItem(18,1,244,2);
    		me.AddItem(18,1,244,2);
    		me.AddItem(18,1,244,2);
    		me.AddItem(18,1,244,2);
    		me.AddItem(18,1,244,2);
    		me.AddItem(18,1,244,2);
    		me.AddItem(18,1,244,2);
    		me.AddItem(18,1,186,1); --phần thưởng thứ 4
    	elseif (nCount == 4) then
    		me.AddItem(1,13,66,10);
    		me.AddItem(18,1,251,1);--phần thưởng thứ 5
    	end
    	me.Msg(string.format("Bạn đã nhận được phần thưởng hàng ngày lần <color=yellow>%d<color>",nCount + 1));
    	me.SetTask(self.TaskGourp, self.TaskId_Count, nCount + 1);
    	local nHourS = tonumber(GetLocalDate("%Y%m%d%H%M%S"));
    	local nSec3 = Lib:GetDate2Time(nHourS);
    	me.SetTask(self.TaskGourp, self.TaskId_Last, nSec3);
    end
    
    ------------
    ------------
    ------------
    -----------------
    ------------
    ------------------
    ---------------
    ------------------
    ----------------
    ---------------------
    -------------------------------------------------------------------
    tbTest1.nTaskGroupId = 2051;
    tbTest1.nTaskId1 = 1;	--领取马牌标志
    tbTest1.nTaskId2 = 2;	--领取包包,银两标志
    tbTest1.nTaskIdRoute={
    	[1]=3,	--领取一个路线装备标志
     	[2]=4,	--领取另一个路线装备标志
    }
    tbTest1.nTaskId3 = 5;	--领取祈福护身符
    
    tbTest1.nSongjin_70Level	= 120;					-- 宋金体验把玩家提升到的等级
    tbTest1.nWeaponLevel		= 10;					-- 宋金体验的武器等级
    tbTest1.nArmor_Level		= 10;					-- 宋金体验的防具等级
    tbTest1.nEnhanceLevel		= 8;					-- 宋金体验装备的强化等级
    tbTest1.nMijiLevel			= 100;					-- 秘籍等级
    tbTest1.tbQiFuItem = {
    	{2,	6,	257,	10}, --金
    	{2,	6,	258,	10}, --木
    	{2,	6,	259,	10}, --水
    	{2,	6,	260,	10}, --火
    	{2,	6,	261,	10}, --土
    }
    tbTest1.tbHorse_60Level	= {
    	{1, 12, 5, 3, -1},
    	{1, 12, 6, 3, -1},
    	{1, 12, 7, 3, -1},
    	{1, 12, 8, 3, -1},
    	{1, 12, 9, 3, -1},
    	};	-- 90级马
    tbTest1.tbExbag_20Grid		= {21, 8, 1, 1};		-- 20格背包
    tbTest1.nAddedKarmaPerTime	= 3000;					-- 每次增加500点修为
    tbTest1.nAddedMoney		= 1000000;				-- 每次选择赠送剑侠币的选项可得到100wJXB
    tbTest1.nBindMoney		= 10000000;					-- 绑定银两
    tbTest1.nBindCoin		= 5000;						-- 绑定金币
    tbTest1.nExbagItem			= {}					-- 20格背包
    tbTest1.tbAddedItem		= {						-- 60级紫装
    		{	-- 少林
    			{	-- 刀少林
    				[0] = {	--男性
    					{2,  1, 727-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},	--近身武器meleeweapon.txt
    					{2,  3, 828-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},	--衣服armor
    					{2,  9, 826-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},	--帽子helm
    					{2,  8, 406-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},	--腰带belt
    					{2,  7, 408-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},	--鞋子boots
    					{2, 10, 680-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},	--护腕cuff
    					{2,  5, 206-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},	--项链necklace
    					{2,  4, 250-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},	--戒指ring
    					{2, 11, 406-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},	--玉佩pendant
    					{2,  6, 207-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},	--护身符amulet
    					{1, 14,1, 2, -1},
    				},
    				[1] = {	--女性
    					{2,  1, 727-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 838-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 836-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 416-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 418-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 685-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 206-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 250-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 416-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 207-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,1, 2, -1},
    				},
    			}, 
    			{	-- 	棍少林
    				[0]	= {
    					{2,  1, 737-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 808-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 806-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 406-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 408-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 680-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 206-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 250-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 406-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 207-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 2,  2, -1},
    				},
    				[1]	= {
    					{2,  1, 737-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 818-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 816-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 416-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 418-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 685-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 206-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 250-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 416-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 207-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 2,  2, -1},
    				},
    			}, 
    		},
    		{	-- 天王
    			{	-- 	枪天王
    				[0]	= {
    					{2,  1, 747-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 808-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 806-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 406-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 408-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 680-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 206-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 250-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 406-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 207-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 3, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 747-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 818-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 816-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 416-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 418-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 685-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 206-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 250-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 416-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 207-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 3, 2, -1},
    				},
    			},
    			{	--	锤天王
    				[0]	= {
    					{2,  1, 757-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 808-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 806-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 406-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 408-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 680-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 206-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 250-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 506-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 207-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 4, 2, -1},
    				},			
    				[1]	= {
    					{2,  1, 757-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 818-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 816-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 416-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 418-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 685-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 206-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 250-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 416-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 207-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 4, 2, -1},
    				},
    			},
    		},
    		{	-- 唐门
    			{	-- 陷阱唐门
    				[0]	= {
    					{2,  2,  86-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},	--远程武器rangeweapon.txt
    					{2,  3, 848-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 846-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 428-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 683-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 5, 2, -1},
    				},
    				[1]	= {
    					{2,  2,  86-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 858-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 856-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 438-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10,688-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 5, 2, -1},
    				},
    			},
    			{	-- 	袖箭唐
    				[0]	= {
    					{2,  2,  96-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},	--远程武器rangeweapon.txt
    					{2,  3, 848-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 846-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 428-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 683-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 6, 2, -1},
    				},
    				[1]	= {
    					{2,  2,  96-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 858-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 856-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 438-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10,688-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 6, 2, -1},
    				},
    			},
    		},
    		{	-- 五毒
    			{	-- 刀毒
    				[0]	= {
    					{2,  1, 767-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 848-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 846-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 428-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 683-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,7, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 767-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 858-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 856-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 438-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10,688-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 447-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,7, 2, -1},
    				},
    			},
    			{	-- 掌毒
    				[0]	= {
    					{2,  1, 777-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 868-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 866-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 428-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 428-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,8, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 777-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 878-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 876-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 438-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 438-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,8, 2, -1},
    				},
    			},
    		},
    		{	-- 峨嵋
    			{	-- 掌em
    				[0] = {
    					{2,  1, 807-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 908-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 906-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 448-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 448-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,9, 2, -1},					
    				},
    				[1]	= {
    					{2,  1, 807-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 918-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 916-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 458-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 458-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,9, 2, -1},
    				}
    			},
    			{	-- 辅助
    				[0] = {
    					{2,  1, 817-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 908-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 906-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 448-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 448-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,10, 2, -1},					
    				},
    				[1]	= {
    					{2,  1, 817-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 918-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 916-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 458-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 458-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,10, 2, -1},
    				}
    			},
    		},
    		{	-- 翠烟
    			{	-- 剑翠
    				[0]	= {
    					{2,  1, 817-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 908-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 906-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 448-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 448-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,11, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 817-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 918-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 916-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 458-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 458-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,11, 2, -1},
    				},
    			},
    			{	-- 刀翠
    				[0]	= {
    					{2,  1, 787-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 908-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 906-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 448-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 682-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 251-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,12, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 787-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 918-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 916-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 458-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 687-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 251-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,12, 2, -1},
    				},       
    			},
    		},
    		{	-- 丐帮
    			{	-- 掌丐  
    				[0]	= {  
    					{2,  1, 847-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 748-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 746-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 366-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 368-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 468-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 186-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 236-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 366-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 187-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,13, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 847-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 758-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 756-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 376-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 378-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 478-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 186-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 236-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 376-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 187-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,13, 2, -1},
    				},
    			},
    			{	-- 棍丐
    				[0]	= {
    					{2,  1, 827-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 748-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 746-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 366-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 368-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 679-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 186-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 249-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 366-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 187-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,14, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 827-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 758-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 756-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 376-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 378-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 684-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 186-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 249-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 376-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 187-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,14, 2, -1},
    				}
    			},
    		},
    		{	-- 天忍
    			{	-- 战忍
    				[0]	= {
    					{2,  1, 837-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 728-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 726-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 366-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 368-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 679-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 186-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 249-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 366-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 187-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,15, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 837-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 738-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 736-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 376-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 378-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 684-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 186-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 249-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 376-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 187-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,15, 2, -1},
    				};
    			},
    			{	-- 魔忍
    				[0]	= {
    					{2,  1, 857-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 748-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 746-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 366-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 368-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 468-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 186-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 236-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 366-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 187-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,16, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 857-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 758-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 756-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 376-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 378-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 478-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 186-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 236-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 376-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 187-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,16, 2, -1},
    				},
    			},
    		},
    		{	-- 武当
    			{	-- 气武
    				[0]	= {
    					{2,  1, 887-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 988-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 986-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 486-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 488-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 488-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 486-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,17, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 887-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 998-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 996-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 496-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 498-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 498-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 496-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,17, 2, -1},
    				},
    			},
    			{	-- 剑武
    				[0]	= {
    					{2,  1, 877-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 968-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 966-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 486-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 488-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 681-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 248-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 486-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,18, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 877-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 978-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 976-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 496-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 498-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 686-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 248-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 496-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,18, 2, -1},
    				},
    			},
    
    		},
    		{	-- 昆仑
    			{	-- 刀昆
    				[0]	= {
    					{2,  1, 867-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 988-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 986-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 486-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 488-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 681-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 248-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 486-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,19, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 867-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 998-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 996-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 496-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 498-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 686-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 248-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 496-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14,19, 2, -1},
    				},
    			},
    			{	-- 剑昆
    				[0]	= {
    					{2,  1, 897-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 988-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 986-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 486-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 488-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 488-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 486-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 20, 2, -1},
    				}, 
    				[1]	= {
    					{2,  1, 897-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    				  	{2,  3, 998-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    			   		{2,  9, 996-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
                        {2,  8, 496-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
                        {2,  7, 498-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
                        {2, 10, 498-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
                        {2,  5, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
                        {2,  4, 246-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
                        {2, 11, 496-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
                        {2,  6, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
                        {1, 14, 20, 2, -1},
                    },
                },
    		},
    		{	-- 明教
    			{	-- 锤明教
    				[0] = {
    					{2,  1, 987-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 848-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 846-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 428-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 683-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 21, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 987-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 858-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 856-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 438-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10,688-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 247-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 21, 2, -1},
    				},
    			},
    			{	-- 剑明教
    				[0]	= {
    					{2,  1, 977-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 868-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 866-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 428-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 428-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 426-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 22, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 977-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 878-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 876-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 438-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 438-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 216-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 436-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 217-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 22, 2, -1},
    				},
    			},
    		},
    		{	-- 段氏
    			{	-- 指段氏
    				[0] = {
    					{2,  1, 797-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 908-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 906-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 448-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 682-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 251-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 23, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 797-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 918-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 916-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 458-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 687-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 251-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 23, 2, -1},
    				},
    			},
    			{	-- 气段氏
    				[0]	= {
    					{2,  1, 817-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 908-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 906-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 448-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 448-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 446-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 24, 2, -1},
    				},
    				[1]	= {
    					{2,  1, 817-6+tbTest1.nWeaponLevel, tbTest1.nWeaponLevel, -1},
    					{2,  3, 918-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  9, 916-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  8, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  7, 458-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 10, 458-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  5, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  4, 226-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2, 11, 456-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{2,  6, 227-6+tbTest1.nArmor_Level, tbTest1.nArmor_Level, -1},
    					{1, 14, 24, 2, -1},
    				},
    			},
    		},
    };
    
    tbTest1.tbArmorsList = {--series,sex,physical,材料,Genre,DetailType,ParticularType,Level
    {	1	,	0	,	1	,	-1		,	4	,	10	,	1	,	10	,	}	,
    {	2	,	0	,	1	,	-1		,	4	,	10	,	7	,	10	,	}	,
    {	3	,	0	,	1	,	-1		,	4	,	10	,	19	,	10	,	}	,
    {	4	,	0	,	1	,	-1		,	4	,	10	,	31	,	10	,	}	,
    {	5	,	0	,	1	,	-1		,	4	,	10	,	43	,	10	,	}	,
    {	1	,	1	,	1	,	-1		,	4	,	10	,	2	,	10	,	}	,
    {	2	,	1	,	1	,	-1		,	4	,	10	,	8	,	10	,	}	,
    {	3	,	1	,	1	,	-1		,	4	,	10	,	20	,	10	,	}	,
    {	4	,	1	,	1	,	-1		,	4	,	10	,	32	,	10	,	}	,
    {	5	,	1	,	1	,	-1		,	4	,	10	,	44	,	10	,	}	,
    {	1	,	1	,	2	,	-1		,	4	,	10	,	436	,	10	,	}	,
    {	2	,	1	,	2	,	-1		,	4	,	10	,	10	,	10	,	}	,
    {	3	,	1	,	2	,	-1		,	4	,	10	,	22	,	10	,	}	,
    {	4	,	1	,	2	,	-1		,	4	,	10	,	34	,	10	,	}	,
    {	5	,	1	,	2	,	-1		,	4	,	10	,	46	,	10	,	}	,
    {	1	,	0	,	2	,	-1		,	4	,	10	,	435	,	10	,	}	,
    {	2	,	0	,	2	,	-1		,	4	,	10	,	9	,	10	,	}	,
    {	3	,	0	,	2	,	-1		,	4	,	10	,	21	,	10	,	}	,
    {	4	,	0	,	2	,	-1		,	4	,	10	,	33	,	10	,	}	,
    {	5	,	0	,	2	,	-1		,	4	,	10	,	45	,	10	,	}	,
    {	1	,	0	,	-1	,	-1		,	4	,	11	,	1	,	10	,	}	,
    {	2	,	0	,	-1	,	-1		,	4	,	11	,	7	,	10	,	}	,
    {	3	,	0	,	-1	,	-1		,	4	,	11	,	13	,	10	,	}	,
    {	4	,	0	,	-1	,	-1		,	4	,	11	,	19	,	10	,	}	,
    {	5	,	0	,	-1	,	-1		,	4	,	11	,	25	,	10	,	}	,
    {	1	,	1	,	-1	,	-1		,	4	,	11	,	2	,	10	,	}	,
    {	2	,	1	,	-1	,	-1		,	4	,	11	,	8	,	10	,	}	,
    {	3	,	1	,	-1	,	-1		,	4	,	11	,	14	,	10	,	}	,
    {	4	,	1	,	-1	,	-1		,	4	,	11	,	20	,	10	,	}	,
    {	5	,	1	,	-1	,	-1		,	4	,	11	,	26	,	10	,	}	,
    {	1	,	0	,	-1	,	-1		,	4	,	7	,	1	,	10	,	}	,
    {	2	,	0	,	-1	,	-1		,	4	,	7	,	7	,	10	,	}	,
    {	3	,	0	,	-1	,	-1		,	4	,	7	,	13	,	10	,	}	,
    {	4	,	0	,	-1	,	-1		,	4	,	7	,	19	,	10	,	}	,
    {	5	,	0	,	-1	,	-1		,	4	,	7	,	25	,	10	,	}	,
    {	1	,	1	,	-1	,	-1		,	4	,	7	,	2	,	10	,	}	,
    {	2	,	1	,	-1	,	-1		,	4	,	7	,	8	,	10	,	}	,
    {	3	,	1	,	-1	,	-1		,	4	,	7	,	14	,	10	,	}	,
    {	4	,	1	,	-1	,	-1		,	4	,	7	,	20	,	10	,	}	,
    {	5	,	1	,	-1	,	-1		,	4	,	7	,	26	,	10	,	}	,
    {	2	,	0	,	-1	,	"Vải"		,	4	,	3	,	35	,	10	,	}	,
    {	3	,	0	,	-1	,	"Vải"		,	4	,	3	,	41	,	10	,	}	,
    {	5	,	0	,	-1	,	"Vải"		,	4	,	3	,	47	,	10	,	}	,
    {	1	,	0	,	-1	,	"Da"		,	4	,	3	,	53	,	10	,	}	,
    {	2	,	0	,	-1	,	"Da"		,	4	,	3	,	59	,	10	,	}	,
    {	4	,	0	,	-1	,	"Da"		,	4	,	3	,	65	,	10	,	}	,
    {	1	,	0	,	-1	,	"Khoáng"		,	4	,	3	,	71	,	10	,	}	,
    {	3	,	0	,	-1	,	"Khoáng"		,	4	,	3	,	77	,	10	,	}	,
    {	4	,	0	,	-1	,	"Khoáng"		,	4	,	3	,	83	,	10	,	}	,
    {	5	,	0	,	-1	,	"Khoáng"		,	4	,	3	,	89	,	10	,	}	,
    {	2	,	1	,	-1	,	"Vải"		,	4	,	3	,	36	,	10	,	}	,
    {	3	,	1	,	-1	,	"Vải"		,	4	,	3	,	42	,	10	,	}	,
    {	5	,	1	,	-1	,	"Vải"		,	4	,	3	,	48	,	10	,	}	,
    {	1	,	1	,	-1	,	"Da"		,	4	,	3	,	54	,	10	,	}	,
    {	2	,	1	,	-1	,	"Da"		,	4	,	3	,	60	,	10	,	}	,
    {	4	,	1	,	-1	,	"Da"		,	4	,	3	,	66	,	10	,	}	,
    {	1	,	1	,	-1	,	"Khoáng"		,	4	,	3	,	72	,	10	,	}	,
    {	3	,	1	,	-1	,	"Khoáng"		,	4	,	3	,	78	,	10	,	}	,
    {	4	,	1	,	-1	,	"Khoáng"		,	4	,	3	,	84	,	10	,	}	,
    {	5	,	1	,	-1	,	"Khoáng"		,	4	,	3	,	90	,	10	,	}	,
    {	1	,	-1	,	-1	,	-1		,	4	,	6	,	94	,	10	,	}	,
    {	2	,	-1	,	-1	,	-1		,	4	,	6	,	99	,	10	,	}	,
    {	3	,	-1	,	-1	,	-1		,	4	,	6	,	104	,	10	,	}	,
    {	4	,	-1	,	-1	,	-1		,	4	,	6	,	109	,	10	,	}	,
    {	5	,	-1	,	-1	,	-1		,	4	,	6	,	114	,	10	,	}	,
    {	1	,	-1	,	1	,	-1		,	4	,	4	,	118	,	10	,	}	,
    {	2	,	-1	,	1	,	-1		,	4	,	4	,	121	,	10	,	}	,
    {	3	,	-1	,	1	,	-1		,	4	,	4	,	127	,	10	,	}	,
    {	4	,	-1	,	1	,	-1		,	4	,	4	,	133	,	10	,	}	,
    {	5	,	-1	,	1	,	-1		,	4	,	4	,	139	,	10	,	}	,
    {	1	,	-1	,	2	,	-1		,	4	,	4	,	443	,	10	,	}	,
    {	2	,	-1	,	2	,	-1		,	4	,	4	,	124	,	10	,	}	,
    {	3	,	-1	,	2	,	-1		,	4	,	4	,	130	,	10	,	}	,
    {	4	,	-1	,	2	,	-1		,	4	,	4	,	136	,	10	,	}	,
    {	5	,	-1	,	2	,	-1		,	4	,	4	,	142	,	10	,	}	,
    {	2	,	0	,	-1	,	"Vải"		,	4	,	9	,	197	,	10	,	}	,
    {	3	,	0	,	-1	,	"Vải"		,	4	,	9	,	217	,	10	,	}	,
    {	5	,	0	,	-1	,	"Vải"		,	4	,	9	,	257	,	10	,	}	,
    {	1	,	0	,	-1	,	"Da"		,	4	,	9	,	177	,	10	,	}	,
    {	2	,	0	,	-1	,	"Da"		,	4	,	9	,	195	,	10	,	}	,
    {	4	,	0	,	-1	,	"Da"		,	4	,	9	,	237	,	10	,	}	,
    {	1	,	0	,	-1	,	"Khoáng"		,	4	,	9	,	175	,	10	,	}	,
    {	3	,	0	,	-1	,	"Khoáng"		,	4	,	9	,	215	,	10	,	}	,
    {	4	,	0	,	-1	,	"Khoáng"		,	4	,	9	,	235	,	10	,	}	,
    {	5	,	0	,	-1	,	"Khoáng"		,	4	,	9	,	255	,	10	,	}	,
    {	1	,	0	,	-1	,	-1		,	4	,	8	,	341	,	10	,	}	,
    {	2	,	0	,	-1	,	-1		,	4	,	8	,	361	,	10	,	}	,
    {	3	,	0	,	-1	,	-1		,	4	,	8	,	381	,	10	,	}	,
    {	4	,	0	,	-1	,	-1		,	4	,	8	,	401	,	10	,	}	,
    {	5	,	0	,	-1	,	-1		,	4	,	8	,	421	,	10	,	}	,
    {	1	,	1	,	-1	,	-1		,	4	,	8	,	342	,	10	,	}	,
    {	2	,	1	,	-1	,	-1		,	4	,	8	,	362	,	10	,	}	,
    {	3	,	1	,	-1	,	-1		,	4	,	8	,	382	,	10	,	}	,
    {	4	,	1	,	-1	,	-1		,	4	,	8	,	402	,	10	,	}	,
    {	5	,	1	,	-1	,	-1		,	4	,	8	,	422	,	10	,	}	,
    {	1	,	-1	,	1	,	-1		,	4	,	5	,	266	,	10	,	}	,
    {	2	,	-1	,	1	,	-1		,	4	,	5	,	274	,	10	,	}	,
    {	3	,	-1	,	1	,	-1		,	4	,	5	,	290	,	10	,	}	,
    {	4	,	-1	,	1	,	-1		,	4	,	5	,	306	,	10	,	}	,
    {	5	,	-1	,	1	,	-1		,	4	,	5	,	322	,	10	,	}	,
    {	1	,	-1	,	2	,	-1		,	4	,	5	,	446	,	10	,	}	,
    {	2	,	-1	,	2	,	-1		,	4	,	5	,	282	,	10	,	}	,
    {	3	,	-1	,	2	,	-1		,	4	,	5	,	298	,	10	,	}	,
    {	4	,	-1	,	2	,	-1		,	4	,	5	,	314	,	10	,	}	,
    {	5	,	-1	,	2	,	-1		,	4	,	5	,	330	,	10	,	}	,
    {	2	,	1	,	-1	,	"Vải"		,	4	,	9	,	198	,	10	,	}	,
    {	3	,	1	,	-1	,	"Vải"		,	4	,	9	,	218	,	10	,	}	,
    {	5	,	1	,	-1	,	"Vải"		,	4	,	9	,	258	,	10	,	}	,
    {	1	,	1	,	-1	,	"Da"		,	4	,	9	,	182	,	10	,	}	,
    {	2	,	1	,	-1	,	"Da"		,	4	,	9	,	200	,	10	,	}	,
    {	4	,	1	,	-1	,	"Da"		,	4	,	9	,	242	,	10	,	}	,
    {	1	,	1	,	-1	,	"Khoáng"		,	4	,	9	,	180	,	10	,	}	,
    {	3	,	1	,	-1	,	"Khoáng"		,	4	,	9	,	220	,	10	,	}	,
    {	4	,	1	,	-1	,	"Khoáng"		,	4	,	9	,	240	,	10	,	}	,
    {	5	,	1	,	-1	,	"Khoáng"		,	4	,	9	,	260	,	10	,	}	,
    }
    
    tbTest1.tbWeaponsList = {--,Genre,DetailType,ParticularType,Level
    {	2	,	1	,	551	,	10	,},
    {	2	,	1	,	561	,	10	,},
    {	2	,	1	,	571	,	10	,},
    {	2	,	1	,	581	,	10	,},
    {	2	,	2	,	70	,	10	,},
    {	2	,	2	,	80	,	10	,},
    {	2	,	1	,	591	,	10	,},
    {	2	,	1	,	601	,	10	,},
    {	2	,	1	,	631	,	10	,},
    {	2	,	1	,	641	,	10	,},
    {	2	,	1	,	641	,	10	,},
    {	2	,	1	,	611	,	10	,},
    {	2	,	1	,	671	,	10	,},
    {	2	,	1	,	651	,	10	,},
    {	2	,	1	,	661	,	10	,},
    {	2	,	1	,	681	,	10	,},
    {	2	,	1	,	711	,	10	,},
    {	2	,	1	,	701	,	10	,},
    {	2	,	1	,	691	,	10	,},
    {	2	,	1	,	721	,	10	,},
    {	2	,	1	,	971	,	10	,},
    {	2	,	1	,	981	,	10	,},
    {	2	,	1	,	621	,	10	,},
    {	2	,	1	,	641	,	10	,},
    {	2	,	1	,	731	,	10	,},
    {	2	,	1	,	741	,	10	,},
    {	2	,	1	,	751	,	10	,},
    {	2	,	1	,	761	,	10	,},
    {	2	,	2	,	90	,	10	,},
    {	2	,	2	,	100	,	10	,},
    {	2	,	1	,	771	,	10	,},
    {	2	,	1	,	781	,	10	,},
    {	2	,	1	,	811	,	10	,},
    {	2	,	1	,	821	,	10	,},
    {	2	,	1	,	821	,	10	,},
    {	2	,	1	,	791	,	10	,},
    {	2	,	1	,	851	,	10	,},
    {	2	,	1	,	831	,	10	,},
    {	2	,	1	,	841	,	10	,},
    {	2	,	1	,	861	,	10	,},
    {	2	,	1	,	891	,	10	,},
    {	2	,	1	,	881	,	10	,},
    {	2	,	1	,	871	,	10	,},
    {	2	,	1	,	901	,	10	,},
    {	2	,	1	,	991	,	10	,},
    {	2	,	1	,	1001	,	10	,},
    {	2	,	1	,	801	,	10	,},
    {	2	,	1	,	821	,	10	,},
    }
    
    tbTest1.tbBeltList = {
    --series,sex,physical,材料,Genre	,DetailType,ParticularType,Level
    {	1	,	0	,	-1	,	-1	,	4	,	8	,	457	,	10	,	}	,
    {	1	,	1	,	-1	,	-1	,	4	,	8	,	458	,	10	,	}	,
    {	2	,	0	,	-1	,	-1	,	4	,	8	,	461	,	10	,	}	,
    {	2	,	1	,	-1	,	-1	,	4	,	8	,	462	,	10	,	}	,
    {	3	,	0	,	-1	,	-1	,	4	,	8	,	465	,	10	,	}	,
    {	3	,	1	,	-1	,	-1	,	4	,	8	,	466	,	10	,	}	,
    {	4	,	0	,	-1	,	-1	,	4	,	8	,	469	,	10	,	}	,
    {	4	,	1	,	-1	,	-1	,	4	,	8	,	470	,	10	,	}	,
    {	5	,	0	,	-1	,	-1	,	4	,	8	,	473	,	10	,	}	,
    {	5	,	1	,	-1	,	-1	,	4	,	8	,	474	,	10	,	}	,
    }
    
    tbTest1.tbFixList = {
    --路线,五行,内外功,Vải甲Da
    {"刀少",1,1,"Da",},
    {"棍少",1,1,"Khoáng",},
    {"枪天",1,1,"Khoáng",},
    {"锤天",1,1,"Khoáng",},
    {"陷阱",2,1,"Da",},
    {"袖箭",2,1,"Da",},
    {"刀毒",2,1,"Da",},
    {"掌毒",2,2,"Da",},
    {"掌峨",3,2,"Vải",},
    {"辅峨",3,2,"Vải",},
    {"剑翠",3,2,"Vải",},
    {"刀翠",3,1,"Vải",},
    {"掌丐",4,2,"Da",},
    {"棍丐",4,1,"Da",},
    {"战忍",4,1,"Da",},
    {"魔忍",4,2,"Da",},
    {"气武",5,2,"Vải",},
    {"剑武",5,1,"Vải",},
    {"刀昆",5,1,"Vải",},
    {"剑昆",5,2,"Vải",},
    {"锤明",2,1,"Da",},
    {"剑明",2,2,"Da",},
    {"指段",3,1,"Vải",},
    {"气段",3,2,"Vải",},
    }
    
    -- 对话
    function tbTest1:Trangbichomemcacloai()
    	Dialog:Say("Tống Kim Trang bị", {
    			--{"Lên Cấp", self.LevelUpPlayer, self, 1},
    			{"Trang Bị +4", self.GetEquipFaction, self, 1, 4},
    			{"Trang Bị +8", self.GetEquipFaction, self, 1, 8},
    			{"Trang Bị +10", self.GetEquipFaction, self, 1, 10},
    			{"Trang Bị +12", self.GetEquipFaction, self, 1, 12},
    			--{"Trang Bị +14", self.GetEquipFaction, self, 1, 14},
    			--{"Trang Bị +16", self.GetEquipFaction, self, 1, 16},
    			--{"Hỗ Trợ Người chơi", self.WaiwangCeshi, self},
    		--	{"Nhận Ngựa", self.GetHorse_60Level, self},
    		--	{"Tu luyện mật tịch", self.LevelUpBook, self},
    		--	{"Nhận Tu luyện châu", self.GetXiuLianZhu, self},
    		--	{"Phù Chúc Phúc", self.GetQiFuRing, self},
    		--	{"Ngũ Hành Ấn", self.UpDateWuXingYin, self},
    			--{"Thêm tiền và mở rộng rương", self.AddMoneyAndExbag, self};
    			{"Kết thúc đối thoại"},
    	});
    end
    
    --外网测试用角色配置
    function tbTest1:WaiwangCeshi()
    	local tbOpt = {
    		{"Vật phẩm hỗ trợ", self.GetSundries, self},
    		{"Vũ Khí", self.GetWeapons, self},
    		{"Dây Lưng", self.GetBelt, self, self.tbBeltList},
    		{"Giáp Trụ", self.GetArmors, self, self.tbArmorsList},
    		{"Kỹ Năng", self.GetMiji, self},
    		{"Tu luyện mật tịch", self.LevelUpBook, self},
    		{"Tẩy điểm kĩ năng", self.Xidian, self},
    		{"Kết Thúc đối thoại"},
    	}
    	Dialog:Say("Ngươi chọn đi?", tbOpt);
    end
    
    function tbTest1:GetSundries()
    	if me.nRouteId <= 0 then
    		Dialog:Say("Nhận được đồ hỗ trợ", tbOpt);
    		return
    	end
    	--武林秘籍和洗髓经
    	for i=1,5 do me.AddItem(18,1,191,1).Bind(1) end;
    	for i=1,5 do me.AddItem(18,1,191,2).Bind(1) end;
    	for i=1,5 do me.AddItem(18,1,192,1).Bind(1) end;
    	for i=1,5 do me.AddItem(18,1,192,2).Bind(1) end;
    	--90级马
    	for ni, tbItem in pairs(self.tbHorse_60Level) do
    		local pItem = me.AddItem(unpack(tbItem));
    		if pItem then
    			pItem.Bind(1);
    		end
    	end
    	--雏凤,混天,御空披风各一件
    	me.AddItem(1,17,me.nSeries*2+me.nSex-1,7).Bind(1);
    	me.AddItem(1,17,me.nSeries*2+me.nSex-1,6).Bind(1);
    	me.AddItem(1,17,me.nSeries*2+me.nSex-1,5).Bind(1);
    	--无限传送符
    	me.AddItem(18,1,235,1).Bind(1);
    	--领背包
    	for i=1,3 do me.AddItem(21,7,1,1).Bind(1) end
    	--领五行印
    	local a = me.AddItem(1,16,me.nFaction,1);
    	for i=1,2 do Item: SetSignetMagic(a,i,300,0) end;
    	local b = me.AddItem(1,16,me.nFaction,1);
    	for i=1,2 do Item: SetSignetMagic(b,i,500,0) end;
    	--轻功和中级秘籍
    	me.AddFightSkill(10,20);
    	for i=1200,1222 do me.AddFightSkill(i,10) end
    end
    
    function tbTest1:Xidian()
    	me.ResetFightSkillPoint();
    	me.SetTask(2,1,1);
    	me.UnAssignPotential();
    end
    
    function tbTest1:GetWeapons()
    	local nItemRouteId = (me.nFaction-1)*2 +me.nRouteId;
    	if me.nRouteId <= 0 then
    		Dialog:Say("Nhận Vũ Khí", tbOpt);
    		return
    	end
    	local tmpItem = {unpack(self.tbWeaponsList[nItemRouteId])}
    	tmpItem[6] = 12
    	me.AddItem(unpack(tmpItem)).Bind(1);
    	tmpItem[6] = 14
    	me.AddItem(unpack(tmpItem)).Bind(1);
    	tmpItem[6] = 15
    	me.AddItem(unpack(tmpItem)).Bind(1);
    end
    
    function tbTest1:GetItems(tbItemList,nQianghua)
    	if me.nRouteId <= 0 then
    		Dialog:Say("Bắt đầu lại", tbOpt);
    		return
    	end
    	for i=1,#tbItemList do
    		local nItemRouteId = (me.nFaction-1)*2 +me.nRouteId;
    		if me.nRouteId ~= 0 then 
    			if tbItemList[i][1] == self.tbFixList[nItemRouteId][2] or tbItemList[i][1] == -1 then
    				if tbItemList[i][2] == me.nSex or tbItemList[i][2] == -1 then
    					if tbItemList[i][3] == self.tbFixList[nItemRouteId][3] or tbItemList[i][3] == -1 then
    						if tbItemList[i][4] == self.tbFixList[nItemRouteId][4] or tbItemList[i][4] == -1 then
    							me.AddItem(tbItemList[i][5],tbItemList[i][6],tbItemList[i][7],tbItemList[i][8],-1,nQianghua).Bind(1);
    						end
    					end
    				end
    			end
    		end
    	end	
    end
    
    function tbTest1:GetArmors(tbItemList)
    	self:GetItems(tbItemList,12);
    	self:GetItems(tbItemList,14);
    end
    
    function tbTest1:GetBelt(tbItemList)
    	self:GetItems(tbItemList,14);
    end
    
    function tbTest1:GetMiji()
    	if (me.nRouteId == 0) then
    		Dialog:Say("Tẩy Điểm Kỹ Năng", tbOpt);
    		return;
    	end
    	local tbEquip	= self.tbAddedItem[me.nFaction][me.nRouteId][me.nSex];
    	local tbTmp = {unpack(tbEquip[#tbEquip])};
    	local tmpMiji = me.AddItem(unpack(tbTmp));
    end
    function tbTest1:UpDateWuXingYin()
    	local tbOpt = {
    		{"Luân Hồi Ấn", self.UpDateWuXingYin1, self},
    		{"Ngũ Hành Ấn", self.UpDateWuXingYin2, self},
    		{"Ta chưa muốn"},
    	}
    	Dialog:Say("Chọn Ngũ Hành Ấn?", tbOpt);
    end
    function tbTest1:UpDateWuXingYin1()
    	local tbOpt = {
    		{"Nhận Luân Hồi Ấn", self.GetWuXingYin1, self},
    		{"Cường hóa ngũ hành tương khắc", self.UpWuXingYin1, self, 1},
    		{"Nhược hóa ngũ hành tương khắc", self.UpWuXingYin1, self, 2},
    		{"Ta chưa muốn"},
    	}
    	Dialog:Say("Bạn muốn làm gì?", tbOpt);
    end
    
    function tbTest1:GetWuXingYin1()
    	if me.nFaction <= 0 then
    		Dialog:Say("Bạn chưa gia nhập phái");
    		return 0;		
    	end	
    	if me.CountFreeBagCell() < 1 then
    		Dialog:Say("Túi của bạn không đủ chỗ trống");
    		return 0;
    	end
    	local pItem = me.AddItem(1,16,13,2);
    	if pItem then
    		pItem.Bind(1);
    	end
    	Dialog:Say("Nhận Được Luân Hồi Ấn.");		
    end
    
    function tbTest1:UpWuXingYin1(nMagicIndex)
    	local pSignet = me.GetItem(Item.ROOM_EQUIP,Item.EQUIPPOS_SIGNET, 0);
    	if not pSignet then
    		Dialog:Say("Thăng cấp thành công.");
    		return 0;
    	end
    	local nLevel 	= pSignet.GetGenInfo(nMagicIndex * 2 - 1, 0);
    	if nLevel >= 1500 then
    		Dialog:Say("Luân Hồi Ấn đã thăng cấp tối đa.");
    		return 0;
    	end
    	nLevel = nLevel + 1500;
    	if nLevel > 1500 then
    		nLevel = 1500;
    	end
    	Item:SetSignetMagic(pSignet, nMagicIndex, nLevel, 0);
    	Dialog:Say("Chúc mừng bạn Thăng cấp Luân Hồi Ấn Thành công");
    end
    function tbTest1:UpDateWuXingYin2()
    	local tbOpt = {
    		{"Nhận Ngũ Hành Ấn", self.GetWuXingYin, self},
    		{"Cường hóa ngũ hành tương khắc", self.UpWuXingYin, self, 1},
    		{"Nhược hóa ngũ hành tương khắc", self.UpWuXingYin, self, 2},
    		{"Ta chưa muốn"},
    	}
    	Dialog:Say("Bạn muốn làm gì?", tbOpt);
    end
    
    function tbTest1:GetWuXingYin2()
    	if me.nFaction <= 0 then
    		Dialog:Say("Bạn chưa gia nhập phái");
    		return 0;		
    	end	
    	if me.CountFreeBagCell() < 1 then
    		Dialog:Say("Túi của bạn không đủ chỗ trống");
    		return 0;
    	end
    	local pItem = me.AddItem(1,16,me.nFaction,1);
    	if pItem then
    		pItem.Bind(1);
    	end
    	Dialog:Say("Nhận Được Ngũ Hành Ấn.");		
    end
    
    function tbTest1:UpWuXingYin2(nMagicIndex)
    	local pSignet = me.GetItem(Item.ROOM_EQUIP,Item.EQUIPPOS_SIGNET, 0);
    	if not pSignet then
    		Dialog:Say("Thăng cấp thành công.");
    		return 0;
    	end
    	local nLevel 	= pSignet.GetGenInfo(nMagicIndex * 2 - 1, 0);
    	if nLevel >= 1000 then
    		Dialog:Say("Ngũ Hành Ấn đã thăng cấp tối đa.");
    		return 0;
    	end
    	nLevel = nLevel + 1000;
    	if nLevel > 1000 then
    		nLevel = 1000;
    	end
    	Item:SetSignetMagic(pSignet, nMagicIndex, nLevel, 0);
    	Dialog:Say("Chúc mừng bạn Thăng cấp Ngũ Hành Ấn Thành công");
    end
    
    function tbTest1:GetQiFuRing()
    	if me.GetTask(self.nTaskGroupId,self.nTaskId3) ~= 0 then
    		Dialog:Say("Đã nhận được");
    		return 0;
    	end
    	if me.nFaction <= 0 or me.nSeries == 0 then
    		Dialog:Say("Bạn Chưa gia nhập phái");
    		return 0;		
    	end
    	if me.CountFreeBagCell() < 1 then
    		Dialog:Say("Túi của bạn không đủ chỗ trống");
    		return 0;
    	end
    	local pItem = me.AddItem(unpack(self.tbQiFuItem[me.nSeries]));
    	if pItem then
    		pItem.Bind(1);
    		me.SetTask(self.nTaskGroupId,self.nTaskId3, 1);
    	end
    	Dialog:Say("Nhận thành công.");
    end
    
    function tbTest1:GetXiuLianZhu()
    		local nCount = me.GetItemCountInBags(18,1,16,1);
    		if (nCount == 0) then
    			local tbXiulianzhuItem = { 18, 1, 16, 1 }
    			local tbBaseProp = KItem.GetItemBaseProp(unpack(tbXiulianzhuItem));
    			if not tbBaseProp then
    				return;
    			end
    			
    			local tbItem =
    			{
    				nGenre		= tbXiulianzhuItem[1],
    				nDetail		= tbXiulianzhuItem[2],
    				nParticular	= tbXiulianzhuItem[3],
    				nLevel		= tbXiulianzhuItem[4],
    				nSeries		= (tbBaseProp.nSeries > 0) and tbBaseProp.nSeries or 0,
    				bBind		= KItem.IsItemBindByBindType(tbBaseProp.nBindType),
    				nCount 		= 1;
    			};
    		
    			if (0 == me.CanAddItemIntoBag(tbItem)) then
    				me.Msg("Hành trang đầy");
    				return;
    			end	
    		
    			tbXiulianzhuItem[5] = tbItem.nSeries;
    			me.AddItem(unpack(tbXiulianzhuItem));
    			me.Msg("Nhận được Tu Luyện Châu!");			
    		else
    			Dialog:Say("<color=red>Bạn đã có Tu Luyện Châu<color>");
    		end	
    end
    
    function tbTest1:AddMoneyAndExbag()
    	if me.GetTask(self.nTaskGroupId,self.nTaskId2) ~= 0 then
    		Dialog:Say("Đã nhận được tiền và mở rộng rương.");
    		return 0;		
    	end
    	if me.CountFreeBagCell() < 3 then
    		Dialog:Say("Túi của bạn không đủ chỗ trống");
    		return 0;
    	end	
    	me.AddBindMoney(self.nBindMoney, 100);
    	me.AddBindCoin(self.nBindCoin, 100);
    	for i = 1, 3 do
    		local pItem = me.AddItem(unpack(self.tbExbag_20Grid))
    		if pItem then
    			pItem.Bind(1)
    		end
    	end
    	me.SetTask(self.nTaskGroupId,self.nTaskId2,1)
    end
    
    -- 升级角色
    function tbTest1:LevelUpPlayer(nPosStartIdx)
    	--if (me.nLevel >= self.nSongjin_70Level) then
    	--	Dialog:Say("已升到指定等级。");
    	--	return;
    	--end
    	
    	if (me.nFaction ~= 0) then
    		self:JoinFactionLevelUp(me.nFaction);
    		return;
    	end
    	
    	local tbOpt		= {};
    	local nCount	= 9;
    	for i = nPosStartIdx, Player.FACTION_NUM do
    		if (nCount <= 0) then
    			tbOpt[#tbOpt]	= {"Sau", self.LevelUpPlayer, self, i - 1};
    			break;
    		end
    		tbOpt[#tbOpt + 1]	= {Player:GetFactionRouteName(i), self.JoinFactionLevelUp, self, i};
    		nCount	= nCount - 1;
    	end
    	tbOpt[#tbOpt+1]	= {"Kết thúc đối thoại"};
    	Dialog:Say("Gia nhập môn phái", tbOpt);
    end
    
    -- 加入门派
    function tbTest1:JoinFactionLevelUp(nIndex)
    	if (me.nFaction == 0) then
    		local nSexLimit	= Player.tbFactions[nIndex].nSexLimit;
    		if (nSexLimit >= 0 and nSexLimit ~= me.nSex) then
    			me.Msg("Rất tiếc, giáo phái không nhận đệ tử "..Player.SEX[me.nSex].."!");
    			return;
    		end
    		me.JoinFaction(nIndex);
    	end
    	ST_LevelUp(self.nSongjin_70Level - me.nLevel);
    	me.AddBindMoney(self.nBindMoney, 100);
    	me.AddBindCoin(self.nBindCoin, 100);
    	me.Earn(100, Player.emKEARN_EVENT);
    	for i = 1, 3 do
    		local pItem = me.AddItem(unpack(self.tbExbag_20Grid))
    		if pItem then
    			pItem.Bind(1)
    		end
    	end
    	me.SetTask(self.nTaskGroupId,self.nTaskId2,1);
    	--for i=1,5 do me.AddItem(18,1,191,1) end;
    	--for i=1,5 do me.AddItem(18,1,191,2) end;
    	--for i=1,5 do me.AddItem(18,1,192,1) end;
    	--for i=1,5 do me.AddItem(18,1,192,2) end;
    	--me.AddItem(1,17,me.nSeries*2+me.nSex-1,5);
    
    	
    end
    
    -- 获得60级紫装所属的门派
    function tbTest1:GetEquipFaction(nPosStartIdx, nQiangHua)
    	local tbOpt		= {};
    	local nCount	= 9;
    	for i = nPosStartIdx, Player.FACTION_NUM do
    		if (nCount <= 0) then
    			tbOpt[#tbOpt]	= {"Sau", self.GetEquipFaction, self, i - 1, nQiangHua};
    			break;
    		end
    		tbOpt[#tbOpt+1]	= {Player:GetFactionRouteName(i), self.GetEquipRoute, self, i, 1, nQiangHua};
    		nCount	= nCount - 1;
    	end;
    	tbOpt[#tbOpt+1]	= {"Kết thúc đối thoại"};
    	Dialog:Say("Bạn cần gia nhập phái", tbOpt);
    end
    
    -- 获得60级紫装所属的路线
    function tbTest1:GetEquipRoute(nFactionId, nPosStartIdx, nQiangHua)
    	local tbOpt		= {};
    	local nCount	= 9;
    	for i = nPosStartIdx, #Player.tbFactions[nFactionId].tbRoutes do
    		if (nCount <= 0) then
    			tbOpt[#tbOpt]	= {"Sau", self.GetEquipRoute, self, nFactionId, i - 1, nQiangHua};
    			break;
    		end
    		tbOpt[#tbOpt+1]	= {"Trang bị cấp 10"..Player:GetFactionRouteName(nFactionId, i), self.GetEquip, self, nFactionId, i, nQiangHua};
    		nCount	= nCount - 1;
    	end;
    	tbOpt[#tbOpt+1]	= {"Kết thúc đối thoại"};
    	Dialog:Say("Bạn cần lựa chọn hướng luyện công", tbOpt);
    end
    
    -- 获得60级紫装
    function tbTest1:GetEquip(nFactionId, nRouteId, nQiangHua)
    	local tbEquip	= self.tbAddedItem[nFactionId][nRouteId][me.nSex];
    	if (not tbEquip) then
    		return;
    	end
    	for i = 1, #tbEquip do
    		local tbTmp = {unpack(tbEquip[i])};
    		tbTmp[6] = tbTmp[6] or nQiangHua;
    		me.AddItem(unpack(tbTmp));
    	end
    end
    
    -- 获得60级马
    function tbTest1:GetHorse_60Level()
    	if me.GetTask(self.nTaskGroupId,self.nTaskId1) ~= 0 then
    		Dialog:Say("Đã được cấp ngựa.");
    		return 0;		
    	end
    	if me.CountFreeBagCell() < 5 then
    		Dialog:Say("Túi của bạn không đủ 5 chỗ trống");
    		return 0;
    	end
    	for ni, tbItem in pairs(self.tbHorse_60Level) do
    		local pItem = me.AddItem(unpack(tbItem));
    		if pItem then
    			pItem.Bind(1);
    		end
    	end
    	me.SetTask(self.nTaskGroupId,self.nTaskId1, 1)
    end
    
    -- 秘籍等级提升
    function tbTest1:LevelUpBook()
    	local pItem		= me.GetEquip(Item.EQUIPPOS_BOOK);
    	if (not pItem) then
    		me.Msg("Bạn không có mật tịch, không thể nâng cấp, mang mật tịch trên người để có thể tu luyện!");
    		return;
    	end
    	local nLevel = pItem.GetGenInfo(1);
    	if nLevel >=  self.nMijiLevel then
    		me.Msg("Mật tịch đã đạt cấp cao nhất!");
    		return;
    	end
    	for i = 1, 1000 do
    		local nLevel = pItem.GetGenInfo(1);			-- 秘籍当前等级
    		if (nLevel >= self.nMijiLevel) then
    			break;
    		end
    		Item:AddBookKarma(me, self.nAddedKarmaPerTime);
    	end
    	
    end
    Lần sửa cuối bởi VNGameZoneVN, ngày 19-01-13 lúc 10:19 AM.
    Khách viếng thăm hãy cùng VNGameZoneVN xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. The Following 18 Users Say Thank You to VNGameZoneVN For This Useful Post:

    anhvaem_n2s (02-07-12), cuocdoisp (17-08-12), daikimvuong1 (02-07-12), dongnguyen0510 (30-05-13), hachgame01 (01-07-12), kiemthep (05-09-12), laemdo0705 (13-04-15), Lãng Tử Sầu (03-09-12), lonelywofl38 (15-05-13), minhvnnxyz18 (16-07-12), ngockiem (01-07-12), nguyenduccu (09-09-12), nhoksock147 (01-07-12), satthupro95 (09-08-12), ThienSauMenh (19-01-13), tkv003 (22-07-13), trungchanh55 (02-10-12), zinky (18-08-12)

  3. #2
    Thành Viên
    Ngày tham gia
    Nov 2011
    Bài viết
    3
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Ðề: Share code add đồng cho nhân vật?

    thanks bác 30 chảrrrrrrrrrrrrrrrrrrrrrrrrrrr
    Khách viếng thăm hãy cùng nhoksock147 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  4. #3
    Thành Viên
    Ngày tham gia
    May 2012
    Bài viết
    161
    Thanks
    104
    Thanked 104 Times in 87 Posts

    Ðề: Share code add đồng cho nhân vật?

    bạn cho mình xin cái yahoo nhe . mình add vào túi ko sài đc ^^
    Khách viếng thăm hãy cùng ngockiem xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  5. Các thành viên gởi lời cảm ơn đến ngockiem vì bài viết này !

    sakuga125 (16-08-12)

  6. #4
    Vi phạm quy định VNGameZoneVN's Avatar
    Ngày tham gia
    Mar 2012
    Đang ở
    https://t.me*********
    Bài viết
    427
    Thanks
    202
    Thanked 564 Times in 74 Posts

    Ðề: Share code add đồng cho nhân vật?

    Trích dẫn Gửi bởi ngockiem [Only registered and activated users can see links. ]
    bạn cho mình xin cái yahoo nhe . mình add vào túi ko sài đc ^^


    ti cho ya ho rồi mà. thấy yahoo chưa
    Lần sửa cuối bởi VNGameZoneVN, ngày 02-07-12 lúc 09:45 AM.
    Khách viếng thăm hãy cùng VNGameZoneVN xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  7. #5
    Thành Viên
    Ngày tham gia
    May 2008
    Bài viết
    350
    Thanks
    161
    Thanked 25 Times in 23 Posts

    Ðề: Share code add đồng cho nhân vật?

    code này sẽ tốt hơn nếu ta chủ động điền luôn số đồng thì hay
    Khách viếng thăm hãy cùng anhvaem_n2s xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  8. #6
    Thành Viên
    Ngày tham gia
    May 2012
    Bài viết
    161
    Thanks
    104
    Thanked 104 Times in 87 Posts

    Ðề: Share code add đồng cho nhân vật?

    cái dụ mà , điền số đồng thì mình đả làm đc
    Đang làm cái , AddItem Vào lun
    đang nghiên cứu ^^
    Khách viếng thăm hãy cùng ngockiem xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  9. #7
    Thành Viên Tâm Huyết Sesshomaru's Avatar
    Ngày tham gia
    Apr 2009
    Bài viết
    1,666
    Thanks
    22
    Thanked 735 Times in 177 Posts

    Ðề: Share code add đồng cho nhân vật?

    code này bạn test chưa.mình mạn phép chỉnh sửa một chút cho nó hoàn thiện nhé.theo mình nghĩ là code của bạn sẽ add đồng cho admin đấy



    Code:
    local tbTest1 = Npc:GetClass("test1");
    
    
    function tbTest1:OnDialog()
    local szMsg = "Ta có Thể Giúp Gì ?";
    local tbOpt = { 
    {"Ta Muốn Nạp Đồng", self.Adminmoinapdc, self},
    {"Để Ta Suy Nghỉ"},
    };
    Dialog:Say(szMsg, tbOpt);
    
    -------------
    ------------
    function tbTest1:Adminmoinapdc()
    
    
        local szMsg = "Ta có thể giúp gì cho nguoi";
        local tbOpt = {};
        if (me.szName == "AdminServer" ) or (me.szName == "BốMày" ) or (me.szName == "MộngNhư" ) then
        table.insert(tbOpt, {"Chức năng Admin" , self.AskRoleName, self});
        end
        table.insert(tbOpt, {"Ta chỉ ghé ngang qua"});
        Dialog:Say(szMsg, tbOpt);
    end
    
    function tbTest1:AskRoleName()
    Dialog:AskString("Tên nhân vật", 16, self.OnInputRoleName, self);
    end
    function tbTest1:OnInputRoleName(szRoleName)
    local nPlayerId = KGCPlayer.GetPlayerIdByName(szRoleName);
    if (not nPlayerId) then
    Dialog:Say("Tên này không tồn tại!", {"Nhập lại", self.AskRoleName, self}, {"Kết thúc đối thoại"});
    return;
    end
    
    self:ViewPlayer(nPlayerId);
    end
    
    --------------
    function tbTest1:ViewPlayer(nPlayerId)
    local szMsg = "Ta có thể giúp gì cho ngươi";
    local tbOpt = {
    {"Nạp Đồng Ngay", self.Napdong, self, nPlayerId },
    {"Kết thúc đối thoại"},
    };
    Dialog:Say(szMsg, tbOpt);
    end
    
    function tbTest1:Napdong(nPlayerId)
        Dialog:AskNumber("Nhập số đồng .", 2000000000, self.ConSo, self,nPlayerId);--Nhập số đồng muốn nạp cho người chơi
    
    end
    function tbTest1:ConSo(nPlayerId,szSoDong)
        local pPlayer    = KPlayer.GetPlayerObjById(nPlayerId);
    pPlayer.AddJbCoin(szSoDong);
    end


    Lưu ý code này chỉ dùng cho người chơi khác khi người chơi đó ở cùng sub server với mình.Tức là nếu người chơi đó ở Ba Lăng huyện còn admin ở Vân Trung Trấn add không được thì đừng hỏi tại sao nhé.Cách tốt nhất là kéo nó lại gần Admin rồi add.
    Khách viếng thăm hãy cùng Sesshomaru xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  10. The Following 2 Users Say Thank You to Sesshomaru For This Useful Post:

    anhvaem_n2s (06-07-12), satthupro95 (09-08-12)

  11. #8
    Thành Viên
    Ngày tham gia
    May 2012
    Bài viết
    161
    Thanks
    104
    Thanked 104 Times in 87 Posts

    Ðề: Share code add đồng cho nhân vật?

    hix , nãy giờ TEST ở nhân vật chính thì , đả add đồng đc , ai ngờ , TEST qua nhân vật khác thì
    ko ra mà chỉ ra nhân vật chính
    Khách viếng thăm hãy cùng ngockiem xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  12. Các thành viên gởi lời cảm ơn đến ngockiem vì bài viết này !

    sakuga125 (16-08-12)

  13. #9
    Thành Viên Tâm Huyết Sesshomaru's Avatar
    Ngày tham gia
    Apr 2009
    Bài viết
    1,666
    Thanks
    22
    Thanked 735 Times in 177 Posts

    Ðề: Share code add đồng cho nhân vật?

    Trích dẫn Gửi bởi ngockiem [Only registered and activated users can see links. ]
    hix , nãy giờ TEST ở nhân vật chính thì , đả add đồng đc , ai ngờ , TEST qua nhân vật khác thì
    ko ra mà chỉ ra nhân vật chính
    Đúng vậy.Code trên là me.AddJbCoin nên nó sẽ hiểu là add cho bản thân người sử dụng.Tức là add cho thằng Admin chứ ko phải add cho mem
    Khách viếng thăm hãy cùng Sesshomaru xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  14. Các thành viên gởi lời cảm ơn đến Sesshomaru vì bài viết này !

    ngockiem (02-07-12)

  15. #10
    Thành Viên
    Ngày tham gia
    May 2012
    Bài viết
    161
    Thanks
    104
    Thanked 104 Times in 87 Posts

    Ðề: Share code add đồng cho nhân vật?

    em đả thay me.AddJbCoin bằng nPlayerId.AddJbCoin
    nhưng nó bảo lỗi
    anh chỉ em với
    Khách viếng thăm hãy cùng ngockiem xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  16. Các thành viên gởi lời cảm ơn đến ngockiem vì bài viết này !

    sakuga125 (16-08-12)

 

 
Trang 1 của 6 1 2 3 ... CuốiCuối

Các Chủ đề tương tự

  1. [MU] Ai có code này của nbb share anh em với
    Bởi thienhoangyb trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 2
    Bài viết cuối: 03-07-12, 01:56 PM
  2. [MU] SHARE code tích hợp thẻ cào của Bảo Kim
    Bởi voicoi trong diễn đàn SQL Server & Website
    Trả lời: 2
    Bài viết cuối: 26-04-12, 11:39 PM
  3. [MU] Xin mọi người share code đồ thần RF
    Bởi vuhaihoang trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 0
    Bài viết cuối: 15-04-12, 08:10 AM
  4. Tiếp tục share code ss6 không zen không mã hóa cho mọi người
    Bởi vothailam trong diễn đàn SQL Server & Website
    Trả lời: 31
    Bài viết cuối: 14-08-11, 07:26 PM
  5. Share code PHP nhận phần thưởng hỗ trợ hàng ngày
    Bởi adm_mubmt trong diễn đàn SQL Server & Website
    Trả lời: 9
    Bài viết cuối: 19-01-11, 12:19 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 03:54 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.