PDA

View Full Version : [KT] Túi tân thủ cuả mình nè, chuẩn và full, đã chia theo hệ phái



duongquyet101
28-01-12, 11:26 AM
anh em vào ủng hộ cái nha, cái này là mình chắt lọc tinh hoa của rất nhiều bạn, thank nha . . .
* Note: cái này chạy chuẩn trên server của trantoai223 <b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
Link download: <b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>

Lãng Tử Sầu
28-01-12, 11:31 AM
Tks động viên ;) . Còn 1 số cái chưa Việt hóa kìa Bạn:D

duongquyet101
28-01-12, 11:40 AM
đang cóng tay, lười.... mới lại việt hóa nó ko sát nghĩa thôi, nó chỉ là mấy cái câu thông báo thôi

Sesshomaru
28-01-12, 11:45 AM
bạn chia thành từng ngũ hành thì sẽ đẹp;))

duongquyet101
28-01-12, 11:58 AM
bạn chia thành từng ngũ hành thì sẽ đẹp;))

ờ, mình cũng nghĩ như thế, nhưng mà lười thế là cũng tạm ổn nhỉ

Sesshomaru
28-01-12, 12:04 PM
ờ, mình cũng nghĩ như thế, nhưng mà lười thế là cũng tạm ổn nhỉ
chức năng GM ng chơi thường cũng dùng được

duongquyet101
28-01-12, 12:08 PM
chức năng GM ng chơi thường cũng dùng được
là sao, cái thẻ Gm á, nói rõ xem coi

Sesshomaru
28-01-12, 12:24 PM
{"Nhận vật phẩm hỗ trợ",self.GM,self}, cái này ng chơi nào cũng xài được

Anh2SiTinh
28-01-12, 12:44 PM
Sao mình dùng cóvài con thứ không có hình ảnh cũng như khôgn hiện trong túi đồ luôn
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>

thienvinh12312
28-01-12, 12:48 PM
Mình đã bổ sung thêm set đố cuối đã + sẵn 16 (dành cho bạn nào nhát +) vào trong túi này.Set đồ này đầy đủ nam,nữ,nội ngoại mình đã chia ra hết rồi.Ai thích thì xài
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>

duongquyet101
28-01-12, 01:11 PM
Sao mình dùng cóvài con thứ không có hình ảnh cũng như khôgn hiện trong túi đồ luôn
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
cái này mình cũng chịu, lỗi nhỏ thôi mà có gì đâu, mình cũng ko biết fix

duongquyet101
28-01-12, 01:14 PM
Mình đã bổ sung thêm set đố cuối đã + sẵn 16 (dành cho bạn nào nhát +) vào trong túi này.Set đồ này đầy đủ nam,nữ,nội ngoại mình đã chia ra hết rồi.Ai thích thì xài
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>

cũng đc đấy, nhưng chưa test xem thế nào :D:D:D

duongquyet101
28-01-12, 01:19 PM
{"Nhận vật phẩm hỗ trợ",self.GM,self}, cái này ng chơi nào cũng xài được

ờ, cũng chẳng để ý, thội kệ, thế nào mà chẳng được

hieubg1900
28-01-12, 02:28 PM
Không thấy đã có người share túi tân thủ đủ hết mọi chức năng rồi à. :))
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>

duongquyet101
28-01-12, 02:44 PM
Không thấy đã có người share túi tân thủ đủ hết mọi chức năng rồi à. :))
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>

không chẳng thấy đâu cả, share thì share, ai xài thì xài

hieubg1900
28-01-12, 03:25 PM
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>

:))

Kunedo
04-02-12, 09:41 PM
--脨脗脢脰脌帽掳眉拢潞赂拢脌没掳忙� �脝鲁枚潞贸拢卢脣霉脫脨脨脗脥忙录� ��驴脡脪脭脕矛脠隆脪禄赂枚脨脗脢脰 脌帽掳眉拢卢脙驴碌陆脪禄露篓碌脠� �露戮霉驴脡麓脫脨脗脢脰脌帽掳眉脰� ��禄帽碌脙脪禄露篓脢媒脕驴碌脛陆冒 脟庐录露碌脌戮脽陆卤脌酶拢卢脳脺� �脹脰碌100RMB+

SpecialEvent.NewPlayerGift = {};
local NewPlayerGift = SpecialEvent.NewPlayerGift;
NewPlayerGift.IS_OPEN = EventManager.IVER_bOpenNewPlayerGift;
NewPlayerGift.TASK_GROUP_ID = 2034;
NewPlayerGift.TASK_CURRENT_INDEX = 10;

NewPlayerGift.OPEN_DAY = 20; --驴陋路镁n脤矛脛脷陆篓碌脛陆脟脡芦� ��脜脫脨脌帽掳眉

NewPlayerGift.SERVER_OPEN_DAY = 20090605; -- 脮芒脤矛脰庐潞贸驴陋碌脛路镁虏脜� �脺

NewPlayerGift.SHOW_OPTION_UNTIL = 20090825; -- 脰禄脭脷脮芒脤矛脰庐脟掳脧脭脢戮� �隆脧卯


NewPlayerGift.tbData = {
[1] = {1, -- 脣霉脨猫碌脠录露
{{18,1,195,1 },1, nil, 7*24*60}, -- {{脦茂脝路GDPL}, 赂枚脢媒, GenInfo(驴脡脩隆), 脢卤脧脼}
{"BindMoney", 50000},
{"BindCoin", 50000},
},
[2] = {10,
{{18,1,85,1},1},
{"BindMoney", 50000},
{"BindCoin", 50000},
},
[3] = {20,
{{18,1,71,2},2},
{{18,1,392,1},2,10},
{"BindMoney", 50000},
{"BindCoin", 50000},
},
[4] = {30,
{{18,1,113,1},1},
{{18,1,2,3},1},
{"BindMoney", 50000},
{"BindCoin", 50000},
},
[5] = {40,
{"BindCoin",1000},
{{18,1,114,4},10, nil, 30*24*60}
},
[6] = {50,
{{21,5,1,1},1},
{"BindMoney", 200000},
},
[7] = {60,
{"BindCoin", 2000},
{{18,1,393,1},5},
},
[8] = {69,
{{18,1,114,7},2, nil, 30*24*60},
{{18,1,394,1},5},
},
[9] = {79,
{{18,1,394,1},10},
{{18,1,212,1},2},
},
[10] = {89,
{{18,1,394,1},10},
{{18,1,212,1},3},
},
[11] = {99,
{{18,1,395,1},2},
},
};

