Mấy hàm này mình lấy từ túi tân thủ, bạn cóp về dùng, chạy ok nhận đúng phái :)
Nhận mật tịch cao cấp:
table.insert(tbOpt , {"Mật Tịch Cao",self.MatTichCao, self});
function tbGift:MatTichCao()
local nFaction = me.nFaction;
if (nFaction == 0) then
Dialog:Say("Bạn hãy gia nhập phái");
return;
end
if (1 == nFaction) then
me.AddItem(1,14,1,3);
me.AddItem(1,14,2,3);
elseif (2 == nFaction) then
me.AddItem(1,14,3,3);
me.AddItem(1,14,4,3);
elseif (3 == nFaction) then
me.AddItem(1,14,5,3);
me.AddItem(1,14,6,3);
elseif (4 == nFaction) then
me.AddItem(1,14,7,3);
me.AddItem(1,14,8,3);
elseif (5 == nFaction) then
me.AddItem(1,14,9,3);
me.AddItem(1,14,10,3);
elseif (6 == nFaction) then
me.AddItem(1,14,11,3);
me.AddItem(1,14,12,3);
elseif (7 == nFaction) then
me.AddItem(1,14,13,3);
me.AddItem(1,14,14,3);
elseif (8 == nFaction) then
me.AddItem(1,14,15,3);
me.AddItem(1,14,16,3);
elseif (9 == nFaction) then
me.AddItem(1,14,17,3);
me.AddItem(1,14,18,3);
elseif (10 == nFaction) then
me.AddItem(1,14,19,3);
me.AddItem(1,14,20,3);
elseif (11 == nFaction) then
me.AddItem(1,14,21,3);
me.AddItem(1,14,22,3);
elseif (12 == nFaction) then
me.AddItem(1,14,23,3);
me.AddItem(1,14,24,3);
else
Dbg:WriteLogEx(Dbg.LOG_INFO, "Hỗ Trợ tân thủ", me.szName, "Bạn chưa gia nhập phái", nFaction);
end
end
Nhận max skill mật tịch trung cấp:
{"<color=yellow>Max Skill Mật Tịch Trung<color>",self.Skillmttrung,self};
function tbGift:Skillmttrung()
local nFaction = me.nFaction;
if (nFaction == 0) then
Dialog:Say("Bạn hãy gia nhập phái");
return;
end
me.Msg(string.format("Đã max skill Mật tịch Trung cấp"));
if (1 == nFaction) then
me.AddFightSkill(1200,10);
me.AddFightSkill(1201,10);
elseif (2 == nFaction) then
me.AddFightSkill(1202,10);
me.AddFightSkill(1202,10);
elseif (3 == nFaction) then
me.AddFightSkill(1203,10);
me.AddFightSkill(1204,10);
elseif (4 == nFaction) then
me.AddFightSkill(1205,10);
me.AddFightSkill(1206,10);
elseif (5 == nFaction) then
me.AddFightSkill(1207,10);
me.AddFightSkill(1208,10);
elseif (6 == nFaction) then
me.AddFightSkill(1209,10);
me.AddFightSkill(1210,10);
elseif (7 == nFaction) then
me.AddFightSkill(1211,10);
me.AddFightSkill(1212,10);
elseif (8 == nFaction) then
me.AddFightSkill(1213,10);
me.AddFightSkill(1214,10);
elseif (9 == nFaction) then
me.AddFightSkill(1215,10);
me.AddFightSkill(1216,10);
elseif (10 == nFaction) then
me.AddFightSkill(1217,10);
me.AddFightSkill(1218,10);
elseif (11 == nFaction) then
me.AddFightSkill(1219,10);
me.AddFightSkill(1220,10);
elseif (12 == nFaction) then
me.AddFightSkill(1221,10);
me.AddFightSkill(1222,10);
else
Dbg:WriteLogEx(Dbg.LOG_INFO, "Hỗ Trợ tân thủ", me.szName, "Bạn chưa gia nhập phái", nFaction);
end
end
Nhận max skill mật tịch cao cấp:
{"<color=yellow>Max Skill Mật Tịch Cao<color>",self.Skillmtcao,self};
function tbGift:Skillmtcao()
local nFaction = me.nFaction;
if (nFaction == 0) then
Dialog:Say("Bạn hãy gia nhập phái");
return;
end
me.Msg(string.format("Đã max skill Mật tịch Cao cấp"));
if (1 == nFaction) then
me.AddFightSkill(1241,10);
me.AddFightSkill(1242,10);
elseif (2 == nFaction) then
me.AddFightSkill(1243,10);
me.AddFightSkill(1244,10);
elseif (3 == nFaction) then
me.AddFightSkill(1245,10);
me.AddFightSkill(1246,10);
elseif (4 == nFaction) then
me.AddFightSkill(1247,10);
me.AddFightSkill(1248,10);
elseif (5 == nFaction) then
me.AddFightSkill(1249,10);
me.AddFightSkill(1250,10);
elseif (6 == nFaction) then
me.AddFightSkill(1251,10);
me.AddFightSkill(1252,10);
elseif (7 == nFaction) then
me.AddFightSkill(1253,10);
me.AddFightSkill(1254,10);
elseif (8 == nFaction) then
me.AddFightSkill(1255,10);
me.AddFightSkill(1256,10);
elseif (9 == nFaction) then
me.AddFightSkill(1257,10);
me.AddFightSkill(1258,10);
elseif (10 == nFaction) then
me.AddFightSkill(1259,10);
me.AddFightSkill(1260,10);
elseif (11 == nFaction) then
me.AddFightSkill(1261,10);
me.AddFightSkill(1262,10);
elseif (12 == nFaction) then
me.AddFightSkill(1263,10);
me.AddFightSkill(1264,10);
else
Dbg:WriteLogEx(Dbg.LOG_INFO, "Hỗ Trợ tân thủ", me.szName, "Bạn chưa gia nhập phái", nFaction);
end
end
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.