PDA

View Full Version : [JX] Cần Pro Sửa Hộ Scripts chuyển phái



daiit98
20-12-12, 08:27 PM
Code:

Include("\\script\\source\\sourcejx49.lua")
Include("\\script\\GetFaction.lua")


function main()
SayEx({"<color=cyan>C­êng T¨ng TÈy Tuû:",
"TÈy ®iÓm kü n¨ng/taykinang",
"TÈy ®iÓm tiÒm n¨ng/taytiemnang",

"Rêi khái ®¶o tu luyÖn/blh",
"Tho¸t/Exit"})
end

function chuyenmonphai()
SayEx({"<color=cyan>C­êng T¨ng TÈy Tuû:",
"HÖ Kim/chuyenhe",
"HÖ Méc/chuyenhe",
"HÖ Thuû/chuyenhe",
"HÖ Ho¶/chuyenhe",
"HÖ Thæ/chuyenhe",
"Tho¸t/Exit"})
end

function chuyenhe(sel)
if GetTask(42) == 0 then
if GetTask(1) == 0 and GetTask(2) == 0 and GetTask(3) == 0 and GetTask(4) == 0 and GetTask(5) == 0 and GetTask(6) == 0 and GetTask(7) == 0 and GetTask(8) == 0 and GetTask(9) == 0 and GetTask(10) == 0 and GetCamp() == 4 then
id = sel + 1
if id == 1 then
SayEx({"<color=cyan>C­êng T¨ng TÈy Tuû:",
"ThiÕu L©m/retl",
"Thiªn V­¬ng/retv",
"Tho¸t/Exit"})
elseif id == 2 then
SayEx({"<color=cyan>C­êng T¨ng TÈy Tuû:",
"§­êng M«n/redm",
"Ngò §éc/rend",
"Tho¸t/Exit"})
elseif id == 3 then
SayEx({"<color=cyan>C­êng T¨ng TÈy Tuû:",
"Nga My/renm",
"Thuý Yªn/rety",
"Tho¸t/Exit"})
elseif id == 4 then
SayEx({"<color=cyan>C­êng T¨ng TÈy Tuû:",
"C¸i Bang/recb",
"Thiªn NhÉn/retn",
"Tho¸t/Exit"})
elseif id == 5 then
SayEx({"<color=cyan>C­êng T¨ng TÈy Tuû:",
"Vâ §ang/revd",
"C«n L«n/recl",
"Tho¸t/Exit"})
end
else
Msg2Player("Sau khi xuÊt s­ míi cã thÓ chuyÓn ph¸i")
end
else
Msg2Player("B¹n ph¶i rêi khái l·nh ®Þa míi cã thÓ chuyÓn ph¸i")
end
end


function retl()
if GetLevel() >= 200 then
if kiemtraft() ~= 1 then

if GetItemCount(234) >= 1 then
for i=1,500 do DelMagic(i) end
SetSeries(0)
SetFaction("ÉÙÁÖÅÉ")
SetCamp(1)
SetCurCamp(1)
SetRank(1)
SetTask(1,1)
taykinangcp()
KickOutSelf()
skilltl()
AddGlobalCountNews("Chóc mõng ng­êi ch¬i <color=red>"..GetName().."<color> chuyÓn sang ph¸i ThiÕu L©m")
else
Msg2Player("B¹n kh«ng cã Vâ L©m LÖnh Bµi")
end

else
Msg2Player("HiÖn t¹i b¹n thuéc ph¸i ThiÕu L©m, kh«ng cÇn chuyÓn")
end
else
Msg2Player("§¼ng cÊp cña b¹n ch­a ®¹t 200")
end
end

function retv()
if GetLevel() >= 150 then
if kiemtraft() ~= 2 then

if GetItemCount(234) >= 1 then
for i=1,500 do DelMagic(i) end
SetSeries(0)
SetFaction("ÌìÍõ°ï")
SetCamp(3)
SetCurCamp(3)
SetRank(2)
SetTask(2,1)
taykinangcp()
KickOutSelf()
skilltv()
AddGlobalCountNews("Chóc mõng ng­êi ch¬i <color=red>"..GetName().."<color> chuyÓn sang ph¸i Thiªn V­¬ng")
else
Msg2Player("B¹n kh«ng cã Vâ L©m LÖnh Bµi")
end