-- 脤篓脥氓掳忙赂脛露炉
if (IVER_g_nTwVersion == 1) then
NewPlayerGift.tbData = {
[1] = {1, -- 脣霉脨猫碌脠录露
{{18,1,71,1},2},
{{18,1,195,1},1,nil,7*24*60}, -- 脪禄脰脺脦脼脧脼麓芦脣脥路没
{"BindCoin",50},
{"BindMoney", 500},
},
[2] = {10,
{{18,1,71,1},3},
{{18,1,77,1},2}, -- 脥颅脭驴鲁脳
{{18,1,85,1},1}, -- 脟卢脌陇路没
{"BindCoin",100},
{"BindMoney", 1000},
},
[3] = {20,
{{18,1,114,2},10}, -- 2录露脨镁戮搂
{{18,1,24,1},3}, -- 戮脜脳陋脨酶脙眉脥猫
{{18,1,71,1},3},
{"BindCoin",200},
{"BindMoney", 2000},
},
[4] = {30,
{{18,1,114,3},10}, -- 3录露脨镁戮搂
{{18,1,258,1},2}, -- 脨脼脕露碌陇
{{18,1,113,1},1}, -- 脨隆麓芦脡霉潞拢脗脻
{"BindCoin",300},
},
[5] = {40,
{{18,1,114,4},10}, -- 3录露脨镁戮搂
{{18,1,258,1},2}, -- 脨脼脕露碌陇
{{18,1,85,1},1}, -- 脟卢脌陇路没
{{18,1,2,3},1}, -- 陆冒脧卢3录露
{"BindCoin",400},
},
[6] = {50,
{{18,1,258,1},3}, -- 脨脼脕露碌陇
{{21,3,1,1},1}, -- 8赂帽掳眉
{{18,1,113,1},1}, -- 脨隆麓芦脡霉潞拢脗脻
{{18,1,195,1},1,nil,7*24*60}, -- 脪禄脰脺脦脼脧脼麓芦脣脥路没
{"BindCoin", 500},
},
[7] = {60,
{{18,1,114,5},5}, -- 5录露脨镁戮搂
{{18,1,82,1},3}, -- 脪酶脭驴鲁脳
{{18,1,244,1},1}, -- 禄锚脢炉脧盲拢篓100拢漏
{{18,1,195,1},1,nil,7*24*60}, -- 脪禄脰脺脦脼脧脼麓芦脣脥路没
{"BindCoin", 600},
},
[8] = {69,
{{18,1,114,6},3}, -- 6录露脨镁戮搂
{{18,1,82,1},3}, -- 脪酶脭驴鲁脳
{{18,1,258,1},3}, -- 脨脼脕露碌陇
{{18,1,2,4},1}, -- 陆冒脧卢4录露
{{18,1,195,1},1,nil,7*24*60}, -- 脪禄脰脺脦脼脧脼麓芦脣脥路没
{"BindCoin", 700},
},
[9] = {79,
{{18,1,114,6},5}, -- 6录露脨镁戮搂
{{18,1,258,1},3}, -- 脨脼脕露碌陇
{{18,1,212,1},2}, -- 鲁玫录露脝铆赂拢脕卯脜脝
{{18,1,244,1},1}, -- 禄锚脢炉脧盲拢篓100拢漏
{{18,1,195,1},1,nil,7*24*60}, -- 脪禄脰脺脦脼脧脼麓芦脣脥路没
{"BindCoin", 800},
},
[10] = {89,
{{18,1,187,1},2}, -- 陆冒脭驴鲁脳
{{18,1,212,1},2}, -- 鲁玫录露脝铆赂拢脕卯脜脝
{{18,1,114,6},2}, -- 6录露脨镁戮搂
{{18,1,195,1},1,nil,7*24*60}, -- 脪禄脰脺脦脼脧脼麓芦脣脥路没
{{18,1,85,1},1}, -- 脟卢脌陇路没
{{18,1,244,1},10}, -- 禄锚脢炉脧盲拢篓100拢漏
{"BindCoin", 900},
},
[11] = {99,
{{18,1,187,1},3}, -- 陆冒脭驴鲁脳
{{18,1,212,1},3}, -- 鲁玫录露脝铆赂拢脕卯脜脝
{{18,1,114,6},3}, -- 6录露脨镁戮搂
{{18,1,195,1},1,nil,7*24*60}, -- 脪禄脰脺脦脼脧脼麓芦脣脥路没
{{18,1,85,1},1}, -- 脟卢脌陇路没
{{18,1,244,1},10}, -- 禄锚脢炉脧盲拢篓100拢漏
{"BindCoin", 2000},
},
};
end

NewPlayerGift.tbNeededSpace = {};
NewPlayerGift.tbLevel = {};
NewPlayerGift.tbAward = {}

function NewPlayerGift:Init()
for i, tb in ipairs(self.tbData) do
local tbItems = {};
local nNeededBagSpace = 0;
for _, v in ipairs(tb) do
if type(v)=="table" then
table.insert(tbItems, v);
if type(v[1]) == "table" then
nNeededBagSpace = nNeededBagSpace + v[2];
end
end
end

self.tbLevel[i] = tb[1];
self.tbNeededSpace[i] = nNeededBagSpace;
self.tbAward[i] = tbItems;
end
end

NewPlayerGift:Init();

function NewPlayerGift:GetCurrData(pPlayer)
local nIndex = pPlayer.GetTask(self.TASK_GROUP_ID, self.TASK_CURRENT_INDEX);
if nIndex >= #self.tbData + 1 then
return nil;
end

if nIndex == 0 then
nIndex = 1;
pPlayer.SetTask(self.TASK_GROUP_ID, self.TASK_CURRENT_INDEX, 1);
end

return self.tbLevel[nIndex], self.tbNeededSpace[nIndex], self.tbAward[nIndex];
end

function NewPlayerGift:CanGetAward(pPlayer)
local nLevel, nNeededSpace, tbItems = self:GetCurrData(pPlayer);
if not nLevel then
return 0, "脛茫脪脩戮颅脕矛碌陆脮芒赂枚脌帽� �眉脌茂脙忙碌脛脣霉脫脨脌帽脦茂脌� ��拢隆";
end

if me.nLevel < nLevel then
return 0, string.format("Ngươi cần phải đạt cấp %d mới có thể nhận được phần thưởng", nLevel);
end

if me.CountFreeBagCell() < nNeededSpace then
return 0, string.format("Túi hành trang thiếu %d ô", nNeededSpace);
end
return 1;
end

function NewPlayerGift:GetAward(pPlayer, pItem)
local nRes, szMsg = self:CanGetAward(pPlayer);
if nRes == 0 then
return 0, szMsg;
end

