trumbongdem0
22-12-16, 12:04 PM
function cplhk()
player_Faction = GetFaction()
if (player_Faction == "emei") then
lcnm()
end;
if (player_Faction == "cuiyan") then
lcty()
end;
if (player_Faction == "tangmen") then
lcdm()
end;
if (player_Faction == "wudu") then
lcnd()
end;
if (player_Faction == "tianwang") then
lctv()
end;
if (player_Faction == "shaolin") then
lctl()
end;
if (player_Faction == "wudang") then
lcvd()
end;
if (player_Faction == "kunlun") then
lccl()
end;
if (player_Faction == "tianren") then
lctn()
end;
if (player_Faction == "gaibang") then
lccb()
end;
if check_faction() == 1 then
Talk(1, "", "Vui Lßng Gia NhËp M«n Ph¸i Tríc Khi LÊy Trang BÞ")
return
end;
end;
function lcnm()
local tbOpt=
{
{"Nga My Chëng", hknmc},
{"Nga My KiÕm", hknmk},
{"Nga My Buff", hknmbuff},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hknmc()
AddGoldItem(0,36)
AddGoldItem(0,37)
AddGoldItem(0,38)
AddGoldItem(0,39)
AddGoldItem(0,40)
AddGoldItem(0,801)
end
function hknmk()
AddGoldItem(0,31)
AddGoldItem(0,32)
AddGoldItem(0,33)
AddGoldItem(0,34)
AddGoldItem(0,35)
AddGoldItem(0,796)
end
function hknmbuff()
AddGoldItem(0,41)
AddGoldItem(0,42)
AddGoldItem(0,43)
AddGoldItem(0,44)
AddGoldItem(0,45)
end
function lcty()
local tbOpt=
{
{"Thóy Yªn §ao", hktyd},
{"Thóy Yªn Chëng", hktyc},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hktyd()
AddGoldItem(0,46)
AddGoldItem(0,47)
AddGoldItem(0,48)
AddGoldItem(0,49)
AddGoldItem(0,50)
AddGoldItem(0,811)
end
function hktyc()
AddGoldItem(0,51)
AddGoldItem(0,52)
AddGoldItem(0,53)
AddGoldItem(0,54)
AddGoldItem(0,55)
AddGoldItem(0,816)
end
function lcdm()
local tbOpt=
{
{"§êng M«n Ná", hkbv},
{"§êng M«n Phi Tiªu", hkpt},
{"§êng M«n B¨ng Hµn", hkpd},
{"§êng M«n BÉy", hkcb},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hkbv()
AddGoldItem(0,76)
AddGoldItem(0,77)
AddGoldItem(0,78)
AddGoldItem(0,79)
AddGoldItem(0,80)
AddGoldItem(0,843)
end
function hkpt()
AddGoldItem(0,81)
AddGoldItem(0,82)
AddGoldItem(0,83)
AddGoldItem(0,84)
AddGoldItem(0,85)
end
function hkpd()
AddGoldItem(0,71)
AddGoldItem(0,72)
AddGoldItem(0,73)
AddGoldItem(0,74)
AddGoldItem(0,75)
end
function hkcb()
AddGoldItem(0,86)
AddGoldItem(0,87)
AddGoldItem(0,88)
AddGoldItem(0,89)
AddGoldItem(0,90)
AddGoldItem(0,854)
end
function lcnd()
local tbOpt=
{
{"Ngò §éc Chëng", hkndc},
{"Ngò §éc §ao", hkndd},
{"Ngò §éc Bïa", hkndb},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hkndc()
AddGoldItem(0,56)
AddGoldItem(0,57)
AddGoldItem(0,58)
AddGoldItem(0,59)
AddGoldItem(0,60)
end
function hkndd()
AddGoldItem(0,61)
AddGoldItem(0,62)
AddGoldItem(0,63)
AddGoldItem(0,64)
AddGoldItem(0,65)
AddGoldItem(0,829)
end
function hkndb()
AddGoldItem(0,66)
AddGoldItem(0,67)
AddGoldItem(0,68)
AddGoldItem(0,69)
AddGoldItem(0,70)
AddGoldItem(0,834)
end
function lctv()
local tbOpt=
{
{"Thiªn V¬ng Th¬ng", hktvt},
{"Thiªn V¬ng Chïy", hktvc},
{"Thiªn V¬ng §ao", hktvd},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hktvt()
AddGoldItem(0,21)
AddGoldItem(0,22)
AddGoldItem(0,23)
AddGoldItem(0,24)
AddGoldItem(0,25)
end
function hktvc()
AddGoldItem(0,16)
AddGoldItem(0,17)
AddGoldItem(0,18)
AddGoldItem(0,19)
AddGoldItem(0,20)
end
function hktvd()
AddGoldItem(0,26)
AddGoldItem(0,27)
AddGoldItem(0,28)
AddGoldItem(0,29)
AddGoldItem(0,30)
AddGoldItem(0,793)
end
function lctl()
local tbOpt=
{
{"ThiÕu L©m §ao", hktld},
{"ThiÕu L©m Bæng", hktlb},
{"ThiÕu L©m QuyÒn", hktlq},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hktld()
AddGoldItem(0,11)
AddGoldItem(0,12)
AddGoldItem(0,13)
AddGoldItem(0,14)
AddGoldItem(0,15)
AddGoldItem(0,776)
end
function hktlb()
AddGoldItem(0,6)
AddGoldItem(0,7)
AddGoldItem(0,8)
AddGoldItem(0,9)
AddGoldItem(0,10)
AddGoldItem(0,771)
end
function hktlq()
AddGoldItem(0,1)
AddGoldItem(0,2)
AddGoldItem(0,3)
AddGoldItem(0,4)
AddGoldItem(0,5)
AddGoldItem(0,769)
end
function lcvd()
local tbOpt=
{
{"Vâ §ang Chëng", hkvdc},
{"Vâ §ang KiÕm", hkvdk},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hkvdc()
AddGoldItem(0,116)
AddGoldItem(0,117)
AddGoldItem(0,118)
AddGoldItem(0,119)
AddGoldItem(0,120)
AddGoldItem(0,881)
end
function hkvdk()
AddGoldItem(0,121)
AddGoldItem(0,122)
AddGoldItem(0,123)
AddGoldItem(0,124)
AddGoldItem(0,125)
AddGoldItem(0,888)
end
function lccl()
local tbOpt=
{
{"C«n L«n §ao", hkcld},
{"C«n L«n Chëng", hkclc},
{"C«n L«n Bïa", hkclb},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hkcld()
AddGoldItem(0,126)
AddGoldItem(0,127)
AddGoldItem(0,128)
AddGoldItem(0,129)
AddGoldItem(0,130)
AddGoldItem(0,891)
end
function hkclc()
AddGoldItem(0,131)
AddGoldItem(0,132)
AddGoldItem(0,133)
AddGoldItem(0,134)
AddGoldItem(0,135)
AddGoldItem(0,898)
end
function hkclb()
AddGoldItem(0,136)
AddGoldItem(0,137)
AddGoldItem(0,138)
AddGoldItem(0,139)
AddGoldItem(0,140)
end
function lctn()
local tbOpt=
{
{"Thiªn NhÉn Th¬ng", hktnt},
{"Thiªn NhÉn Chëng", hktnd},
{"Thiªn NhÉn Bïa", hktnb},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hktnt()
AddGoldItem(0,101)
AddGoldItem(0,102)
AddGoldItem(0,103)
AddGoldItem(0,104)
AddGoldItem(0,105)
AddGoldItem(0,868)
end
function hktnd()
AddGoldItem(0,111)
AddGoldItem(0,112)
AddGoldItem(0,113)
AddGoldItem(0,114)
AddGoldItem(0,115)
AddGoldItem(0,876)
end
function hktnb()
AddGoldItem(0,106)
AddGoldItem(0,107)
AddGoldItem(0,108)
AddGoldItem(0,109)
AddGoldItem(0,110)
AddGoldItem(0,874)
end
function lccb()
local tbOpt=
{
{"C¸i Bang Chëng", hkcbc},
{"C¸i Bang Bæng", hkcbb},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hkcbc()
AddGoldItem(0,91)
AddGoldItem(0,92)
AddGoldItem(0,93)
AddGoldItem(0,94)
AddGoldItem(0,95)
AddGoldItem(0,855)
end
function hkcbb()
AddGoldItem(0,96)
AddGoldItem(0,97)
AddGoldItem(0,98)
AddGoldItem(0,99)
AddGoldItem(0,100)
end
player_Faction = GetFaction()
if (player_Faction == "emei") then
lcnm()
end;
if (player_Faction == "cuiyan") then
lcty()
end;
if (player_Faction == "tangmen") then
lcdm()
end;
if (player_Faction == "wudu") then
lcnd()
end;
if (player_Faction == "tianwang") then
lctv()
end;
if (player_Faction == "shaolin") then
lctl()
end;
if (player_Faction == "wudang") then
lcvd()
end;
if (player_Faction == "kunlun") then
lccl()
end;
if (player_Faction == "tianren") then
lctn()
end;
if (player_Faction == "gaibang") then
lccb()
end;
if check_faction() == 1 then
Talk(1, "", "Vui Lßng Gia NhËp M«n Ph¸i Tríc Khi LÊy Trang BÞ")
return
end;
end;
function lcnm()
local tbOpt=
{
{"Nga My Chëng", hknmc},
{"Nga My KiÕm", hknmk},
{"Nga My Buff", hknmbuff},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hknmc()
AddGoldItem(0,36)
AddGoldItem(0,37)
AddGoldItem(0,38)
AddGoldItem(0,39)
AddGoldItem(0,40)
AddGoldItem(0,801)
end
function hknmk()
AddGoldItem(0,31)
AddGoldItem(0,32)
AddGoldItem(0,33)
AddGoldItem(0,34)
AddGoldItem(0,35)
AddGoldItem(0,796)
end
function hknmbuff()
AddGoldItem(0,41)
AddGoldItem(0,42)
AddGoldItem(0,43)
AddGoldItem(0,44)
AddGoldItem(0,45)
end
function lcty()
local tbOpt=
{
{"Thóy Yªn §ao", hktyd},
{"Thóy Yªn Chëng", hktyc},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hktyd()
AddGoldItem(0,46)
AddGoldItem(0,47)
AddGoldItem(0,48)
AddGoldItem(0,49)
AddGoldItem(0,50)
AddGoldItem(0,811)
end
function hktyc()
AddGoldItem(0,51)
AddGoldItem(0,52)
AddGoldItem(0,53)
AddGoldItem(0,54)
AddGoldItem(0,55)
AddGoldItem(0,816)
end
function lcdm()
local tbOpt=
{
{"§êng M«n Ná", hkbv},
{"§êng M«n Phi Tiªu", hkpt},
{"§êng M«n B¨ng Hµn", hkpd},
{"§êng M«n BÉy", hkcb},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hkbv()
AddGoldItem(0,76)
AddGoldItem(0,77)
AddGoldItem(0,78)
AddGoldItem(0,79)
AddGoldItem(0,80)
AddGoldItem(0,843)
end
function hkpt()
AddGoldItem(0,81)
AddGoldItem(0,82)
AddGoldItem(0,83)
AddGoldItem(0,84)
AddGoldItem(0,85)
end
function hkpd()
AddGoldItem(0,71)
AddGoldItem(0,72)
AddGoldItem(0,73)
AddGoldItem(0,74)
AddGoldItem(0,75)
end
function hkcb()
AddGoldItem(0,86)
AddGoldItem(0,87)
AddGoldItem(0,88)
AddGoldItem(0,89)
AddGoldItem(0,90)
AddGoldItem(0,854)
end
function lcnd()
local tbOpt=
{
{"Ngò §éc Chëng", hkndc},
{"Ngò §éc §ao", hkndd},
{"Ngò §éc Bïa", hkndb},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hkndc()
AddGoldItem(0,56)
AddGoldItem(0,57)
AddGoldItem(0,58)
AddGoldItem(0,59)
AddGoldItem(0,60)
end
function hkndd()
AddGoldItem(0,61)
AddGoldItem(0,62)
AddGoldItem(0,63)
AddGoldItem(0,64)
AddGoldItem(0,65)
AddGoldItem(0,829)
end
function hkndb()
AddGoldItem(0,66)
AddGoldItem(0,67)
AddGoldItem(0,68)
AddGoldItem(0,69)
AddGoldItem(0,70)
AddGoldItem(0,834)
end
function lctv()
local tbOpt=
{
{"Thiªn V¬ng Th¬ng", hktvt},
{"Thiªn V¬ng Chïy", hktvc},
{"Thiªn V¬ng §ao", hktvd},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hktvt()
AddGoldItem(0,21)
AddGoldItem(0,22)
AddGoldItem(0,23)
AddGoldItem(0,24)
AddGoldItem(0,25)
end
function hktvc()
AddGoldItem(0,16)
AddGoldItem(0,17)
AddGoldItem(0,18)
AddGoldItem(0,19)
AddGoldItem(0,20)
end
function hktvd()
AddGoldItem(0,26)
AddGoldItem(0,27)
AddGoldItem(0,28)
AddGoldItem(0,29)
AddGoldItem(0,30)
AddGoldItem(0,793)
end
function lctl()
local tbOpt=
{
{"ThiÕu L©m §ao", hktld},
{"ThiÕu L©m Bæng", hktlb},
{"ThiÕu L©m QuyÒn", hktlq},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hktld()
AddGoldItem(0,11)
AddGoldItem(0,12)
AddGoldItem(0,13)
AddGoldItem(0,14)
AddGoldItem(0,15)
AddGoldItem(0,776)
end
function hktlb()
AddGoldItem(0,6)
AddGoldItem(0,7)
AddGoldItem(0,8)
AddGoldItem(0,9)
AddGoldItem(0,10)
AddGoldItem(0,771)
end
function hktlq()
AddGoldItem(0,1)
AddGoldItem(0,2)
AddGoldItem(0,3)
AddGoldItem(0,4)
AddGoldItem(0,5)
AddGoldItem(0,769)
end
function lcvd()
local tbOpt=
{
{"Vâ §ang Chëng", hkvdc},
{"Vâ §ang KiÕm", hkvdk},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hkvdc()
AddGoldItem(0,116)
AddGoldItem(0,117)
AddGoldItem(0,118)
AddGoldItem(0,119)
AddGoldItem(0,120)
AddGoldItem(0,881)
end
function hkvdk()
AddGoldItem(0,121)
AddGoldItem(0,122)
AddGoldItem(0,123)
AddGoldItem(0,124)
AddGoldItem(0,125)
AddGoldItem(0,888)
end
function lccl()
local tbOpt=
{
{"C«n L«n §ao", hkcld},
{"C«n L«n Chëng", hkclc},
{"C«n L«n Bïa", hkclb},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hkcld()
AddGoldItem(0,126)
AddGoldItem(0,127)
AddGoldItem(0,128)
AddGoldItem(0,129)
AddGoldItem(0,130)
AddGoldItem(0,891)
end
function hkclc()
AddGoldItem(0,131)
AddGoldItem(0,132)
AddGoldItem(0,133)
AddGoldItem(0,134)
AddGoldItem(0,135)
AddGoldItem(0,898)
end
function hkclb()
AddGoldItem(0,136)
AddGoldItem(0,137)
AddGoldItem(0,138)
AddGoldItem(0,139)
AddGoldItem(0,140)
end
function lctn()
local tbOpt=
{
{"Thiªn NhÉn Th¬ng", hktnt},
{"Thiªn NhÉn Chëng", hktnd},
{"Thiªn NhÉn Bïa", hktnb},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hktnt()
AddGoldItem(0,101)
AddGoldItem(0,102)
AddGoldItem(0,103)
AddGoldItem(0,104)
AddGoldItem(0,105)
AddGoldItem(0,868)
end
function hktnd()
AddGoldItem(0,111)
AddGoldItem(0,112)
AddGoldItem(0,113)
AddGoldItem(0,114)
AddGoldItem(0,115)
AddGoldItem(0,876)
end
function hktnb()
AddGoldItem(0,106)
AddGoldItem(0,107)
AddGoldItem(0,108)
AddGoldItem(0,109)
AddGoldItem(0,110)
AddGoldItem(0,874)
end
function lccb()
local tbOpt=
{
{"C¸i Bang Chëng", hkcbc},
{"C¸i Bang Bæng", hkcbb},
{"Tho¸t"},
}
CreateNewSayEx("<npc>B¹n §i §êng Nµo ?", tbOpt)
return 1
end
function hkcbc()
AddGoldItem(0,91)
AddGoldItem(0,92)
AddGoldItem(0,93)
AddGoldItem(0,94)
AddGoldItem(0,95)
AddGoldItem(0,855)
end
function hkcbb()
AddGoldItem(0,96)
AddGoldItem(0,97)
AddGoldItem(0,98)
AddGoldItem(0,99)
AddGoldItem(0,100)
end