else
Msg2Player("HiÖn t¹i b¹n thuéc ph¸i Thiªn V­¬ng, kh«ng cÇn chuyÓn")
end
else
Msg2Player("§¼ng cÊp cña b¹n ch­a ®¹t 200")
end
end

function redm()
if GetLevel() >= 150 then
if kiemtraft() ~= 3 then

if GetItemCount(234) >= 1 then
for i=1,500 do DelMagic(i) end
SetSeries(1)
SetFaction("ÌÆÃÅ")
SetCamp(3)
SetCurCamp(3)
SetRank(3)
SetTask(3,1)
taykinangcp()
KickOutSelf()
skilldm()
AddGlobalCountNews("Chóc mõng ng­êi ch¬i <color=red>"..GetName().."<color> chuyÓn sang ph¸i §­êng M«n")
else
Msg2Player("B¹n kh«ng cã Vâ L©m LÖnh Bµi")
end

else
Msg2Player("HiÖn t¹i b¹n thuéc ph¸i §­êng M«n, kh«ng cÇn chuyÓn")
end
else
Msg2Player("§¼ng cÊp cña b¹n ch­a ®¹t 200")
end
end

function rend()
if GetLevel() >= 150 then
if kiemtraft() ~= 4 then

if GetItemCount(234) >= 1 then
for i=1,500 do DelMagic(i) end
SetSeries(1)
SetFaction("Î嶾½Ì")
SetCamp(2)
SetCurCamp(2)
SetRank(4)
SetTask(4,1)
taykinangcp()
KickOutSelf()
skillnd()
AddGlobalCountNews("Chóc mõng ng­êi ch¬i <color=red>"..GetName().."<color> chuyÓn sang ph¸i Ngò §éc")
else
Msg2Player("B¹n kh«ng cã Vâ L©m LÖnh Bµi")
end

else
Msg2Player("HiÖn t¹i b¹n thuéc ph¸i Ngò §éc, kh«ng cÇn chuyÓn")
end
else
Msg2Player("§¼ng cÊp cña b¹n ch­a ®¹t 200")
end
end

function renm()
if GetLevel() >= 150 then
if kiemtraft() ~= 5 then

if GetItemCount(234) >= 1 then
for i=1,500 do DelMagic(i) end
SetSeries(2)
SetFaction("¶ëáÒÅÉ")
SetCamp(1)
SetCurCamp(1)
SetRank(5)
SetTask(5,1)
taykinangcp()
KickOutSelf()
skillnm()
AddGlobalCountNews("Chóc mõng ng­êi ch¬i <color=red>"..GetName().."<color> chuyÓn sang ph¸i Nga My")
else
Msg2Player("B¹n kh«ng cã Vâ L©m LÖnh Bµi")
end

else
Msg2Player("HiÖn t¹i b¹n thuéc ph¸i Nga My, kh«ng cÇn chuyÓn")
end
else
Msg2Player("§¼ng cÊp cña b¹n ch­a ®¹t 200")
end
end

function rety()
if GetLevel() >= 150 then
if kiemtraft() ~= 6 then

if GetItemCount(234) >= 1 then
for i=1,500 do DelMagic(i) end
SetSeries(2)
SetFaction("´äÑÌÃÅ")
SetCamp(3)
SetCurCamp(3)
SetRank(6)
SetTask(6,1)
taykinangcp()
KickOutSelf()
skillty()
AddGlobalCountNews("Chóc mõng ng­êi ch¬i <color=red>"..GetName().."<color> chuyÓn sang ph¸i Thuý Yªn")
else
Msg2Player("B¹n kh«ng cã Vâ L©m LÖnh Bµi")
end

else
Msg2Player("HiÖn t¹i b¹n thuéc ph¸i Thuý Yªn, kh«ng cÇn chuyÓn")
end
else
Msg2Player("§¼ng cÊp cña b¹n ch­a ®¹t 200")
end
end

function recb()
if GetLevel() >= 150 then
if kiemtraft() ~= 7 then

if GetItemCount(234) >= 1 then
for i=1,500 do DelMagic(i) end
SetSeries(3)
SetFaction("ؤ°ï")
SetCamp(1)
SetCurCamp(1)
SetRank(7)
SetTask(7,1)
taykinangcp()
KickOutSelf()
skillcb()
AddGlobalCountNews("Chóc mõng ng­êi ch¬i <color=red>"..GetName().."<color> chuyÓn sang ph¸i C¸i Bang")
else
Msg2Player("B¹n kh«ng cã Vâ L©m LÖnh Bµi")
end