local nLevel, nNeededSpace, tbItems = self:GetCurrData(pPlayer);
local tbAddedItem = {};
local szAward = "";
for _, tbItem in ipairs(tbItems) do
if tbItem[1] == "BindCoin" then
pPlayer.AddBindCoin(tbItem[2], Player.emKBINDCOIN_ADD_EVENT);
szAward = szAward .. "掳贸露篓".. IVER_g_szCoinName .. tbItem[2] .. ",";
KStatLog.ModifyAdd("bindcoin", "L谩禄鈥?bao t脙垄n th谩禄搂", "t谩潞楼t c谩潞拢", tbItem[2]);
elseif tbItem[1] == "BindMoney" then
pPlayer.AddBindMoney(tbItem[2], Player.emKBINDMONEY_ADD_EVENT);
szAward = szAward .. "掳贸脪酶" .. tbItem[2] .. ",";
KStatLog.ModifyAdd("bindjxb", "L谩禄鈥?bao t脙垄n th谩禄搂", "t谩潞楼t c谩潞拢", tbItem[2]);
else
for i = 1, tbItem[2] do
local pItem = pPlayer.AddItem(unpack(tbItem[1]));
if tbItem[3] then
--pItem.SetGenInfo(1, tbItem[3]);
--pItem.Sync();
end
if tbItem[4] then
pPlayer.SetItemTimeout(pItem, tbItem[4], 0)
end
pItem.Bind(1);
szAward = szAward .. pItem.szName .. ",";
end
end
end

Dbg:WriteLog("SpecialEvent.NewPlayerGift", string.format("%s Nh谩潞颅n 脛鈥樏喡懊÷宦 v谩潞颅t ph谩潞漏m %d c谩潞楼p %s", me.szName, nLevel, szAward));
local nIndex = pPlayer.GetTask(self.TASK_GROUP_ID, self.TASK_CURRENT_INDEX);
nIndex = nIndex + 1;
pPlayer.SetTask(self.TASK_GROUP_ID, self.TASK_CURRENT_INDEX, nIndex);
if self.tbLevel[nIndex] then
pItem.SetGenInfo(1, self.tbLevel[nIndex]);
pItem.Sync();
end
if nIndex >= #self.tbData + 1 then
pItem.Delete(pPlayer);
pPlayer.Msg("Chúc mừng ngươi đã đạt cấp 99.Ngươi có thể lấy tất cả các vật phẩm trong lễ bao này.");
end
return 1;
end

-- 脭脷脮芒赂枚脢卤录盲脰庐脟掳陆篓� �脛潞脜驴脡脪脭驴脡脪脭赂酶脌帽掳� ��
function NewPlayerGift:GetCreateRoleDeadline()
local nServerStartTime = KGblTask.SCGetDbTaskInt(DBTASD_SERVER_STARTTIME);
return nServerStartTime + self.OPEN_DAY * 86400;
end

function NewPlayerGift:ShowOption()
if GetTime() <= Lib:GetDate2Time(self.SHOW_OPTION_UNTIL) and
self.SERVER_OPEN_DAY <= tonumber(os.date("%Y%m%d", KGblTask.SCGetDbTaskInt(DBTASD_SERVER_STARTTIME))) then
return 1;
end

end

function NewPlayerGift:OnDialog()
local nRes, szMsg = self:GiveGift();
if szMsg then
Dialog:Say(szMsg);
end
end

function NewPlayerGift:GiveGift()
if self.IS_OPEN ~= 1 then
return 0;
end

if (IVER_g_nTwVersion == 0) then
--6脭脗5潞脜潞贸驴陋碌脛路镁
if tonumber(os.date("%Y%m%d", KGblTask.SCGetDbTaskInt(DBTASD_SERVER_STARTTIME))) < self.SERVER_OPEN_DAY then
return 0, "卤戮路镁脦帽脝梅虏禄虏脦脫毛脨脗� �脰脌帽掳眉禄卯露炉";
end

--赂拢脌没掳忙脪脩驴陋脝么
if SpecialEvent:IsWellfareStarted() ~= 1 then
return 0, "赂拢脌没掳忙鹿娄脛脺脡脨脦麓驴陋� �么,戮麓脟毛脝脷麓媒隆拢";
end

local nCreateTime = tonumber(me.GetRoleCreateDate());
local nDeadline = self:GetCreateRoleDeadline();

--驴陋路镁20脛脷陆篓碌脛陆脟脡芦
if tonumber(os.date("%Y%m%d", nDeadline)) < nCreateTime then
local tbTime = os.date("*t", nDeadline);
return 0, string.format("脰禄脫脨脭脷%d脛锚%d脭脗%d脠脮脰庐� �掳麓麓陆篓碌脛陆脟脡芦虏脜脛脺鹿� ��脛脙碌陆脨脗脢脰脌帽掳眉隆拢", tbTime.year, tbTime.month, tbTime.day);
end

if me.GetTask(self.TASK_GROUP_ID, self.TASK_CURRENT_INDEX) ~= 0 then
return 0, "脛茫脪脩戮颅脕矛脠隆鹿媒脨脗脢脰� �帽掳眉脕脣隆拢";
end
end

if me.CountFreeBagCell() < 1 then
return 0, "卤鲁掳眉驴脮录盲虏禄脳茫拢卢脟毛� �脮鲁枚脪禄赂帽脰庐潞贸脭脵脌麓"
end

local pItem = me.AddItem(18, 1, 351, 1);
if pItem then
me.SetTask(self.TASK_GROUP_ID, self.TASK_CURRENT_INDEX, 1);
pItem.SetGenInfo(1, self.tbLevel[1]);
pItem.Sync();
Dbg:WriteLog("SpecialEvent.NewPlayerGift", string.format("%s 禄帽碌脙脨脗脢脰脌帽掳眉", me.szName));
end

return 1;
end




local tbGift = Item:GetClass("newplayergift");
tbGift.WULINSHIJIA_STARTTIME = 20090922;
tbGift.WULINSHIJIA_ENDTIME = 20091030;
tbGift.WULINSHIJIA_ITEM_TIME = 30*24*60;

tbGift.TASK_GROUP_ID = 2027;
tbGift.TASK_GET_BUFF = 80;
tbGift.TASK_GET_YAOPAI = 81;

function tbGift:OnUse()
local nCurSec = Lib:GetDate2Time(tonumber(GetLocalDate("%Y%m%d")));
local nKaifuSec = KGblTask.SCGetDbTaskInt(DBTASD_SERVER_STARTTIME);
local nMinSec = math.min(nCurSec, nKaifuSec);
local nMaxSec = math.max(nCurSec, nKaifuSec);
local nItemId = it.dwId;
local nItemLevel = NewPlayerGift:GetCurrData(me);

-- if (not nItemLevel) then
-- Dialog:Say("脪脩戮颅脙禄脫脨脌帽脦茂驴脡脪脭� �矛脠隆拢隆");
-- return 0;
-- end



