kira178
23-03-10, 04:30 AM
Tớ mới làm thử cái chuyển phái 0 điều kiện, ai thử phát nhỉ!
Include("\\Script\\global\\sourcejx49.lua");
--Include("\\Script\\global\\rollbackskill.lua");
Include("\\Script\\faction49\\main_faction.lua");
function chuyenphai()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Muon chuyen doi mon phai dai hiep phai co <color=yellow>"..KNBTOCHANGEFACTION.."<color> Kim Nguyen Bao.",
"Dong Y./ok",
"Thoat./OnCancel"})
end
function ok()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon.",
"He Kim./kim",
"He Moc./moc",
"He Thuy./thuy",
"He Hoa./hoa",
"He Tho./tho",
"Thoat./OnCancel"})
end;
function kim()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon:",
"Thieu Lam./sl",
"Thien vuong bang./tw",
"Thoat./OnCancel"})
end;
function sl()
SetSeries(0)
SetFaction("Thieu Lam Phai")
SetCamp(1)
SetCurCamp(1)
SetRank(1)
LearnSkillFaction()
SetTask(TaskTL,1)
for i=1,480 do DelMagic(i) end
AddMagic(284,1)
KickOutSelf()
end;
function tw()
SetFaction("Thien Vuong Bang")
SetCamp(3)
SetCurCamp(3)
SetRank(2)
LearnSkillFaction()
SetTask(TaskTV,1)
SetSeries(0)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function moc()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon:",
"Duong Mon./dm",
"Ngu Doc./nd",
"Thoat./OnCancel"});
end;
function dm()
SetFaction("Duong Mon")
SetCamp(3)
SetCurCamp(3)
SetRank(3)
LearnSkillFaction()
SetTask(TaskDM,1)
SetSeries(1)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function nd()
SetFaction("Ngu Doc Giao")
SetCamp(2)
SetCurCamp(2)
SetRank(4)
LearnSkillFaction()
SetTask(TaskND,1)
SetSeries(1)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function thuy()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon:",
"Nga Mi./nm",
"Thuy Yen./ty",
"Thoat./OnCancel"});
end;
function nm()
SetFaction("Nga My Phai")
SetCamp(1)
SetCurCamp(1)
SetRank(5)
LearnSkillFaction()
SetTask(TaskNM,1)
SetSeries(2)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function ty()
SetFaction("Thuy Yen Mon")
SetCamp(3)
SetCurCamp(3)
SetRank(6)
LearnSkillFaction()
SetTask(TaskTY,1)
SetSeries(2)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function hoa()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon:","Cai bang/cb","Thien Nhan/tn","Thoat./OnCancel"});
end;
function cb()
SetFaction("Cai Bang")
SetCamp(1)
SetCurCamp(1)
SetRank(7)
LearnSkillFaction()
SetTask(TaskCB,1)
SetSeries(3)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function tn()
SetFaction("Thien Nhan Giao")
SetCamp(2)
SetCurCamp(2)
SetRank(8)
LearnSkillFaction()
SetTask(TaskTN,1)
SetSeries(3)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function tho()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon:","Vo Dang./vd","Con Lon./cl","Thoat./OnCancel"});
end;
function vd()
SetFaction("Vo Dang Phai")
SetCamp(1)
SetCurCamp(1)
SetRank(9)
LearnSkillFaction()
SetTask(TaskVD,1)
SetSeries(4)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function cl()
SetFaction("Phai Con Lon")
SetCamp(3)
SetCurCamp(3)
SetRank(10)
LearnSkillFaction()
SetTask(TaskCL,1)
SetSeries(4)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
Include("\\Script\\global\\sourcejx49.lua");
--Include("\\Script\\global\\rollbackskill.lua");
Include("\\Script\\faction49\\main_faction.lua");
function chuyenphai()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Muon chuyen doi mon phai dai hiep phai co <color=yellow>"..KNBTOCHANGEFACTION.."<color> Kim Nguyen Bao.",
"Dong Y./ok",
"Thoat./OnCancel"})
end
function ok()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon.",
"He Kim./kim",
"He Moc./moc",
"He Thuy./thuy",
"He Hoa./hoa",
"He Tho./tho",
"Thoat./OnCancel"})
end;
function kim()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon:",
"Thieu Lam./sl",
"Thien vuong bang./tw",
"Thoat./OnCancel"})
end;
function sl()
SetSeries(0)
SetFaction("Thieu Lam Phai")
SetCamp(1)
SetCurCamp(1)
SetRank(1)
LearnSkillFaction()
SetTask(TaskTL,1)
for i=1,480 do DelMagic(i) end
AddMagic(284,1)
KickOutSelf()
end;
function tw()
SetFaction("Thien Vuong Bang")
SetCamp(3)
SetCurCamp(3)
SetRank(2)
LearnSkillFaction()
SetTask(TaskTV,1)
SetSeries(0)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function moc()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon:",
"Duong Mon./dm",
"Ngu Doc./nd",
"Thoat./OnCancel"});
end;
function dm()
SetFaction("Duong Mon")
SetCamp(3)
SetCurCamp(3)
SetRank(3)
LearnSkillFaction()
SetTask(TaskDM,1)
SetSeries(1)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function nd()
SetFaction("Ngu Doc Giao")
SetCamp(2)
SetCurCamp(2)
SetRank(4)
LearnSkillFaction()
SetTask(TaskND,1)
SetSeries(1)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function thuy()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon:",
"Nga Mi./nm",
"Thuy Yen./ty",
"Thoat./OnCancel"});
end;
function nm()
SetFaction("Nga My Phai")
SetCamp(1)
SetCurCamp(1)
SetRank(5)
LearnSkillFaction()
SetTask(TaskNM,1)
SetSeries(2)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function ty()
SetFaction("Thuy Yen Mon")
SetCamp(3)
SetCurCamp(3)
SetRank(6)
LearnSkillFaction()
SetTask(TaskTY,1)
SetSeries(2)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function hoa()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon:","Cai bang/cb","Thien Nhan/tn","Thoat./OnCancel"});
end;
function cb()
SetFaction("Cai Bang")
SetCamp(1)
SetCurCamp(1)
SetRank(7)
LearnSkillFaction()
SetTask(TaskCB,1)
SetSeries(3)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function tn()
SetFaction("Thien Nhan Giao")
SetCamp(2)
SetCurCamp(2)
SetRank(8)
LearnSkillFaction()
SetTask(TaskTN,1)
SetSeries(3)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function tho()
SayEx({"<color="..colorS()..">Tay Tuy Dai Su<color>: Lua chon:","Vo Dang./vd","Con Lon./cl","Thoat./OnCancel"});
end;
function vd()
SetFaction("Vo Dang Phai")
SetCamp(1)
SetCurCamp(1)
SetRank(9)
LearnSkillFaction()
SetTask(TaskVD,1)
SetSeries(4)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;
function cl()
SetFaction("Phai Con Lon")
SetCamp(3)
SetCurCamp(3)
SetRank(10)
LearnSkillFaction()
SetTask(TaskCL,1)
SetSeries(4)
for i=1,480 do
DelMagic(i)
end
AddMagic(284,1)
KickOutSelf()
end;