else
Msg2Player("HiÖn t¹i b¹n thuéc ph¸i C¸i Bang, kh«ng cÇn chuyÓn")
end
else
Msg2Player("§¼ng cÊp cña b¹n ch­a ®¹t 200")
end
end

function retn()
if GetLevel() >= 150 then
if kiemtraft() ~= 8 then

if GetItemCount(234) >= 1 then
for i=1,500 do DelMagic(i) end
SetSeries(3)
SetFaction("ÌìÈ̽Ì")
SetCamp(2)
SetCurCamp(2)
SetRank(8)
SetTask(8,1)
taykinangcp()
KickOutSelf()
skilltn()
AddGlobalCountNews("Chóc mõng ng­êi ch¬i <color=red>"..GetName().."<color> chuyÓn sang ph¸i Thiªn NhÉn")
else
Msg2Player("B¹n kh«ng cã Vâ L©m LÖnh Bµi")
end

else
Msg2Player("HiÖn t¹i b¹n thuéc ph¸i Thiªn NhÉn, kh«ng cÇn chuyÓn")
end
else
Msg2Player("§¼ng cÊp cña b¹n ch­a ®¹t 200")
end
end

function revd()
if GetLevel() >= 150 then
if kiemtraft() ~= 9 then

if GetItemCount(234) >= 1 then
for i=1,500 do DelMagic(i) end
SetSeries(4)
SetFaction("Îäµ±ÅÉ")
SetCamp(1)
SetCurCamp(1)
SetRank(9)
SetTask(9,1)
taykinangcp()
KickOutSelf()
skillvd()
AddGlobalCountNews("Chóc mõng ng­êi ch¬i <color=red>"..GetName().."<color> chuyÓn sang ph¸i Vâ §ang")
else
Msg2Player("B¹n kh«ng cã Vâ L©m LÖnh Bµi")
end

else
Msg2Player("HiÖn t¹i b¹n thuéc ph¸i Vâ §ang, kh«ng cÇn chuyÓn")
end
else
Msg2Player("§¼ng cÊp cña b¹n ch­a ®¹t 200")
end
end

function recl()
if GetLevel() >= 150 then
if kiemtraft() ~= 10 then

if GetItemCount(234) >= 1 then
for i=1,500 do DelMagic(i) end
SetSeries(4)
SetFaction("À¥ÂØÅÉ")
SetCamp(3)
SetCurCamp(3)
SetRank(10)
SetTask(10,1)
taykinangcp()
KickOutSelf()
skillcl()
AddGlobalCountNews("Chóc mõng ng­êi ch¬i <color=red>"..GetName().."<color> chuyÓn sang ph¸i C«n L«n")
else
Msg2Player("B¹n kh«ng cã Vâ L©m LÖnh Bµi")
end

else
Msg2Player("HiÖn t¹i b¹n thuéc ph¸i C«n L«n, kh«ng cÇn chuyÓn")
end
else
Msg2Player("§¼ng cÊp cña b¹n ch­a ®¹t 200")
end
end

function taykinang()
if GetLevel() < 90 then
--if GetTask(197) < 1 then
--kncs = 0
--elseif GetTask(197) >= 1 then
--kncs = CSTABLE[GetTask(197)][5]
--end
vlmt = GetTask(16)
knlv = GetLevel() - 1
notrollback()
AddMagicPoint(-GetMagicPoint())
--diemkinang = kncs + vlmt + knlv
diemkinang = vlmt + knlv
AddMagicPoint(diemkinang)
if (HaveMagic(344)>=0 ) then --khinh cong
AddMagic(344,1)
end

elseif GetLevel() >= 90 then
if GetItemCount(28) >= 1 and GetItemCount(29) >= 1 and GetItemCount(30) >=1 then
DelItem(28)
DelItem(30)
DelItem(29)
--if GetTask(197) < 1 then
--kncs = 0
--elseif GetTask(197) >= 1 then
--kncs = CSTABLE[GetTask(197)][5]
--end
vlmt = GetTask(16)
knlv = GetLevel() - 1
notrollback()
AddMagicPoint(-GetMagicPoint())
--diemkinang = kncs + vlmt + knlv
diemkinang = vlmt + knlv
AddMagicPoint(diemkinang)
if (HaveMagic(344)>=0 ) then --khinh cong
AddMagic(344,1)
end
Talk(1,"KickOutSelf","B¹n cã thÓ n©ng l¹i ®iÓm kü n¨ng theo ý muèn ")
else
Talk(1,"","B¹n kh«ng cã ®ñ Tö Thuû Tinh, Lôc Thuû Tinh vµ Lam Thuû Tinh ")
end
end
end