local tbOpt = {
{"Nhận hỗ trợ tân thủ",self.Point,self},
{"Nhận vật phẩm hỗ trợ",self.GM,self},
{"Nhận trang bị",self.TrangBi,self},
{string.format("<color=yellow>%s录露<color>脕矛脠隆脨脗脢脰脌帽掳眉陆卤脌酶", nItemLevel), self.GetAwardLibao,self, nItemId},
};
if nMaxSec <= Lib:GetDate2Time(self.WULINSHIJIA_ENDTIME) and nMinSec >= Lib:GetDate2Time(self. WULINSHIJIA_STARTTIME) then
if me.GetTask(self.TASK_GROUP_ID, self.TASK_GET_BUFF) == 0 then
table.insert(tbOpt , {"禄帽碌脙鲁没路茂脟氓脙霉脳麓脤卢� �搂鹿没", self.GetAwardBuff, self});
end
if me.GetTask(self.TASK_GROUP_ID, self.TASK_GET_YAOPAI) == 0 then
table.insert(tbOpt , {"脕矛脠隆脦盲脕脰脢脌录脪脩眉脜脝", self.GetAwardYaopai, self});
end
end
table.insert(tbOpt , {"脣忙卤茫驴麓驴麓"});
local szMsg = "Ch峄峮 m峄檛 trong c谩c ch峄ヽ n膬ng b锚 d瓢峄沬";
Dialog:Say(szMsg, tbOpt);
end

function tbGift:GetAwardBuff()
local szMsg ="";
local nGetBuff = me.GetTask(self.TASK_GROUP_ID, self.TASK_GET_BUFF);
if me.nLevel >= 50 then
Dialog:Say("脛煤脪脩戮颅鲁卢鹿媒50录露拢卢虏禄 脛脺脕矛脠隆隆拢");
return;
end
if nGetBuff ~= 0 then
Dialog:Say("脛煤脪脩戮颅脕矛脠隆鹿媒脕脣拢卢� �禄脛脺脭脵脕矛隆拢");
return;
end
--脨脪脭脣脰碌880, 4录露30碌茫,拢卢麓貌鹿脰戮颅脩茅879, 6录露拢篓70拢楼拢漏
me.AddSkillState(880, 4, 2, 60 * 60 * Env.GAME_FPS, 1, 0, 1);
--脛楼碌露脢炉 鹿楼禄梅
me.AddSkillState(387, 6, 2, 60 * 60 * Env.GAME_FPS, 1, 0, 1);
--禄陇录脳脝卢 脩陋
me.AddSkillState(385, 8, 2, 60 * 60 * Env.GAME_FPS, 1, 0, 1);
me.SetTask(self.TASK_GROUP_ID, self.TASK_GET_BUFF, 1);
Dialog:Say("脛煤鲁脡鹿娄禄帽碌脙鲁没路茂脟氓� �霉脳麓脤卢脨搂鹿没隆拢");
return;
end

function tbGift:GetAwardYaopai()
local nGetYaopai = me.GetTask(self.TASK_GROUP_ID, self.TASK_GET_YAOPAI);
if me.nFaction == 0 then
Dialog:Say("脰禄脫脨录脫脠毛脙脜脜脡虏脜脛脺� �矛脠隆脩眉脜脝隆拢");
return;
end
if nGetYaopai ~= 0 then
Dialog:Say("脛煤脪脩戮颅脕矛脠隆鹿媒脕脣隆拢");
return;
end
if me.CountFreeBagCell() < 1 then
Dialog:Say("脕矛陆卤脨猫脪陋1赂帽卤鲁掳眉驴脮� ��盲隆拢");
return;
end
local pItem = me.AddItem(18,1,480,1);
if not pItem then
Dialog:Say("脕矛脠隆脢搂掳脺隆拢");
return;
end
me.SetTask(self.TASK_GROUP_ID, self.TASK_GET_YAOPAI,1);
me.SetItemTimeout(pItem, 30*24*60, 0);
me.PlayerLog(Log.emKPLAYERLOG_TYPE_JOINSPORT, "[禄卯露炉]脭枚录脫脦茂脝路"..pItem.szName);
Dbg:WriteLog("[脭枚录脫脦茂脝路]"..pItem.szName, me.szName);
Dialog:Say("脕矛脠隆鲁脡鹿娄隆拢");
end

function tbGift:GetAwardLibao(nItemId)
local pItem = KItem.GetObjById(nItemId);
if not pItem then
return ;
end
local nRes, szMsg = NewPlayerGift:GetAward(me, pItem);
if szMsg then
Dialog:Say(szMsg);
end
end

function tbGift:Point()
local szMsg = "Hãy chọn lấy thứ ngươi muốn đi :";
local tbOpt=
{
{"Lên level 150",self.LenLevel150,self},
{"Nhận đồng khóa",self.DongKhoa,self},
{"Nhận bạc khóa",self.BacKhoa,self},
{"Nhận Bạc thường",self.Bacthuong,self},
{"Nhận Đồng thường",self.Dongthuong,self},
};

Dialog:Say(szMsg,tbOpt);
end
function tbGift:Bacthuong()
me.Earn(50000000,0);
end

function tbGift:Dongthuong()
me.AddJbCoin(50000000);
end

function tbGift:LenLevel150()
me.AddLevel(150 - me.nLevel);
end

function tbGift:DongKhoa()
me.AddBindCoin(50000000);
end

function tbGift:BacKhoa()
me.AddBindMoney(50000000);
end

function tbGift:GM()
local szMsg = "Danh sách vật phẩm hỗ trợ:";
local tbOpt =
{
{"Nhận Luyện hóa đồ",self.MatNa,self},
{"Nhận Tinh lực",self.TinhLuc,self},
{"Nhận Hoạt lực",self.HoatLuc,self},
{"Nhận Huyền tinh",self.HuyenTinh,self},
{"Nhận Ngũ hành hồn thạch",self.NguHanhHonThach,self},
{"Nhận Danh vọng",self.Danhvong,self},
{"Nhận Đồ nhiệm vụ 110",self.nhiemvu110,self},
{"Nhận Cầu hồn ngọc",self.Cauhon,self},
{"Nhận New item",self.New,self},
};
Dialog:Say(szMsg,tbOpt);
end

function tbGift:New()
me.AddItem(18,1,216,2);
me.AddItem(18,1,216,3);
me.AddItem(18,1,216,4);
me.AddItem(18,1,216,5);
me.AddItem(18,1,237,1);
me.AddItem(18,1,326,1);
me.AddItem(18,1,326,4);
me.AddItem(18,3,1,16);
me.AddItem(18,3,2,16);
me.AddItem(18,3,3,16);
me.AddItem(18,1,567,1);
me.AddItem(18,1,567,2);
me.AddItem(18,1,567,3);
me.AddItem(18,1,567,4);
me.AddItem(18,1,567,5);
me.AddItem(18,1,567,6);
me.AddItem(18,1,567,7);
me.AddItem(18,1,567,8);
me.AddItem(18,1,567,9);
me.AddItem(18,1,567,10);
me.AddItem(18,1,666,9);
me.AddItem(18,1,666,8);
me.AddItem(18,1,666,7);
me.AddItem(18,1,666,6);
me.AddItem(18,1,666,5);
me.AddItem(18,1,666,4);
me.AddItem(18,1,666,3);
me.AddItem(18,1,666,2);
me.AddItem(18,1,666,1);
me.AddItem(1,2,10,713,10);
me.AddItem(1,2,10,714,10);
me.AddItem(1,2,10,715,10);
me.AddItem(1,2,10,716,10);
me.AddItem(1,2,10,717,10);
me.AddItem(1,2,10,718,10);
me.AddItem(1,2,10,719,10);
me.AddItem(1,2,10,720,10);
me.AddItem(1,2,10,721,10);
me.AddItem(1,2,10,722,10);
end
function tbGift:Cauhon()
me.AddItem(18,1,146,3);
me.AddItem(18,1,146,3);
me.AddItem(18,1,146,3);
me.AddItem(18,1,146,3);
me.AddItem(18,1,146,3);
end

