PDA

View Full Version : Chức năng GM



emlangoisao199
11-11-11, 03:24 PM
Cần 1 người giúp mình về đặt pass cho chức năng GM vào 1 NPC . và cách mình muốn tạo 1 NPC mà mình thích ở toạ độ mình muốn . mình đọc trong book resnpc mà k hiểu . mong các bạn giúp mình :(

DirectX
11-11-11, 04:08 PM
cần 1 người giúp mình về đặt pass cho chức năng GM vào 1 NPC . và cách mình muốn tạo 1 NPC mà mình thích ở toạ độ mình muốn . mình đọc trong book resnpc mà k hiểu . mong các bạn giúp mình :(
làm cái script GM ko khó, nhưng yêu cầu phải hiểu được ý nghĩa của hàm. tôi thấy bạn nên dùng GetName trước rồi hãy dùng pass sau. vì GetName dễ hơn pass. vì pass liên quan đến SetTask, GetTask... nếu bạn là newbie thì hơi khó. cứ dùng GetName. đây là script demo:
bạn tạo 1 file lua với ten checkgm.lua nội dung:

function KiemTraGM()
gmlist={

{"Administrator",99},
{"NhoxYeuNhac",99},
{"JxServer",99}
}
for i =1,getn(gmlist) do
if gmlist[i][1] == GetName() and gmlist[i][2] == 99 then
return 1
end
end
end;

sau đó bạn viết 1 script gm, gán vào 1 con npc. thêm đường dẫn include đến file checkgm.lua.


Include("\\Script\\global\\GM\\checkgm.lua");
Include("\\Script\\global\\GM\\GM.lua");

function main(sel)
if (KiemTraGM()==1) then
GM();
else
Talk(1, "", "Hello!")
end[/QUOTE]

chỗ đoạn này if (KiemTraGM()==1) then
GM(); có nghĩa là nếu KiemTraGM ma ==1 thì thực thi GM();
ngược lại thì xuất ra câu lệnh hello

còn đây là script file GM.lua
[QUOTE]Include("\\Script\\global\\serverlib.lua");

function trangbi()
Say("Xin chao GM.",5,
"Trang bi cao cap/trangbivip",
"Vu khi cao cap/vukhivip",
"Thu cuoi cao cap/thucuoi",
"Tro Lai/main",
"Ket thuc doi thoai/no")
end

function trangbivip()
Say("He Thong: Hay lua chon trang bi.",7,
"Kim Phong/kimphong",
"An Bang/anbang",
"Dinh Quoc/dinhquoc",
"Trang Bi O Kim/trangbiokim",
"Cap Nhan Vo Danh/vodanh",
"Tro Lai/main",
"Thoat/no");
end;
function vukhivip()
Say("He Thong: Lua chon vu khi.",4,
"Hoang Kim./vukhihk",
"Bach Kim./vukhibk",
"Tro Lai/main",
"Thoat./no")
end;
---------------------------------------
function kimphong()
AddItem(0,4,2,10,0,0,10) --- d﹜ chuy襫
AddItem(0,2,29,10,0,0,10) --- 竜
AddItem(0,6,2,10,0,0,10) ---產i l璶g
AddItem(0,5,4,10,0,0,10) --- gi祔
AddItem(0,8,2,10,0,0,10) --- bao tay
AddItem(0,7,14,10,0,0,10) --- n鉵
AddItem(0,9,2,10,0,0,10) --- ng鋍 b閕
AddItem(0,3,1,10,0,0,10) --nhan duoi
AddItem(0,3,1,10,0,0,10) --nhan duoi
end;

function anbang()
s = random(0,4)
AddItem(0,3,3,10,0,0,10) --nhan
AddItem(0,3,4,10,0,0,10) -- nhan
AddItem(0,9,3,10,0,0,10) -- ngoc boi
AddItem(0,4,3,10,0,0,10) --day chuyen
Msg2Player("Nhan duoc 1 Bo An Bang.")
end;

function dinhquoc()
s = random(0,4)
AddItem(0,7,28,10,0,0,10) --mu
AddItem(0,2,28,10,0,0,10) -- ao
AddItem(0,8,4,10,0,0,10) -- bao tay
AddItem(0,6,4,10,0,0,10) --dai lung
AddItem(0,5,8,10,0,0,10) --giay
Msg2Player("Nhan duoc 1 bo Dinh Quoc.")
end;

function vodanh()
AddItem(0,3,3,10,0,0,10) --nhan 1
AddItem(0,3,4,10,0,0,10) --nhan2
Msg2Player("Nhan duoc Cap Nhan Vo Danh.")
end;

function trangbiokim()
Say("He Thong: Xin hay lua chon trang bi theo mon phai.",12,
"O Kim Thieu Lam./oktl",
"O Kim Thien Vuong Bang./oktvb",
"O Kim Duong Mon./okdm",
"O Kim Ngu Doc./ok5doc",
"O Kim Nga My./oknm",
"O Kim Thuy Yen./okty",
"O Kim Cai Bang./okcb",
"O Kim Thien Nhan./oktn",
"O Kim Vo Dang./okvd",
"O Kim Con Lon./okcl",
"Tro Lai/main",
"Thoat./no");
end;
----------------------------------
function GioiTinh()
gioitinh = GetSex()
if gioitinh == 0 then
return "Nam"
elseif gioitinh == 1 then
return "Nu"
elseif gioitinh > 1 then
return "Be De"
end
end;

function oktl()
if GioiTinh() == "Nam" then
AddItem(0,2,49,1,0,0,10) --ao
AddItem(0,4,15,1,0,0,10) --daychuyen
AddItem(0,6,26,1,0,0,10) --dai lung
AddItem(0,5,26,1,0,0,10) --giay
AddItem(0,8,20,1,0,0,10) --bao tay
AddItem(0,7,42,1,0,0,10) --mu
AddItem(0,9,16,1,0,0,10) --ngocboi
AddItem(0,3,26,1,0,0,10) --nhan tren
AddItem(0,3,27,8,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Thieu Lam")
else
Talk(1,"","Phai Thieu Lam xua nay khong he co gioi tinh "..GioiTinh().." nen ban khong the nhan")
end
end;
----------------------------
function oktvb()
if GioiTinh() == "Nam" then
AddItem(0,2,49,2,0,0,10) --ao
AddItem(0,4,15,2,0,0,10) --daychuyen
AddItem(0,6,26,2,0,0,10) --dai lung
AddItem(0,5,26,2,0,0,10) --giay
AddItem(0,8,20,2,0,0,10) --bao tay
AddItem(0,7,42,2,0,0,10) --mu
AddItem(0,9,16,2,0,0,10) --ngocboi
AddItem(0,3,26,2,0,0,10) --nhan tren
AddItem(0,3,27,9,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Thien Vuong")
else
AddItem(0,2,49,9,0,0,10) --ao
AddItem(0,4,15,9,0,0,10) --daychuyen
AddItem(0,6,26,9,0,0,10) --dai lung
AddItem(0,5,26,9,0,0,10) --giay
AddItem(0,8,20,9,0,0,10) --bao tay
AddItem(0,7,42,9,0,0,10) --mu
AddItem(0,9,16,9,0,0,10) --ngocboi
AddItem(0,3,26,9,0,0,10) --nhan tren
AddItem(0,3,28,6,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Thien Vuong Nu")
end
end;
----------------------------
function okdm()
if GioiTinh() == "Nam" then
AddItem(0,2,49,3,0,0,10) --ao
AddItem(0,4,15,3,0,0,10) --daychuyen
AddItem(0,6,26,3,0,0,10) --dai lung
AddItem(0,5,26,3,0,0,10) --giay
AddItem(0,8,20,3,0,0,10) --bao tay
AddItem(0,7,42,3,0,0,10) --mu
AddItem(0,9,16,3,0,0,10) --ngocboi
AddItem(0,3,26,3,0,0,10) --nhan tren
AddItem(0,3,27,10,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Duong Mon")
else
AddItem(0,2,49,10,0,0,10) --ao
AddItem(0,4,15,10,0,0,10) --daychuyen
AddItem(0,6,26,10,0,0,10) --dai lung
AddItem(0,5,26,10,0,0,10) --giay
AddItem(0,8,20,10,0,0,10) --bao tay
AddItem(0,7,42,10,0,0,10) --mu
AddItem(0,9,16,10,0,0,10) --ngocboi
AddItem(0,3,26,10,0,0,10) --nhan tren
AddItem(0,3,28,7,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Duong Mon")
end
end;
----------------------------
function ok5doc()
if GioiTinh() == "Nam" then
AddItem(0,2,49,4,0,0,10) --ao
AddItem(0,4,15,4,0,0,10) --daychuyen
AddItem(0,6,26,4,0,0,10) --dai lung
AddItem(0,5,26,4,0,0,10) --giay
AddItem(0,8,20,4,0,0,10) --bao tay
AddItem(0,7,42,4,0,0,10) --mu
AddItem(0,9,16,4,0,0,10) --ngocboi
AddItem(0,3,26,4,0,0,10) --nhan tren
AddItem(0,3,28,1,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Ngu Doc")
else
AddItem(0,2,50,1,0,0,10) --ao
AddItem(0,4,16,1,0,0,10) --daychuyen
AddItem(0,6,27,1,0,0,10) --dai lung
AddItem(0,5,27,1,0,0,10) --giay
AddItem(0,8,21,1,0,0,10) --bao tay
AddItem(0,7,43,1,0,0,10) --mu
AddItem(0,9,17,1,0,0,10) --ngocboi
AddItem(0,3,27,1,0,0,10) --nhan tren
AddItem(0,3,28,8,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Ngu Doc")
end
end;
-----------------------------------
function oknm()
if GioiTinh() == "Nu" then
AddItem(0,2,50,2,0,0,10) --ao
AddItem(0,4,16,2,0,0,10) --daychuyen
AddItem(0,6,27,2,0,0,10) --dai lung
AddItem(0,5,27,2,0,0,10) --giay
AddItem(0,8,21,2,0,0,10) --bao tay
AddItem(0,7,43,2,0,0,10) --mu
AddItem(0,9,17,2,0,0,10) --ngocboi
AddItem(0,3,27,2,0,0,10) --nhan tren
AddItem(0,3,28,9,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Nga My")
else
Talk(1,"","Phai Nga My bao doi nay khong co gioi tinh "..GioiTinh().." nen ban khong the nhan")
end
end;
-----------------------------------
function okty()
if GioiTinh() == "Nu" then
AddItem(0,2,50,3,0,0,10) --ao
AddItem(0,4,16,3,0,0,10) --daychuyen
AddItem(0,6,27,3,0,0,10) --dai lung
AddItem(0,5,27,3,0,0,10) --giay
AddItem(0,8,21,3,0,0,10) --bao tay
AddItem(0,7,43,3,0,0,10) --mu
AddItem(0,9,17,3,0,0,10) --ngocboi
AddItem(0,3,27,3,0,0,10) --nhan tren
AddItem(0,3,28,10,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Thuy Yen")
else
Talk(1,"","Phai Thuy Yen bao doi nay khong co gioi tinh "..GioiTinh().." nen ban khong the nhan")
end
end;
-----------------------------------

function okcb()
if GioiTinh() == "Nam" then
AddItem(0,2,49,5,0,0,10) --ao
AddItem(0,4,15,5,0,0,10) --daychuyen
AddItem(0,6,26,5,0,0,10) --dai lung
AddItem(0,5,26,5,0,0,10) --giay
AddItem(0,8,20,5,0,0,10) --bao tay
AddItem(0,7,42,5,0,0,10) --mu
AddItem(0,9,16,5,0,0,10) --ngocboi
AddItem(0,3,26,5,0,0,10) --nhan tren
AddItem(0,3,28,2,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Cai Bang")
else
AddItem(0,2,50,4,0,0,10) --ao
AddItem(0,4,16,4,0,0,10) --daychuyen
AddItem(0,6,27,4,0,0,10) --dai lung
AddItem(0,5,27,4,0,0,10) --giay
AddItem(0,8,21,4,0,0,10) --bao tay
AddItem(0,7,43,4,0,0,10) --mu
AddItem(0,9,17,4,0,0,10) --ngocboi
AddItem(0,3,27,4,0,0,10) --nhan tren
AddItem(0,3,29,1,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Cai Bang")
end
end;
----------------------------
function oktn()
if GioiTinh() == "Nam" then
AddItem(0,2,49,6,0,0,10) --ao
AddItem(0,4,15,6,0,0,10) --daychuyen
AddItem(0,6,26,6,0,0,10) --dai lung
AddItem(0,5,26,6,0,0,10) --giay
AddItem(0,8,20,6,0,0,10) --bao tay
AddItem(0,7,42,6,0,0,10) --mu
AddItem(0,9,16,6,0,0,10) --ngocboi
AddItem(0,3,26,6,0,0,10) --nhan tren
AddItem(0,3,28,3,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Thien Nhan")
else
AddItem(0,2,50,5,0,0,10) --ao
AddItem(0,4,16,5,0,0,10) --daychuyen
AddItem(0,6,27,5,0,0,10) --dai lung
AddItem(0,5,27,5,0,0,10) --giay
AddItem(0,8,21,5,0,0,10) --bao tay
AddItem(0,7,43,5,0,0,10) --mu
AddItem(0,9,17,5,0,0,10) --ngocboi
AddItem(0,3,27,5,0,0,10) --nhan tren
AddItem(0,3,29,2,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Thien Nhan")
end
end;
----------------------------
function okvd()
if GioiTinh() == "Nam" then
AddItem(0,2,49,7,0,0,10) --ao
AddItem(0,4,15,7,0,0,10) --daychuyen
AddItem(0,6,26,7,0,0,10) --dai lung
AddItem(0,5,26,7,0,0,10) --giay
AddItem(0,8,20,7,0,0,10) --bao tay
AddItem(0,7,42,7,0,0,10) --mu
AddItem(0,9,16,7,0,0,10) --ngocboi
AddItem(0,3,26,7,0,0,10) --nhan tren
AddItem(0,3,28,4,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Vo Dang")
else
AddItem(0,2,50,6,0,0,10) --ao
AddItem(0,4,16,6,0,0,10) --daychuyen
AddItem(0,6,27,6,0,0,10) --dai lung
AddItem(0,5,27,6,0,0,10) --giay
AddItem(0,8,21,6,0,0,10) --bao tay
AddItem(0,7,43,6,0,0,10) --mu
AddItem(0,9,17,6,0,0,10) --ngocboi
AddItem(0,3,27,6,0,0,10) --nhan tren
AddItem(0,3,29,3,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Vo Dang")
end
end;
----------------------------
function okcl()
if GioiTinh() == "Nam" then
AddItem(0,2,49,8,0,0,10) --ao
AddItem(0,4,15,8,0,0,10) --daychuyen
AddItem(0,6,26,8,0,0,10) --dai lung
AddItem(0,5,26,8,0,0,10) --giay
AddItem(0,8,20,8,0,0,10) --bao tay
AddItem(0,7,42,8,0,0,10) --mu
AddItem(0,9,16,8,0,0,10) --ngocboi
AddItem(0,3,26,8,0,0,10) --nhan tren
AddItem(0,3,28,5,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Con Lon")
else
AddItem(0,2,50,7,0,0,10) --ao
AddItem(0,4,16,7,0,0,10) --daychuyen
AddItem(0,6,27,7,0,0,10) --dai lung
AddItem(0,5,27,7,0,0,10) --giay
AddItem(0,8,21,7,0,0,10) --bao tay
AddItem(0,7,43,7,0,0,10) --mu
AddItem(0,9,17,7,0,0,10) --ngocboi
AddItem(0,3,27,7,0,0,10) --nhan tren
AddItem(0,3,29,4,0,0,10) --nhan duoi
Msg2Player("Chuc Mung Ban Nhan Duoc Trang bi O Kim Con Lon")
end
end;
function vukhihk()
Say("He Thong: lua chon mon phai.",12,
"Thieu Lam./vkhktl",
"Thien Vuong./vkhktv",
"Duong Mon./vkhkdm",
"Ngu Doc./vkhknd",
"Nga My./vkhknm",
"Thuy Yen./vkhkty",
"Cai Bang./vkhkcb",
"Thien Nhan./vkhktn",
"Vo Dang./vkhkvd",
"Con Lon./vkhkcl",
"Tro Lai/main",
"Thoat./no");
end;
--======================
function vkhktl()
AddItem(0,0,9,1,0,0,10) -- phuc ma tu kim con
AddItem(0,0,10,1,0,0,10) --tu khong giang ma dao
Msg2Player("Nhan Duoc Vu Khi Hoang Kim Mon Phai Thieu lam.")
end;
--======================
function vkhktv()
AddItem(0,0,6,2,0,0,10) --chuy
AddItem(0,0,7,2,0,0,10) --thuong
AddItem(0,0,8,2,0,0,10) --dao ngu long
Msg2Player("Nhan Duoc Vu Khi Hoang Kim Mon Phai Thien Vuong.")
end;
--======================
function vkhkdm()
AddItem(0,1,3,1,0,0,10) --sam hoang
AddItem(0,1,4,1,0,0,10) --bang han
AddItem(0,1,5,1,0,0,10) --hoa vu man thien
Msg2Player("Nhan Duoc Vu Khi Hoang Kim Mon Phai Duong Mon.")
end;
--======================
function vkhknd()
AddItem(0,0,14,1,0,0,10) --minh ao ta sat doc nhan
AddItem(0,0,23,1,0,0,10) --dao U lung
Msg2Player("Nhan Duoc Vu Khi Hoang Kim Mon Phai Ngu Doc.")
end;
--======================
function vkhknm()
AddItem(0,0,11,1,0,0,10) --vo gian y thien kiem
AddItem(0,0,20,1,0,0,10) --vo viem
Msg2Player("Nhan Duoc Vu Khi Hoang Kim Mon Phai Nga My.")
end;
--======================
function vkhkty()
AddItem(0,0,12,1,0,0,10) --te hoang dao
AddItem(0,0,13,1,0,0,10) --bich hai uyen uong dao
Msg2Player("Nhan Duoc Vu Khi Hoang Kim Mon Phai Thuy Yen.")
end;
--======================
function vkhkcb()
AddItem(0,0,15,1,0,0,10) --dinh khai luc ngoc truong
AddItem(0,0,21,1,0,0,10) --dong cuu phi long
Msg2Player("Nhan Duoc Vu Khi Hoang Kim Mon Phai Cai Bang.")
end;
--======================
function vkhktn()
AddItem(0,0,16,1,0,0,10) --ma sat
AddItem(0,0,22,1,0,0,10) --ma thi nghiep
Msg2Player("Nhan Duoc Vu Khi Hoang Kim Mon Phai Thien Nhan.")
end;
--======================
function vkhkvd()
AddItem(0,0,17,1,0,0,10) --cap phong kiem
AddItem(0,0,18,1,0,0,10) --lang nhac kiem
Msg2Player("Nhan Duoc Vu Khi Hoang Kim Mon Phai Vo Dang.")
end;
--======================
function vkhkcl()
AddItem(0,0,19,1,0,0,10) --suong tinh han thiet
AddItem(0,0,24,1,0,0,10) --Loi Khung cuu thien
Msg2Player("Nhan Duoc Vu Khi Hoang Kim Mon Phai Con Lon.")
end;
--================================================== ===========
function vukhibk()
Say("He Thong: lua chon mon phai.",12,
"Thieu Lam./vkbktl",
"Thien Vuong./vkbktv",
"Duong Mon./vkbkdm",
"Ngu Doc./vkbknd",
"Nga My./vkbknm",
"Thuy Yen./vkbkty",
"Cai Bang./vkbkcb",
"Thien Nhan./vkbktn",
"Vo Dang./vkbkvd",
"Con Lon./vkbkcl",
"Tro Lai/main",
"Thoat./no");
end;
--======================
function vkbktl()
AddItem(0,0,2,70,0,0,10) -- phuc ma tu kim con
AddItem(0,0,1,70,0,0,10) --tu khong giang ma dao
Msg2Player("Nhan Duoc Vu Khi Bach Kim Thieu lam.")
end;
--======================
function vkbktv()
AddItem(0,0,4,70,0,0,10) --Ham Thien Kim Hoan Dai Nhan Than Chuy
AddItem(0,0,3,70,0,0,10) --Ke Nghiep Bon Loi Toan Long Thuong
AddItem(0,0,1,130,0,0,10) --Ngu Long Luong Ngan Bao Dao
Msg2Player("Nhan Duoc Vu Khi Bach Kim Thien Vuong.")
end;
--======================
function vkbkdm()
AddItem(0,1,0,40,0,0,10) --sam hoang
AddItem(0,1,1,40,0,0,10) --bang han
AddItem(0,1,2,40,0,0,10) --hoa vu man thien
Msg2Player("Nhan Duoc Vu Khi Bach Kim Duong Mon.")
end;
--======================
function vkbknd()
AddItem(0,0,14,10,0,0,10) --minh ao ta sat doc nhan
AddItem(0,0,5,150,0,0,10) --U lung dao
Msg2Player("Nhan Duoc Vu Khi Bach Kim Ngu Doc.")
end;
--======================
function vkbknm()
AddItem(0,0,11,10,0,0,10) --vo gian y thien kiem
AddItem(0,0,20,10,0,0,10) --vo viem
Msg2Player("Nhan Duoc Vu Khi Bach Kim Nga My.")
end;
--======================
function vkbkty()
AddItem(0,0,12,10,0,0,10) --te hoang dao
AddItem(0,0,13,10,0,0,10) --bich hai uyen uong dao
Msg2Player("Nhan Duoc Vu Khi Bach Kim Thuy Yen.")
end;
--======================
function vkbkcb()
AddItem(0,0,15,10,0,0,10) --dinh khai luc ngoc truong
AddItem(0,0,21,10,0,0,10) --dong cuu phi long
Msg2Player("Nhan Duoc Vu Khi Bach Kim Cai Bang.")
end;
--======================
function vkbktn()
AddItem(0,0,16,10,0,0,10) --ma sat
AddItem(0,0,22,10,0,0,10) --ma thi
Msg2Player("Nhan Duoc Vu Khi Bach Kim Thien Nhan.")
end;
--======================
function vkbkvd()
AddItem(0,0,17,10,0,0,10) --cap phong kiem
AddItem(0,0,18,10,0,0,10) --lang nhac kiem
Msg2Player("Nhan Duoc Vu Khi Bach Kim Vo Dang.")
end;
--======================
function vkbkcl()
AddItem(0,0,19,10,0,0,10) --suong tinh han thiet
AddItem(0,0,24,10,0,0,10) --loi khung
Msg2Player("Nhan Duoc Vu Khi Bach Kim Con Lon.")
end;
--================================================== =======

function thucuoi()
Say("Xin moi chon!",11,
"Han Huyet Long Cau/hanhuyetlongcau",
"Su Tu Trang/sututrang",
"Hac Ho/hoden",
"Ho Vang/hovang",
"Bach Ho/bachho",
"Bach Ho Moi/bachhomoi",
"Bach Loc/bachloc",
"Van Loc/vanloc",
"Tiep Theo/ttho",
"Tro Lai/main",
"Thoat/no");
end;
function ttho()
Say("Xin moi chon!",8,
"Ky Lan Ma/kylanma",
"Ngua Vang/nguavang",
"Gau Kiem The/gaukiemthe",
"Hac Long Ma/haclongma",
"Hac Long/haclong",
"Phi Vu/phivu",
"Tro Lai/main",
"Thoat/no")
end;
function no()
end;
function nguado()
AddItem(0,10,12,3,0,0,10)
end
function hanhuyetlongcau()
AddItem(0,10,12,3,0,0,10)
end
function sututrang()
AddItem(0,10,12,4,0,0,10)
end;
function hoden()
AddItem(0,10,12,1,0,0,10)
end;
function hovang()
AddItem(0,10,12,2,0,0,10)
end;
function bachho()
AddItem(0,10,11,1,0,0,10)
end;
function bachhomoi()
AddItem(0,10,11,2,0,0,10)
end;
function bachloc()
AddItem(0,10,11,3,0,0,10)
end;
function vanloc()
AddItem(0,10,11,4,0,0,10)
end;
function kylanma()
AddItem(0,10,11,5,0,0,10)
end;
function nguavang()
AddItem(0,10,11,6,0,0,10)
end;
function gaukiemthe()
AddItem(0,10,11,7,0,0,10)
end;
function haclongma()
AddItem(0,10,11,8,0,0,10)
end;
function haclong()
AddItem(0,10,11,9,0,0,10)
end;
function phivu()
AddItem(0,10,11,10,0,0,10)
end;
---------------------------------

function no()
end;