as={
{35,25,25,15}, -- kim
{20,35,20,25}, -- moc
{25,25,25,25}, -- thuy
{30,20,30,20}, -- hoa
{20,15,25,40}, -- tho
}
function ResetAP()
player_series = GetSeries() + 1;
SetBasePoint(as[player_series][1],as[player_series][2],as[player_series][3],as[player_series][4]); --tiem nang mac dinh
end;

function taytiemnang()
if GetLevel() < 90 then
tnlevel = (GetLevel() - 1) * 5
--if GetTask(197) >= 1 then
--tncs = CSTABLE[GetTask(197)][4]
--else
--tncs = 0
--end
ttk = GetTask(15) * 5
--AddProp(- GetProp())
ResetAP()
--sum = tnlevel+ttk+tncs
sum = tnlevel+ttk
--AddProp(sum)
Talk(1,"KickOutSelf","B¹n cã thÓ n©ng l¹i ®iÓm tiÒm n¨ng theo ý muèn ")
elseif GetLevel() >= 90 then
if GetItemCount(31) >= 6 then
for i=1,6 do DelItem(31) end
tnlevel = (GetLevel() - 1) * 5
--if GetTask(197) >= 1 then
--tncs = CSTABLE[GetTask(197)][4]
--else
--tncs = 0
--end
ttk = GetTask(15) * 5
--AddProp(- GetProp())
ResetAP()
--sum = tnlevel+ttk+tncs
sum = tnlevel+ttk
--AddProp(sum)
Talk(1,"KickOutSelf","B¹n cã thÓ n©ng l¹i ®iÓm tiÒm n¨ng theo ý muèn ")
else
Talk(1,"","B¹n kh«ng cã ®ñ 6 Tinh Hång B¶o Th¹ch ")
end
end
end