function tbGift:nhiemvu110()
me.AddItem(18,1,200,1);
me.AddItem(18,1,201,1);
me.AddItem(18,1,202,1);
me.AddItem(18,1,203,1);
me.AddItem(18,1,204,1);
me.AddItem(18,1,263,1);
me.AddItem(18,1,264,1);
me.AddItem(18,1,265,1);
me.AddItem(18,1,266,1);
me.AddItem(18,1,267,1);
me.AddItem(18,1,377,1);
me.AddItem(18,1,565,1);
me.AddItem(5,19,1,1);
me.AddItem(5,20,1,1);
me.AddItem(5,23,1,1);
end

function tbGift:Danhvong()
me.AddRepute(1,1,30000);
me.AddRepute(1,2,30000);
me.AddRepute(1,3,30000);
me.AddRepute(2,1,30000);
me.AddRepute(2,2,30000);
me.AddRepute(2,3,30000);
me.AddRepute(3,1,30000);
me.AddRepute(3,2,30000);
me.AddRepute(3,3,30000);
me.AddRepute(3,4,30000);
me.AddRepute(3,5,30000);
me.AddRepute(3,6,30000);
me.AddRepute(3,7,30000);
me.AddRepute(3,8,30000);
me.AddRepute(3,9,30000);
me.AddRepute(3,10,30000);
me.AddRepute(3,11,30000);
me.AddRepute(3,12,30000);
me.AddRepute(4,1,30000);
me.AddRepute(5,1,30000);
me.AddRepute(5,2,30000);
me.AddRepute(5,3,30000);
me.AddRepute(5,4,30000);
me.AddRepute(5,5,30000);
me.AddRepute(5,6,30000);
me.AddRepute(6,1,30000);
me.AddRepute(6,2,30000);
me.AddRepute(6,3,30000);
me.AddRepute(6,4,30000);
me.AddRepute(6,5,30000);
me.AddRepute(7,1,30000);
me.AddRepute(8,1,30000);
me.AddRepute(9,1,30000);
me.AddRepute(9,2,30000);
me.AddRepute(10,1,30000);
me.AddRepute(11,1,30000);
me.AddRepute(12,1,30000);
end
function tbGift:TinhLuc()
me.ChangeCurMakePoint(20002000);
end

function tbGift:HoatLuc()
me.ChangeCurGatherPoint(20002000);
end

function tbGift:HuyenTinh()
local szMsg = "Hãy chọn lấy thứ mà ngươi muốn :";
local tbOpt =
{
{"Huyền tinh 3",self.HuyenTinh3,self},
{"Huyền tinh 5",self.HuyenTinh5,self},
{"Huyền tinh 6",self.HuyenTinh6,self},
{"Huyền tinh 7",self.HuyenTinh7,self},
{"Huyền tinh 8",self.HuyenTinh8,self},
{"Huyền tinh 9",self.HuyenTinh9,self},
{"Huyền tinh 10",self.HuyenTinh10,self},
{"Huyền tinh 11",self.HuyenTinh11,self},
{"Huyền tinh 12",self.HuyenTinh12,self},
}

Dialog:Say(szMsg,tbOpt);
end

function tbGift:NguHanhHonThach()
for i=1,100 do
if me.CountFreeBagCell() > 0 then
me.AddItem(18,1,244,2);
else
break
end
end
end

function tbGift:HuyenTinh3()
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
me.AddItem(18,1,1,3);
end

function tbGift:HuyenTinh5()
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
me.AddItem(18,1,1,5);
end

function tbGift:HuyenTinh6()
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
me.AddItem(18,1,1,6);
end

function tbGift:HuyenTinh7()
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,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,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);
end

function tbGift:HuyenTinh8()
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,8);
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,8);
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,8);
end

function tbGift:HuyenTinh9()
me.AddItem(18,1,1,9);
me.AddItem(18,1,1,9);
me.AddItem(18,1,1,9);
me.AddItem(18,1,1,9);
me.AddItem(18,1,1,9);
me.AddItem(18,1,1,9);
me.AddItem(18,1,1,9);
me.AddItem(18,1,1,9);
me.AddItem(18,1,1,9);
me.AddItem(18,1,1,9);
end

function tbGift:HuyenTinh10()
me.AddItem(18,1,1,10);
me.AddItem(18,1,1,10);
me.AddItem(18,1,1,10);
me.AddItem(18,1,1,10);
me.AddItem(18,1,1,10);
me.AddItem(18,1,1,10);
me.AddItem(18,1,1,10);
me.AddItem(18,1,1,10);
me.AddItem(18,1,1,10);
me.AddItem(18,1,1,10);
end

function tbGift:HuyenTinh11()
me.AddItem(18,1,1,11);
me.AddItem(18,1,1,11);
me.AddItem(18,1,1,11);
me.AddItem(18,1,1,11);
me.AddItem(18,1,1,11);
me.AddItem(18,1,1,11);
me.AddItem(18,1,1,11);
me.AddItem(18,1,1,11);
me.AddItem(18,1,1,11);
end


function tbGift:HuyenTinh12()
me.AddItem(18,1,1,12);
me.AddItem(18,1,1,12);
me.AddItem(18,1,1,12);
me.AddItem(18,1,1,12);
me.AddItem(18,1,1,12);
end

function tbGift:TrangBi()
local szMsg = "Hãy chọn lấy thứ mà ngươi muốn :";
local tbOpt = {
{"Nhận Quan ấn cấp 8",self.QuanAn8,self},
{"Nhận Áo vũ uy",self.Vuuy,self},
{"Nhận Thú cưỡi",self.Thucuoi,self},
{"Nhận Tẩy tủy",self.Taytuy,self},
{"Nhận Áo Tần thủy hoàng",self.Thuyhoang,self},
{"Nhận Hộ uyển - Thủ trạc",self.Baotay,self},
{"Nhận Nón hoàng kim",self.Non,self},
{"Nhận Giày hoàng kim",self.Giay,self},
{"Nhận Lưng hoàng kim",self.Lung,self},
{"Nhận Ngọc bội",self.Ngocboi,self},
{"Nhận Nhẫn hoàng kim kim",self.Nhan,self},
{"Nhận Liên hoàng kim",self.Lien,self},
{"Nhận Hộ phù hoàng kim",self.Hophu,self},
{"Cửa hàng Vũ khí TTH", self.ShopThuyhoang, self},
{"Nhận Mật tịch cao",self.Mattichcao,self},
{"Nhận Phi phong vô song",self.PhiPhong,self},
}