function notrollback()
cailao = GetTask(198)*2
if kiemtraft() == 1 then
a = HaveMagic(353)
b = HaveMagic(350)
c = HaveMagic(351)
d = HaveMagic(414)
w = HaveMagic(289)
p = HaveMagic(295)
e = HaveMagic(454)
elseif kiemtraft() == 2 then
a = HaveMagic(342)
b = HaveMagic(347)
c = HaveMagic(345)
d = HaveMagic(412)
w = HaveMagic(455)
p = HaveMagic(293)
e = HaveMagic(310)
elseif kiemtraft() == 3 then
a = HaveMagic(302)
b = HaveMagic(355)
c = HaveMagic(358)
d = HaveMagic(416)
w = HaveMagic(286)
p = HaveMagic(288)
e = HaveMagic(299)
elseif kiemtraft() == 4 then
a = HaveMagic(359)
b = HaveMagic(361)
c = 0
d = HaveMagic(418)
w = HaveMagic(446)
p = HaveMagic(297)
e = 0
elseif kiemtraft() == 5 then
a = HaveMagic(374)
b = HaveMagic(370)
c = 0
d = HaveMagic(420)
w = HaveMagic(448)
p = 0
e = 0
elseif kiemtraft() == 6 then
a = HaveMagic(377)
b = HaveMagic(378)
c = 0
d = HaveMagic(422)
w = HaveMagic(448)
p = 0
e = 0
elseif kiemtraft() == 7 then
a = HaveMagic(362)
b = HaveMagic(389)
c = 0
d = HaveMagic(424)
w = HaveMagic(445)
p = HaveMagic(300)
e = 0
elseif kiemtraft() == 8 then
a = HaveMagic(365)
b = HaveMagic(367)
c = 0
d = HaveMagic(426)
w = HaveMagic(443)
p = HaveMagic(285)
e = 0
elseif kiemtraft() == 9 then
a = HaveMagic(382)
b = HaveMagic(380)
c = 0
d = HaveMagic(428)
w = HaveMagic(442)
p = 0
e = 0
elseif kiemtraft() == 10 then
a = HaveMagic(385)
b = HaveMagic(384)
c = 0
d = HaveMagic(430)
w = HaveMagic(439)
p = 0
e = 0
elseif kiemtraft() == 11 then
a = 0
b = 0
c = 0
d = 0
w = 0
p = 0
e = 0
end
n = RollbackSkill()
x = 0
i = HaveMagic(210)
j = HaveMagic(471)
if (a ~= -1) then x = x + a end
if (b ~= -1) then x = x + b end
if (c ~= -1) then x = x + c end
if (d ~= -1) then x = x + d end
if (w ~= -1) then x = x + w end
if (p ~= -1) then x = x + p end
if (e ~= -1) then x = x + e end
if (i ~= -1) then x = x + i end
if (j ~= -1) then x = x + j end
rollback = n - x
if ( rollback + GetMagicPoint() < 0 ) then
rollback = -1 * GetMagicPoint()
end
AddMagicPoint(rollback)
if (i ~= -1) then AddMagic(210,i) end
if (j ~= -1) then AddMagic(284,j) end
if kiemtraft() == 1 then
if a ~= -1 then AddMagic(353,a) end
if b ~= -1 then AddMagic(350,b) end
if c ~= -1 then AddMagic(351,c) end
if d ~= -1 then AddMagic(414,d) end
if w ~= -1 then AddMagic(289,20+cailao) end
if p ~= -1 then AddMagic(295,20+cailao) end
if e ~= -1 then AddMagic(454,20+cailao) end
elseif kiemtraft() == 2 then
if a ~= -1 then AddMagic(342,a) end
if b ~= -1 then AddMagic(347,b) end
if c ~= -1 then AddMagic(345,c) end
if d ~= -1 then AddMagic(412,d) end
if w ~= -1 then AddMagic(455,20+cailao) end
if p ~= -1 then AddMagic(293,20+cailao) end
if e ~= -1 then AddMagic(310,20+cailao) end
elseif kiemtraft() == 3 then
if a ~= -1 then AddMagic(302,a) end
if b ~= -1 then AddMagic(355,b) end
if c ~= -1 then AddMagic(358,c) end
if d ~= -1 then AddMagic(416,d) end
if w ~= -1 then AddMagic(286,20+cailao) end
if p ~= -1 then AddMagic(288,20+cailao) end
if e ~= -1 then AddMagic(299,20+cailao) end
elseif kiemtraft() == 4 then
if a ~= -1 then AddMagic(359,a) end
if b ~= -1 then AddMagic(361,b) end
if d ~= -1 then AddMagic(418,d) end
if w ~= -1 then AddMagic(446,20+cailao) end
if p ~= -1 then AddMagic(297,20+cailao) end
elseif kiemtraft() == 5 then
if a ~= -1 then AddMagic(374,a) end
if b ~= -1 then AddMagic(370,b) end
if d ~= -1 then AddMagic(420,d) end
if w ~= -1 then AddMagic(448,20+cailao) end
elseif kiemtraft() == 6 then
if a ~= -1 then AddMagic(377,a) end
if b ~= -1 then AddMagic(378,b) end
if d ~= -1 then AddMagic(422,d) end
if w ~= -1 then AddMagic(448,20+cailao) end
elseif kiemtraft() == 7 then
if a ~= -1 then AddMagic(362,a) end
if b ~= -1 then AddMagic(389,b) end
if d ~= -1 then AddMagic(424,d) end
if w ~= -1 then AddMagic(445,20+cailao) end
if p ~= -1 then AddMagic(300,20+cailao) end
elseif kiemtraft() == 8 then
if a ~= -1 then AddMagic(365,a) end
if b ~= -1 then AddMagic(367,b) end
if d ~= -1 then AddMagic(426,d) end
if w ~= -1 then AddMagic(443,20+cailao) end
if p ~= -1 then AddMagic(285,20+cailao) end
elseif kiemtraft() == 9 then
if a ~= -1 then AddMagic(382,a) end
if b ~= -1 then AddMagic(380,b) end
if d ~= -1 then AddMagic(428,d) end
if w ~= -1 then AddMagic(442,20+cailao) end
elseif kiemtraft() == 10 then
if a ~= -1 then AddMagic(385,a) end
if d ~= -1 then AddMagic(430,d) end
if b ~= -1 then AddMagic(384,b) end
if w ~= -1 then AddMagic(439,20+cailao) end
end
end