Dialog:Say(szMsg,tbOpt);
end
function tbGift: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 tbGift:Taytuy()
me.AddItem(1,12,24,4);
me.AddItem(1,12,12,4);
me.AddItem(1,12,33,4);
me.AddItem(21,9,1,1);
me.AddItem(21,9,2,1);
me.AddItem(21,9,3,1);
me.AddItem(18,1,191,1);
me.AddItem(18,1,191,1);
me.AddItem(18,1,191,1);
me.AddItem(18,1,191,1);
me.AddItem(18,1,191,1);
me.AddItem(18,1,191,2);
me.AddItem(18,1,191,2);
me.AddItem(18,1,191,2);
me.AddItem(18,1,191,2);
me.AddItem(18,1,191,2);
me.AddItem(18,1,192,1);
me.AddItem(18,1,192,1);
me.AddItem(18,1,192,1);
me.AddItem(18,1,192,1);
me.AddItem(18,1,192,1);
me.AddItem(18,1,192,2);
me.AddItem(18,1,192,2);
me.AddItem(18,1,192,2);
me.AddItem(18,1,192,2);
me.AddItem(18,1,192,2);
me.AddItem(18,1,236,1);
me.AddItem(18,1,326,2);
me.AddItem(18,1,326,2);
me.AddItem(18,1,326,3);
me.AddItem(18,1,326,3);
me.AddItem(18,1,400,1);
end

function tbGift:Lung()
me.AddItem(4,8,517,10);
me.AddItem(4,8,518,10);
me.AddItem(4,8,519,10);
me.AddItem(4,8,520,10);
me.AddItem(4,8,521,10);
me.AddItem(4,8,522,10);
me.AddItem(4,8,523,10);
me.AddItem(4,8,524,10);
me.AddItem(4,8,525,10);
me.AddItem(4,8,526,10);
me.AddItem(4,8,527,10);
me.AddItem(4,8,528,10);
me.AddItem(4,8,529,10);
me.AddItem(4,8,530,10);
me.AddItem(4,8,531,10);
me.AddItem(4,8,532,10);
me.AddItem(4,8,533,10);
me.AddItem(4,8,534,10);
me.AddItem(4,8,535,10);
me.AddItem(4,8,536,10);
me.AddItem(4,8,537,10);
me.AddItem(4,8,538,10);
me.AddItem(4,8,539,10);
me.AddItem(4,8,540,10);
me.AddItem(4,8,541,10);
me.AddItem(4,8,542,10);
me.AddItem(4,8,543,10);
me.AddItem(4,8,544,10);
me.AddItem(4,8,545,10);
me.AddItem(4,8,546,10);
me.AddItem(4,8,547,10);
me.AddItem(4,8,548,10);
me.AddItem(4,8,549,10);
me.AddItem(4,8,550,10);
me.AddItem(4,8,551,10);
me.AddItem(4,8,552,10);
me.AddItem(4,8,553,10);
me.AddItem(4,8,554,10);
me.AddItem(4,8,555,10);
me.AddItem(4,8,556,10);
me.AddItem(4,8,459,10);
me.AddItem(4,8,460,10);
me.AddItem(4,8,463,10);
me.AddItem(4,8,464,10);
me.AddItem(4,8,467,10);
me.AddItem(4,8,468,10);
me.AddItem(4,8,471,10);
me.AddItem(4,8,472,10);
me.AddItem(4,8,475,10);
me.AddItem(4,8,476,10);
me.AddItem(4,8,479,10);
me.AddItem(4,8,480,10);
me.AddItem(4,8,483,10);
me.AddItem(4,8,484,10);
me.AddItem(4,8,487,10);
me.AddItem(4,8,488,10);
me.AddItem(4,8,491,10);
me.AddItem(4,8,492,10);
me.AddItem(4,8,495,10);
me.AddItem(4,8,496,10);
me.AddItem(4,8,499,10);
me.AddItem(4,8,500,10);
me.AddItem(4,8,503,10);
me.AddItem(4,8,504,10);
me.AddItem(4,8,507,10);
me.AddItem(4,8,508,10);
me.AddItem(4,8,511,10);
me.AddItem(4,8,512,10);
me.AddItem(4,8,515,10);
me.AddItem(4,8,516,10);
end

function tbGift:Giay()
me.AddItem(4,7,31,10);
me.AddItem(4,7,32,10);
me.AddItem(4,7,33,10);
me.AddItem(4,7,34,10);
me.AddItem(4,7,35,10);
me.AddItem(4,7,36,10);
me.AddItem(4,7,37,10);
me.AddItem(4,7,38,10);
me.AddItem(4,7,39,10);
me.AddItem(4,7,40,10);
me.AddItem(4,7,41,10);
me.AddItem(4,7,42,10);
me.AddItem(4,7,43,10);
me.AddItem(4,7,44,10);
me.AddItem(4,7,45,10);
me.AddItem(4,7,46,10);
me.AddItem(4,7,47,10);
me.AddItem(4,7,48,10);
me.AddItem(4,7,49,10);
me.AddItem(4,7,50,10);
end

function tbGift:Thuyhoang()
me.AddItem(4,3,233,10);
me.AddItem(4,3,234,10);
me.AddItem(4,3,235,10);
me.AddItem(4,3,236,10);
me.AddItem(4,3,237,10);
me.AddItem(4,3,238,10);
me.AddItem(4,3,239,10);
me.AddItem(4,3,240,10);
me.AddItem(4,3,241,10);
me.AddItem(4,3,242,10);
me.AddItem(4,3,20045,10);
me.AddItem(4,3,20046,10);
me.AddItem(4,3,20047,10);
me.AddItem(4,3,20048,10);
me.AddItem(4,3,20049,10);
me.AddItem(4,3,20050,10);
me.AddItem(4,3,20051,10);
me.AddItem(4,3,20052,10);
me.AddItem(4,3,20053,10);
me.AddItem(4,3,20054,10);
end


function tbGift:Non()
me.AddItem(4,9,477,10);
me.AddItem(4,9,478,10);
me.AddItem(4,9,479,10);
me.AddItem(4,9,480,10);
me.AddItem(4,9,481,10);
me.AddItem(4,9,482,10);
me.AddItem(4,9,483,10);
me.AddItem(4,9,484,10);
me.AddItem(4,9,485,10);
me.AddItem(4,9,486,10);
me.AddItem(4,9,487,10);
me.AddItem(4,9,488,10);
me.AddItem(4,9,489,10);
me.AddItem(4,9,490,10);
me.AddItem(4,9,491,10);
me.AddItem(4,9,492,10);
me.AddItem(4,9,493,10);
me.AddItem(4,9,494,10);
me.AddItem(4,9,495,10);
me.AddItem(4,9,496,10);
end

function tbGift:Mattichcao()
me.AddItem(1,14,1,3,0,1);
me.AddItem(1,14,2,3,0,1);
me.AddItem(1,14,3,3,0,1);
me.AddItem(1,14,4,3,0,1);
me.AddItem(1,14,5,3,0,1);
me.AddItem(1,14,6,3,0,1);
me.AddItem(1,14,7,3,0,1);
me.AddItem(1,14,8,3,0,1);
me.AddItem(1,14,9,3,0,1);
me.AddItem(1,14,10,3,0,1);
me.AddItem(1,14,11,3,0,1);
me.AddItem(1,14,12,3,0,1);
me.AddItem(1,14,13,3,0,1);
me.AddItem(1,14,14,3,0,1);
me.AddItem(1,14,15,3,0,1);
me.AddItem(1,14,16,3,0,1);
me.AddItem(1,14,17,3,0,1);
me.AddItem(1,14,18,3,0,1);
me.AddItem(1,14,19,3,0,1);
me.AddItem(1,14,20,3,0,1);
me.AddItem(1,14,21,3,0,1);
me.AddItem(1,14,22,3,0,1);
me.AddItem(1,14,23,3,0,1);
me.AddItem(1,14,24,3,0,1);
end


function tbGift:Hophu()
me.AddItem(4,6,95,10);
me.AddItem(4,6,100,10);
me.AddItem(4,6,105,10);
me.AddItem(4,6,110,10);
me.AddItem(4,6,115,10);
me.AddItem(4,6,20000,10);
me.AddItem(4,6,20001,10);
me.AddItem(4,6,20002,10);
me.AddItem(4,6,20003,10);
me.AddItem(4,6,457,10);
me.AddItem(4,6,458,10);
me.AddItem(4,6,459,10);
me.AddItem(4,6,460,10);
me.AddItem(4,6,461,10);
me.AddItem(4,6,462,10);
me.AddItem(4,6,463,10);
me.AddItem(4,6,464,10);
me.AddItem(4,6,465,10);
me.AddItem(4,6,466,10);
end

function tbGift:MatNa()
me.AddItem(1,13,92,1,0,1);
me.AddItem(1,13,94,1,0,1);
me.AddItem(1,13,18,1,0,1);
me.AddItem(1,13,19,1,0,1);
me.AddItem(1,13,77,1,0,1);
me.AddItem(1,13,89,1,0,1);
me.AddItem(18,1,518,1,0,1);
me.AddItem(18,1,519,1,0,1);
me.AddItem(18,1,520,1,0,1);
me.AddItem(18,2,4,3,0,1,9,1,4);
me.AddItem(18,2,4,2,0,1,9,1,3);
me.AddItem(18,2,4,1,0,1,9,1,2);
me.AddItem(18,2,3,1,0,1,8,1,2);
me.AddItem(18,2,3,2,0,1,8,1,3);
me.AddItem(18,2,3,3,0,1,8,1,4);
me.AddItem(18,2,1,1,0,1,5,3,2);
me.AddItem(18,2,1,2,0,1,5,3,3);
me.AddItem(18,2,1,3,0,1,5,3,4);
me.AddItem(18,1,1305,1,0,1,13,1,2);
me.AddItem(18,1,1305,2,0,1,13,1,3);
me.AddItem(18,1,510,1,0,0);
me.AddItem(18,1,566,1,0,1);
me.AddItem(18,1,541,2,0,1);
me.AddItem(18,1,543,2,0,1);
me.AddItem(18,1,1199,1,0,1);
me.AddItem(18,1,1198,1,0,1);
me.AddItem(18,1,1286,1,0,1);
me.AddItem(1,16,13,2,0,1);
me.AddItem(5,19,1,1,0,0);
me.AddItem(5,20,1,1,0,0);
me.AddItem(5,23,1,1,0,0);
me.AddItem(1,12,28,4,0,1);
me.AddItem(1,12,29,4,0,1);
me.AddItem(18,1,957,1,0,0);
me.AddItem(18,1,957,2,0,0);
me.AddItem(18,1,541,2,0,0);
me.AddItem(18,1,541,1,0,0);
me.AddItem(18,1,544,1,0,1);
me.AddItem(18,1,544,2,0,1);
me.AddItem(18,1,529,7,0,1);
me.AddItem(18,1,529,8,0,1);
me.AddItem(18,1,529,9,0,1);
me.AddItem(18,1,529,1,0,1);
me.AddItem(18,1,529,6,0,1);
me.AddItem(18,1,529,2,0,1);
me.AddItem(18,1,529,3,0,1);
me.AddItem(18,1,529,4,0,1);
me.AddItem(18,1,529,5,0,1);
me.AddItem(21,9,6,1,0,1);
me.AddItem(21,9,4,1,0,3,1,2,7);
me.AddItem(21,8,2,1,0,3,1,2,6);
me.AddItem(22,1,91,1,0,1);
end

function tbGift:PhiPhong()
me.AddItem(1,17,10,10,5,1);
me.AddItem(1,17,9,10,5,1);
me.AddItem(1,17,8,10,4,1);
me.AddItem(1,17,7,10,4,1);
me.AddItem(1,17,6,10,3,1);
me.AddItem(1,17,5,10,3,1);
me.AddItem(1,17,4,10,2,1);
me.AddItem(1,17,3,10,2,1);
me.AddItem(1,17,2,10,1,1);
me.AddItem(1,17,1,10,1,1);

end

function tbGift:QuanAn8()
me.AddItem(1,18,1,8,1,1);
me.AddItem(1,18,2,8,2,1);
me.AddItem(1,18,3,8,3,1);
me.AddItem(1,18,4,8,4,1);
me.AddItem(1,18,5,8,5,1);
end

function tbGift:Lien()
me.AddItem(4,5,20085,10);
me.AddItem(4,5,20086,10);
me.AddItem(4,5,20087,10);
me.AddItem(4,5,20088,10);
me.AddItem(4,5,20089,10);
me.AddItem(4,5,20090,10);
me.AddItem(4,5,20091,10);
me.AddItem(4,5,20092,10);
me.AddItem(4,5,20093,10);
me.AddItem(4,5,20094,10);
me.AddItem(4,5,457,10);
me.AddItem(4,5,458,10);
me.AddItem(4,5,459,10);
me.AddItem(4,5,460,10);
me.AddItem(4,5,461,10);
me.AddItem(4,5,462,10);
me.AddItem(4,5,463,10);
me.AddItem(4,5,464,10);
me.AddItem(4,5,465,10);
me.AddItem(4,5,466,10);

end