function taykinangcp()
vlmt = GetTask(16)
knlv = GetLevel() - 1
notrollback()
AddMagicPoint(-GetMagicPoint())
diemkinang = vlmt + knlv
AddMagicPoint(diemkinang)
if (HaveMagic(344)>=0 ) then
AddMagic(344,1)
end
end


function skilltl()
AddMagic(1,1)
AddMagic(2,1)
AddMagic(53,1)
AddMagic(3)
AddMagic(5)
AddMagic(7)
AddMagic(8)
AddMagic(9)
AddMagic(10)
AddMagic(11)
AddMagic(12)
AddMagic(13)
AddMagic(15)
AddMagic(17)
AddMagic(18)
AddMagic(19)
AddMagic(20,20)
AddMagic(22,20)
AddMagic(24,20)
AddMagic(357,20)
DelItem(234)
Msg2Player("B¹n ®· chuyÓn sang ph¸i ThiÕu L©m")
end;

function skilltv()
AddMagic(1,1)
AddMagic(2,1)
AddMagic(53,1)
AddMagic(32) -- Õ¶Áú¾÷
AddMagic(34) -- ÌìÍõǹ·¨
AddMagic(36) -- ÌìÍõµ¶·¨
AddMagic(29) -- ÌìÍõ´¸·¨
AddMagic(30) -- »Ø·çÂäÑã
AddMagic(31) -- ÐÐÔƾ÷
AddMagic(38) -- ÎÞÐÄÕ¶
AddMagic(39) -- ¾²Ðľ÷
AddMagic(41) -- ¾ªÀ×Õ¶
AddMagic(43) -- Ñô¹ØÈýµþ
AddMagic(45) -- ÌìÍõÕ½Òâ
AddMagic(47) -- Æ÷çÕ¶
AddMagic(51) -- ¶Ï»ê´Ì
AddMagic(49) -- Ѫս°Ë·½
AddMagic(277)
AddMagic(48)
AddMagic(59,20)
AddMagic(57,20)
AddMagic(55,20)
AddMagic(358,20)
DelItem(234)
Msg2Player("B¹n ®· chuyÓn sang ph¸i Thiªn V­¬ng")
end;

function skilldm()
AddMagic(1,1)
AddMagic(2,1)
AddMagic(53,1)
AddMagic(61)
AddMagic(64)
AddMagic(63)
AddMagic(66)
AddMagic(68)
AddMagic(70)
AddMagic(72)
AddMagic(74)
AddMagic(76)
AddMagic(78)
AddMagic(85)
AddMagic(81)
AddMagic(83)
AddMagic(80)
AddMagic(88,20)
AddMagic(91,20)
AddMagic(94,20)
AddMagic(96,20)
AddMagic(359,20)
DelItem(234)
Msg2Player("B¹n ®· chuyÓn sang ph¸i §­êng M«n")
end;

function skillnd()
AddMagic(1,1)
AddMagic(2,1)
AddMagic(53,1)
AddMagic(98)
AddMagic(99)
AddMagic(101)
AddMagic(102)
AddMagic(103)
AddMagic(104)
AddMagic(105)
AddMagic(106)
AddMagic(107)
AddMagic(109)
AddMagic(110)
AddMagic(111)
AddMagic(112)
AddMagic(113)
AddMagic(115)
AddMagic(116)
AddMagic(114)
AddMagic(118,20)
AddMagic(120,20)
AddMagic(123,20)
AddMagic(360,20)
DelItem(234)
Msg2Player("B¹n ®· chuyÓn sang ph¸i Ngò §éc")
end;

function skillnm()
AddMagic(1,1)
AddMagic(2,1)
AddMagic(53,1)
AddMagic(125)
AddMagic(127)
AddMagic(129)
AddMagic(128)
AddMagic(130)
AddMagic(131)
AddMagic(133)
AddMagic(134)
AddMagic(136)
AddMagic(138)
AddMagic(141)
AddMagic(143)
AddMagic(144)
AddMagic(140)
AddMagic(323,20)
AddMagic(149,20)
AddMagic(151,20)
AddMagic(361,20)
DelItem(234)
Msg2Player("B¹n ®· chuyÓn sang ph¸i Nga My")
end;