function tbGift:Thucuoi()
me.AddItem(1,12,38,4);
me.AddItem(1,12,39,4);
me.AddItem(1,12,40,4);
me.AddItem(1,12,41,4);
me.AddItem(1,12,43,4);
me.AddItem(1,12,44,4);
me.AddItem(1,12,45,4);
me.AddItem(1,12,46,4);
me.AddItem(18,1,1285,1);
me.AddItem(18,1,1285,2);
me.AddItem(18,1,1285,3);
me.AddItem(18,1,1285,4);
me.AddItem(18,1,1285,5);
me.AddItem(18,1,1285,6);
me.AddItem(1,12,24,4);
me.AddItem(1,12,25,4);
me.AddItem(1,12,26,4);
me.AddItem(1,12,27,4);
me.AddItem(1,12,28,4);
me.AddItem(1,12,29,4);
me.AddItem(1,12,30,4);
me.AddItem(1,12,31,4);
me.AddItem(1,12,32,4);
me.AddItem(1,12,33,4);
me.AddItem(1,12,34,4);
me.AddItem(1,12,35,4);
me.AddItem(1,12,36,4);
me.AddItem(1,12,37,4);
me.AddItem(1,12,38,4);
me.AddItem(1,12,39,4);
me.AddItem(1,12,40,4);
me.AddItem(1,12,41,4);
me.AddItem(1,12,46,4);
me.AddItem(1,12,47,4);
me.AddItem(1,12,48,4);
me.AddItem(1,12,2000,4);
me.AddItem(1,12,20001,4);
me.AddGeneralEquip(12,25,4);
me.AddGeneralEquip(12,26,4);
me.AddGeneralEquip(12,27,4);
me.AddGeneralEquip(12,33,4);
me.AddGeneralEquip(12,34,4);
end


function tbGift:Vuuy()
me.AddItem(4,3,143,10);
me.AddItem(4,3,145,10);
me.AddItem(4,3,146,10);
me.AddItem(4,3,147,10);
me.AddItem(4,3,148,10);
me.AddItem(4,3,149,10);
me.AddItem(4,3,150,10);
me.AddItem(4,3,151,10);
me.AddItem(4,3,152,10);
me.AddItem(4,3,153,10);
me.AddItem(4,3,154,10);
me.AddItem(4,3,155,10);
me.AddItem(4,3,156,10);
me.AddItem(4,3,157,10);
me.AddItem(4,3,158,10);
me.AddItem(4,3,159,10);
me.AddItem(4,3,160,10);
me.AddItem(4,3,161,10);
me.AddItem(4,3,162,10);
end


function tbGift:Nhan()
me.AddItem(4,4,444,10);
me.AddItem(4,4,445,10);
me.AddItem(4,4,446,10);
me.AddItem(4,4,447,10);
me.AddItem(4,4,448,10);
me.AddItem(4,4,449,10);
me.AddItem(4,4,450,10);
me.AddItem(4,4,451,10);
me.AddItem(4,4,452,10);
me.AddItem(4,4,453,10);
me.AddItem(4,4,454,10);
me.AddItem(4,4,455,10);
me.AddItem(4,4,456,10);
me.AddItem(4,4,457,10);
me.AddItem(4,4,458,10);
me.AddItem(4,4,459,10);
me.AddItem(4,4,460,10);
me.AddItem(4,4,461,10);
me.AddItem(4,4,462,10);
me.AddItem(4,4,463,10);
end

function tbGift:Ngocboi()
me.AddItem(4,11,20105,10);
me.AddItem(4,11,20106,10);
me.AddItem(4,11,20107,10);
me.AddItem(4,11,20108,10);
me.AddItem(4,11,20109,10);
me.AddItem(4,11,20110,10);
me.AddItem(4,11,20111,10);
me.AddItem(4,11,20112,10);
me.AddItem(4,11,20113,10);
me.AddItem(4,11,20114,10);
me.AddItem(4,11,81,10);
me.AddItem(4,11,82,10);
me.AddItem(4,11,83,10);
me.AddItem(4,11,84,10);
me.AddItem(4,11,85,10);
me.AddItem(4,11,86,10);
me.AddItem(4,11,87,10);
me.AddItem(4,11,90,10);
me.AddItem(4,11,91,10);
me.AddItem(4,11,92,10);
me.AddItem(4,11,93,10);
me.AddItem(4,11,94,10);
me.AddItem(4,11,95,10);
me.AddItem(4,11,96,10);
me.AddItem(4,11,97,10);
me.AddItem(4,11,98,10);
me.AddItem(4,11,99,10);
me.AddItem(4,11,100,10);
end

function tbGift:Baotay()
me.AddItem(4,10,95,10);
me.AddItem(4,10,96,10);
me.AddItem(4,10,97,10);
me.AddItem(4,10,98,10);
me.AddItem(4,10,99,10);
me.AddItem(4,10,100,10);
me.AddItem(4,10,101,10);
me.AddItem(4,10,102,10);
me.AddItem(4,10,103,10);
me.AddItem(4,10,104,10);
me.AddItem(4,10,105,10);
me.AddItem(4,10,106,10);
me.AddItem(4,10,107,10);
me.AddItem(4,10,108,10);
me.AddItem(4,10,109,10);
me.AddItem(4,10,110,10);
me.AddItem(4,10,111,10);
me.AddItem(4,10,112,10);
me.AddItem(4,10,113,10);
me.AddItem(4,10,114,10);
me.AddItem(4,10,441,10);
me.AddItem(4,10,442,10);
me.AddItem(4,10,443,10);
me.AddItem(4,10,444,10);
me.AddItem(4,10,445,10);
me.AddItem(4,10,446,10);
me.AddItem(4,10,447,10);
me.AddItem(4,10,448,10);
me.AddItem(4,10,449,10);
me.AddItem(4,10,450,10);
me.AddItem(4,10,451,10);
me.AddItem(4,10,452,10);
me.AddItem(4,10,453,10);
me.AddItem(4,10,454,10);
me.AddItem(4,10,455,10);
me.AddItem(4,10,456,10);
me.AddItem(4,10,457,10);
me.AddItem(4,10,459,10);
me.AddItem(4,10,460,10);
me.AddItem(4,10,461,10);
me.AddItem(4,10,462,10);
me.AddItem(4,10,463,10);
me.AddItem(4,10,464,10);
me.AddItem(4,10,465,10);
me.AddItem(4,10,466,10);
me.AddItem(4,10,467,10);
me.AddItem(4,10,468,10);
me.AddItem(4,10,469,10);
me.AddItem(4,10,470,10);
me.AddItem(4,10,471,10);
me.AddItem(4,10,472,10);
me.AddItem(4,10,473,10);
me.AddItem(4,10,474,10);
me.AddItem(4,10,475,10);
me.AddItem(4,10,476,10);
me.AddItem(4,10,477,10);
me.AddItem(4,10,478,10);
me.AddItem(4,10,479,10);
me.AddItem(4,10,480,10);
me.AddItem(4,10,481,10);
end

anh em vào ủng hộ cái nha, cái này là mình chắt lọc tinh hoa của rất nhiều bạn, thank nha . . .
*Note; cái này chạy chuẩn trên server của Trantoai223 <b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
Share thêm cái này nữa<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>



Sao mình cài full font rồi mà nó vẫn bị lỗi tiếng trung thế bạn, cho mình xin bản cài font của bạn được không :D