function skillty()
AddMagic(1,1)
AddMagic(2,1)
AddMagic(53,1)
AddMagic(154) -- ·ç»¨Ñ©ÔÂ
AddMagic(156) -- ´äÑ̵¶·¨
AddMagic(157) -- ´äÑÌË«µ¶
AddMagic(158) -- »¤Ì庮±ù
AddMagic(159) -- ·ç¾í²ÐÑ©
AddMagic(160) -- ǧÀï±ù·â-
AddMagic(162) -- ±ùÐÄÙ»Ó°
AddMagic(163) -- Óê´òÀ滨
AddMagic(164) -- Ñ©Ó°
AddMagic(166) -- ̤ѩÎÞºÛ
AddMagic(168) -- ¸¡ÔÆɢѩ
AddMagic(165) -- ÄÁÒ°Á÷ÐÇ
AddMagic(169,20)
AddMagic(172,20)
AddMagic(362,20)
DelItem(234)
Msg2Player("B¹n ®· chuyÓn sang ph¸i Thuý Yªn")
end;

function skillcb()
AddMagic(1,1)
AddMagic(2,1)
AddMagic(53,1)
AddMagic(176) -- ͶʯÎÊ·
AddMagic(177) -- ؤ°ï°ô·¨
AddMagic(180) -- ؤ°ïÈ­·¨
AddMagic(179) -- ÑØÃÅÍв§
AddMagic(181) -- ¼ûÈËÉìÊÖ
AddMagic(182) -- »¬²»ÁôÊÖ
AddMagic(183) -- ´ò¹·Õó
AddMagic(185) -- ½µÁúÕÆ
AddMagic(186) -- ÌìÏÂÎÞ¹·
AddMagic(188) -- ×íµû¿ñÎè
AddMagic(190) -- ¿ºÁúÓлÚ
AddMagic(191)
AddMagic(325,20)
AddMagic(328,20)
AddMagic(363,20)
DelItem(234)
Msg2Player("B¹n ®· chuyÓn sang ph¸i C¸i Bang")
end;

function skilltn()
AddMagic(1,1)
AddMagic(2,1)
AddMagic(53,1)
AddMagic(197)
AddMagic(199)
AddMagic(200)
AddMagic(201)
AddMagic(202)
AddMagic(203)
AddMagic(204)
AddMagic(206)
AddMagic(207)
AddMagic(208)
AddMagic(209)
AddMagic(211)
AddMagic(213)
AddMagic(210)
AddMagic(214,20)
AddMagic(216,20)
AddMagic(218,20)
AddMagic(364,20)
DelItem(234)
Msg2Player("B¹n ®· chuyÓn sang ph¸i Thiªn NhÉn")
end;

function skillvd()
AddMagic(1,1)
AddMagic(2,1)
AddMagic(53,1)
AddMagic(220) -- Å­À×Ö¸
AddMagic(221) -- Îäµ±½£·¨
AddMagic(224) -- Î䵱ȭ·¨
AddMagic(223) -- ²×º£Ã÷ÔÂ
AddMagic(225) -- ×øÍüÎÞÎÒ
AddMagic(227) -- ½£·É¾ªÌì
AddMagic(228) -- ÆßÐÇÕó
AddMagic(279) -- ÌÝÔÆ×Ý
AddMagic(280) -- ÐþÒ»ÎÞÏó
AddMagic(234) -- °þ¼°¶ø¸´
AddMagic(233) -- ÎÞÎÒÎÞ½£
AddMagic(281)
AddMagic(236,20)
AddMagic(239,20)
AddMagic(365,20)
DelItem(234)
Msg2Player("B¹n ®· chuyÓn sang ph¸i Vâ §ang")
end;

function skillcl()
AddMagic(1,1)
AddMagic(2,1)
AddMagic(53,1)
AddMagic(250)
AddMagic(252)
AddMagic(253)
AddMagic(254)
AddMagic(256)
AddMagic(257)
AddMagic(255)
AddMagic(258)
AddMagic(259)
AddMagic(260)
AddMagic(261)
AddMagic(262)
AddMagic(263)
AddMagic(264)
AddMagic(266)
AddMagic(268)
AddMagic(275)
AddMagic(267)
AddMagic(269,20)
AddMagic(272,20)
AddMagic(274,20)
AddMagic(366,20)
DelItem(234)
Msg2Player("B¹n ®· chuyÓn sang ph¸i C«n L«n")
end;

function blh()
MoveNPC(53,200,200,9,8,0,0);
end;
taytuy.lua (\Server\script\Global)
chỉ cần file này là chuyển thôi hay cần phải config gì nữa ạ;;)