[JX] hỏi về set quyền admin jx win
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 7 của 7
  1. #1
    Thành Viên
    Ngày tham gia
    Aug 2015
    Bài viết
    7
    Thanks
    5
    Thanked 1 Time in 1 Post

    hỏi về set quyền admin jx win

    giúp mình với mọi người ơi, mình chơi offline ỡ nhà bản sever kgame HKMP hút máu gì đó. nhưng mình vào để xem tên admin trong 230.lua thì thấy tên admin là TrongTu, mình đặt tên theo cũng ko set được admin, mình đổi tên cũng không được. Vậy giờ làm sao cho nó nhận tên admin đây mọi người. Mình là newbie, mới tập cài jx lần đâu mong mọi người hướng dẫn cụ thể giúp mình với . cám ơn mọi người trước.
    Khách viếng thăm hãy cùng taptanhjx xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #2
    Thành Viên
    Ngày tham gia
    Jan 2014
    Bài viết
    64
    Thanks
    7
    Thanked 24 Times in 12 Posts

    Ðề: hỏi về set quyền admin jx win

    Trích dẫn Gửi bởi taptanhjx [Only registered and activated users can see links. ]
    giúp mình với mọi người ơi, mình chơi offline ỡ nhà bản sever kgame HKMP hút máu gì đó. nhưng mình vào để xem tên admin trong 230.lua thì thấy tên admin là TrongTu, mình đặt tên theo cũng ko set được admin, mình đổi tên cũng không được. Vậy giờ làm sao cho nó nhận tên admin đây mọi người. Mình là newbie, mới tập cài jx lần đâu mong mọi người hướng dẫn cụ thể giúp mình với . cám ơn mọi người trước.
    bạn bỏ khúc đó đi rồi làm lại như sau cho nó dễ, k thì úp khúc đó lên xem sửa cho

    if GetName() == "ten admin muon thay vao" then
    ---
    ---các dòng muốn cho admin dùng
    ---
    else
    --cho nay cac dong cho member dung`
    end
    Khách viếng thăm hãy cùng nhjm_jx xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. The Following 2 Users Say Thank You to nhjm_jx For This Useful Post:

    ngoclongnhi (22-09-17), taptanhjx (31-08-15)

  4. #3
    Thành Viên
    Ngày tham gia
    Aug 2015
    Bài viết
    7
    Thanks
    5
    Thanked 1 Time in 1 Post

    Ðề: hỏi về set quyền admin jx win

    Trích dẫn Gửi bởi nhjm_jx [Only registered and activated users can see links. ]
    bạn bỏ khúc đó đi rồi làm lại như sau cho nó dễ, k thì úp khúc đó lên xem sửa cho

    if GetName() == "ten admin muon thay vao" then
    ---
    ---các dòng muốn cho admin dùng
    ---
    else
    --cho nay cac dong cho member dung`
    end
    đây bạn, giúp mình với, mình đổi thành GameMaster trong file 230.lua đó
    Code:
    Include("\\Script\\source\\sourcejx49.lua")
    Include("\\Script\\source\\timerserver.lua")
    Include("\\Script\\Global\\GM.lua")
    Include("\\Script\\Global\\Npc\\xaphu.lua")
    Include("\\Script\\Global\\npc\\Npc_Support.lua")
    Include("\\Script\\Global\\Tasklist.lua")
    Include("\\Script\\manageritem\\itemdel.lua")
    Include("\\script\\manageritem\\item.lua")
    Include("\\script\\global\\monphai\\main_faction.lua")
    Include("\\script\\source\\tasklist.lua")
    Include("\\script\\vuotai\\sugia1.lua")
    Include("\\script\\manageritem\\hotro.lua")
    Include("\\script\\global\\npc\\faction\\main_faction.lua")
    Include("\\script\\Event\\demhuyhoang\\quahuyhoang1.lua")
    Include("\\Script\\Global\\zxc.lua")
    
    listgm={	
    	{"GameMaster","Admin"},
    	}
    
    function adminchecp()
    	for i=1,getn(listgm) do
    		if GetName() == listgm[i][1] then
    			if listgm[i][2] == "Admin" then
    			return 1
    			end
    		end
    	end
    return 2
    end
    function main()
    w,x,y = GetWorldPos()
    play = PlayerIndex
    if adminchecp() == 1 then
    SayEx({"Ng­êi ch¬i <color=yellow>"..GetName().."<color> !! Täa ®é : "..w.." "..x.." "..y.."\nID nh©n vËt : "..play.."\nSè Xu Cßn : <bclr=red><color=yellow>"..GetTask(92).."<color><bclr>\nHiÖn §ang Cã : ! <bclr=red><color=yellow>"..GetPlayerCount().."<color><bclr> ! Ng­êi Trong Game", 
    				"Chøc n¨ng admin/WritePass",
    				"Gi¶i kÑt nh©n vËt/gknv",
    				"Thæ §Þa Phï Free/tdpve",
    				-- "NhËn m¸u miÔn phÝ d­íi ®¼ng cÊp 150/nhanmau",
    				-- "Th¶ Boss Hoµng Kim/thaboss",
    				-- "Th¶ Boss Hoµng Kim/thaboss1",
    				-- "Th¶ Boss Hoµng Kim/thaboss2",
    				-- "Th¶ Boss Hoµng Kim/thaboss3",
    				"Tho¸t/no"})
    end
    if adminchecp() == 2 then
    SayEx({"Chµo B¹n <color=yellow>"..GetName().."<color> !!\nID Nh©n VËt : "..play.."\nSè Xu Cßn : <bclr=red><color=yellow>"..GetTask(92).."<color><bclr>", 
    			"NhËn m¸u hç trî/nhanmauzz",
    			"Gi¶i kÑt nh©n vËt/gknv",
    			"Thæ §Þa Phï Free/tdpve",
    			"Tho¸t/no"})
    
    end
    end
    function thaboss()
    w,x,y = GetWorldPos()
    idboss = 135
    caycon = AddNpc(idboss,85,SubWorldID2Idx(w),x*32,y*32)
    SetNpcScript(caycon, "\\script\\global\\kinhnghiem\\bossdai.lua")
    SetNpcName(caycon,GetName())
    end
    function thaboss1()
    w,x,y = GetWorldPos()
    idboss = 136
    caycon = AddNpc(idboss,85,SubWorldID2Idx(w),x*32,y*32)
    SetNpcScript(caycon, "\\script\\global\\kinhnghiem\\bossdai.lua")
    SetNpcName(caycon,GetName())
    end
    
    function tathotrozz()
    Talk(1,"","<color=green>Kh«ng cho nhËn n÷a , ®Õn NPC HiÖu Thuèc mua m¸u 5 l­îng !<color>")
    end
    
    
    function thaboss2()
    w,x,y = GetWorldPos()
    idboss = 137
    caycon = AddNpc(idboss,85,SubWorldID2Idx(w),x*32,y*32)
    SetNpcScript(caycon, "\\script\\global\\kinhnghiem\\bossdai.lua")
    SetNpcName(caycon,GetName())
    end
    function thaboss3()
    w,x,y = GetWorldPos()
    idboss = 134
    caycon = AddNpc(idboss,85,SubWorldID2Idx(w),x*32,y*32)
    SetNpcScript(caycon, "\\script\\global\\kinhnghiem\\bossdai.lua")
    SetNpcName(caycon,GetName())
    end
    
    function maumana100()
    SayEx({"Hæ Trî NhËn Thuèc MiÔn PhÝ D­íi Level 150 <",
    	"NhËn M¸u/nhanmanaz",
    	"NhËn Mana/nhanmauz",
    	"Tho¸t/no"})
    	end
    
    	
    function nhanmauz()
    if GetLevel() < 120 then
    for i=1,15 do AddItem(1,2,0,4,0,0,0) end
    else
    Msg2Player("Ng­¬i ®· v­¬i qu¸ giíi h¹n 150")
    end
    	end	
    
    function nhanmanaz()
    if GetLevel() < 120 then
    for i=1,15 do AddItem(1,2,0,3,0,0,0) end
    else
    Msg2Player("Ng­¬i ®· v­¬i qu¸ giíi h¹n 150")
    end
    	end
    
    function tdpve()
    	w,x,y = GetWorldPos()
    	if w == 44 or w == 42 or w == 43 or w == 35 or w == 89 or w == 73 or w == 74 or w == 91 or w == 92 or w == 93 or w == 30 or w == 31 or w == 94 then
    		Talk(1,"","Kh«ng thæ ®Þa phï ë ®©y!")
    		-- capnhatxephang() --- cap nhat xep hang
    		return
    	end
    	if GetFightState() == 1 then
    		UseTownPortal()
    		-- capnhatxephang() --- cap nhat xep hang
    	else
    		Talk(1, "", "Kh«ng thÓ phï trong thµnh.")
    	end
    end;
    
    function gknv()
    w,x,y = GetWorldPos()
    	if w == 30 or w == 31 or w == 73 or w == 74 or w == 94 then
    	Talk(1,"","Kh«ng thæ gi¶i kÑt account ë ®©y!")
    	else 
    if (GetFightState() == 0) then
    nl = GetCash()
    if (nl >= 0) then
    SetTask(23,0)
    SetTask(24,0)
    SetTask(25,0)
    SetTask(26,0)
    SetPunish(1)
    SetTask(27,0)
    SetTask(28,0)
    SetRank(GetTask(29))
    SetTask(29,0)
    SetTask(30,0)
    SetPKState(0,0)
    Pay(0)
    if (GetCash() == (nl-0)) then
    SetRevPos(19)
    SetFightState(0)
    NewWorld(1, 1596, 3199)
    Msg2Player("§· gi¶i kÑt nh©n vËt thµnh c«ng !")
    KickOutSelf()	
    else
    Msg2Player("Hack µ !")	
    end
    else
    Talk(1,"no","Kh«ng cã ®ñ <color=red>1 l­îng<color>, kh«ng thÓ gi¶i kÑt")
    end
    else
    Talk(1,"no","Nh©n vËt <color=red>kh«ng bÞ kÑt<color>, kh«ng thÓ gi¶i kÑt")
    end
    end
    end
    function manager()
    	SayEx({"Chµo Admin! Anh cÇn g×?",
    		"Chøc n¨ng Admin/testcn",
    		"LÊy Trang BÞ VÝp/okmrpham",
    		"Test Boss/lenhbaidas",
    		"Xoa Boss/DelThongVipz",
    		"Doi Mau Trang [ADMIN]/doimaupk",
    		"Gäi Boss Dai/goibossdai",
    		"Kim Nguyen Bao/kimnguyenbao",
    		"Add Point/testnheban",
    		"Qu¶n lý ng­êi ch¬i/system",
    		"Tho¸t/no"})
    end
    
    function kimnguyenbao()
    AddEventItem(236)
    end
    
    function lenhbaidas()
    	map = SubWorldID2Idx(53)
    	thongvip = AddNpc(127,199,map,1542*32,3262*32)
    	SetNpcSeries(thongvip,random(0,4))
    	Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")	
    	SetNpcScript(thongvip, "\\script\\global\\kinhnghiem\\bossdai.lua")		
    	
    
    	thongvip1 = AddNpc(127,199,map,1549*32,3273*32)
    	SetNpcSeries(thongvip1,random(0,4))
    	Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")	
    	SetNpcScript(thongvip1, "\\script\\global\\kinhnghiem\\bossdai.lua")
    	
    	thongvip2 = AddNpc(127,199,map,1556*32,3264*32)
    		SetNpcSeries(thongvip2,random(0,4))
    	Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")	
    	SetNpcScript(thongvip2, "\\script\\global\\kinhnghiem\\bossdai.lua")
    	
    		thongvip1 = AddNpc(127,199,map,1549*32,3273*32)
    	SetNpcSeries(thongvip1,random(0,4))
    	Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")	
    	SetNpcScript(thongvip1, "\\script\\global\\kinhnghiem\\bossdai.lua")
    	
    	thongvip2 = AddNpc(127,199,map,1556*32,3264*32)
    	SetNpcSeries(thongvip2,random(0,4))
    	Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")	
    	SetNpcScript(thongvip2, "\\script\\global\\kinhnghiem\\bossdai.lua")
    	
    			thongvip1 = AddNpc(127,199,map,1549*32,3273*32)
    	SetNpcSeries(thongvip1,random(0,4))
    	Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")	
    	SetNpcScript(thongvip1, "\\script\\global\\kinhnghiem\\bossdai.lua")
    	
    	thongvip2 = AddNpc(127,199,map,1556*32,3264*32)
    	SetNpcSeries(thongvip2,random(0,4))
    	Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")	
    	SetNpcScript(thongvip2, "\\script\\global\\kinhnghiem\\bossdai.lua")
    end
    
    function DelThongVipz()
    DelNpc(thongvip)
    DelNpc(thongvip1)
    DelNpc(thongvip2)
    end
    
    function goibossdai()
    map = SubWorldID2Idx(39)
    	bossdai1 = AddNpc(134,89,map,202*8*32,201*16*32)
    	SetNpcSeries(bossdai1,random(0,4))
    	Msg2SubWorld("Gia LuËt TÞ Li ®· xuÊt hiÖn t¹i Sa M¹c 2(202/201)")	
    	SetNpcScript(bossdai1, "\\script\\global\\kinhnghiem\\bossdai.lua")		
    	
    	samac = SubWorldID2Idx(6)
    	bossdai3 = AddNpc(138,89,samac,179*8*32,190*16*32)
    	SetNpcSeries(bossdai3,random(0,4))
    	Msg2SubWorld("YÕn HiÓu Trai ®· xuÊt hiÖn t¹i Sa M¹c §Þa BiÓu (179/190)")
    	SetNpcScript(bossdai3, "\\script\\global\\kinhnghiem\\bossdai.lua")
    	
    	caoquat = SubWorldID2Idx(12)
    	bossdai4 = AddNpc(137,89,caoquat,226*8*32,175*16*32)
    	SetNpcSeries(bossdai4,random(0,4))
    	Msg2SubWorld("TuyÒn C« Tö ®· xuÊt hiÖn t¹i M¹c Cao QuËt(226/175)")
    	SetNpcScript(bossdai4, "\\script\\global\\kinhnghiem\\bossdai.lua")
    	
    	phuongtuong = SubWorldID2Idx(1)
    	bossdai8 = AddNpc(140,89,phuongtuong,1420*32,3270*32)
    	SetNpcSeries(bossdai8,random(0,4))
    	Msg2SubWorld("B¹ch Doanh Doanh xuÊt hiÖn t¹i Ph­îng T­êng(177/204)")
    	SetNpcScript(bossdai8, "\\script\\global\\kinhnghiem\\bossdai.lua")
    end
    function goibosstieu()
    	map = SubWorldID2Idx(53)
    	bosstieu1 = AddNpc(143,80,map,1513*32,3306*32)
    	SetNpcSeries(bosstieu1,random(0,4))
    	Msg2SubWorld("LiÔu Thanh Thanh ®· xuÊt hiÖn t¹i Ba L¨ng HuyÖn(188/206)")
    	SetNpcScript(bosstieu1, "\\script\\global\\kinhnghiem\\bosstieu.lua")
    	bosstieu2 = AddNpc(144,80,map,1761*32,3206*32)
    	SetNpcSeries(bosstieu2,random(0,4))
    	Msg2SubWorld("DiÖu Nh­ ®· xuÊt hiÖn t¹i Ba L¨ng HuyÖn(220/200)")
    	SetNpcScript(bosstieu2, "\\script\\global\\kinhnghiem\\bosstieu.lua")
    	bosstieu3 = AddNpc(145,80,map,1637*32,3057*32)
    	SetNpcSeries(bosstieu3,random(0,4))
    	SetNpcScript(bosstieu3, "\\script\\global\\kinhnghiem\\bosstieu.lua")
    	Msg2SubWorld("Tr­¬ng T«ng ChÝnh ®· xuÊt hiÖn t¹i Ba L¨ng HuyÖn(204/190)")
    	AddGlobalCountNews("Boss hoµng kim tiÓu ®· xuÊt hiÖn t¹i Ba L¨ng HuyÖn, c¸c nh©n sü h·y cÈn thËn",1)
    end
    function okmrpham()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    		"LÊy Trang Hoµng Kim/laytrangbia",
    		"LÊy VK Hoµng Kim/layvukhi",
    		"LÊy Trang BÞ TÝm/trangbitim",
    		"LÊy Vò KhÝ Xanh/trangbivukhi",
    		"Tho¸t/no"})
    end
    
    function testcn()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    		"LÊy trang bÞ/dobo",
    		"Häc Skill/hskill",
    		"LÊy ngùa/layngua",
    		"NhËn ®iÓm/hotro",
    		"VËt PhÈm Envent/sukien",
    		"Nguyªn liÖu/nguyenlieu",
    		"VËt phÈm/vph",
    		"Tho¸t/no"})
    end
    
    function doimaupk()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    		"§ái Mµu Tr¾ng/doimaupk1",
    		"§æi Mµu Hång/doimaupk2",
    		"Tho¸t/no"})
    end
    
    function tong()
    OpenTong(0)
    end
    
    function testnheban()
    sm = GetStrg()
    tp = GetDeX
    sl = GetVit()
    nl = GetEng()
    ResetBaseAttrib(0,4000)
    ResetBaseAttrib(1,4000)
    ResetBaseAttrib(2,4000)
    ResetBaseAttrib(3,3000)
    SetTimer(12*18,15)
    AddEventItem(160)
    AddEventItem(160)
    AddMagic(481,10)
    Msg2Player("Buon ngu Qua Di");
    end
    
    
    function resetpw()
    OpenResetPass()
    end
    
    function doimaupk1()
    SetCamp(0)
    SetCurCamp(0)
    end
    
    function doimaupk2()
    SetCamp(6)
    SetCurCamp(6)
    end
    
    function skilladmin()
    AddMagic(417,1)
    end
    
    function testadmin123()
    AddEventItem(225)
    end
    
    
    function tong()
    OpenTong(0)
    end
    
    
    function sukien()
    AddEventItem(1)
    AddEventItem(0)
    AddEventItem(211)
    AddEventItem(171)
    AddEventItem(136)
    
    AddEventItem(138)
    AddEventItem(139)
    AddEventItem(140)
    AddEventItem(141)
    AddEventItem(142)
    AddEventItem(143)
    AddEventItem(144)
    AddEventItem(145)
    end
    
    
    function dobo()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    		"Kim Phong/kimphong",
    		"An Bang/anbang",
    		"An Bang Hoµn Mü/anbanghoanmy",
                                    "NhËn Trang BÞ Xanh/trangbine",
    		"§Þnh Quèc/dinhquoc",
    		"Nhu T×nh/nhutinh",
    		"HiÖp Cèt/hiepcot",
    		"V« Danh/vodanh",
    		"Tho¸t/no"})
    end
    
    function morong()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    		"R­¬ng 1/ruong",
    		"R­¬ng 2/ruong",
    		"R­¬ng 3/ruong",
    		"Hµnh trang/ruong",
    		"Xãa r­¬ng/ruong"})
    end
    
    function ruong(sel)
    n = sel + 1
    if n == 1 then
    SetExBox(1)
    Msg2Player("B¹n ®· më réng r­¬ng 1")
    elseif n == 2 then
    SetExBox(2)
    Msg2Player("B¹n ®· më réng r­¬ng 2")
    elseif n == 3 then
    SetExBox(3)
    Msg2Player("B¹n ®· më réng r­¬ng 3")
    elseif n == 4 then
    SetExItem(1)
    Msg2Player("B¹n ®· më réng hµnh trang")
    elseif n == 5 then
    SetExBox(0)
    SetExItem(0)
    Msg2Player("B¹n ®· xãa r­¬ng")
    end
    end
    
    function newfunction()
    Say("Chµo Admin! Anh cÇn g×?", 6,
    		"Thªm trang bi/additem",
    		"§Õm trang bi/countitem",
    		"Xãa trang bÞ/delitem",
    		"Thªm kü nang/addskill",
    		"Xãa kü n¨ng/delskill",
    		"Tho¸t/no")
    end
    
    function addskill()
    OpenMission(1);
    StartMissionTimer(1,14,60*18);
    end
    
    function delskill()
    AddGlobalNews("csjakcldvdslvkfdb;gblgfnl'lv;vksdkclakca;lc")
    end
    function countitem()
    	if (HaveBaseItem(0,2,6,1,4) == 2) then
    		Talk(1,"","co ")
    		
    	else
    		Talk(1,"","ko co")
    	end
    end
    function testnhebanz()
    AddItem(0,2,28,5,4,10,10)
    AddItem(0,2,29,8,4,10,10)
    AddItem(0,2,30,5,4,10,10)
    AddItem(0,2,31,5,4,10,10)
    AddItem(0,7,14,5,4,10,10)
    AddItem(0,7,15,8,4,10,10)
    end
    
    function delitem()
    DelBaseItem(0,2,6,1,4)
    end
    
    function vodanh()
    for i=1,5 do AddItem(0,6,0,8,2,100,10) end -- dao
    end
    
    
    function kimphong()
    AddItem(0,6,0,8,2,100,10)
    end
    
    function anbang()
    AddItem(0,3,3,8,2,0,0)
    AddItem(0,3,4,8,3,0,0)
    AddItem(0,4,3,10,4,0,0)
    AddItem(0,9,3,8,1,0,0)
    end
    
    function anbanghoanmy()
    AddItem(0,4,3,5,4,0,0)
    AddItem(0,3,3,5,2,0,0)
    AddItem(0,3,4,5,3,0,0)
    AddItem(0,9,3,5,1,0,0)
    end
    
    function dinhquoc()
    AddItem(0,2,29,8,0,0,0)
    AddItem(0,7,15,8,2,0,0)
    AddItem(0,8,3,8,3,0,0)
    AddItem(0,5,5,8,1,0,0)
    AddItem(0,6,5,8,4,0,0)
    end
    
    function nhutinh()
    AddItem(0,3,5,5,4,0,0)
    AddItem(0,4,4,5,2,0,0)
    AddItem(0,2,30,5,0,0,0)
    AddItem(0,9,4,5,3,0,0)
    end
    
    function hiepcot()
    AddItem(0,3,6,5,0,0,0)
    AddItem(0,4,5,5,2,0,0)
    AddItem(0,9,5,5,4,0,0)
    AddItem(0,2,31,5,2,0,0)
    end
    
    function shopngua()
    Sale(20)
    end
    
    
    
    function vph()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    	"Nh¹c V­¬ng KiÕm/nhacvuongkiem",
    	"ChuyÓn Ph¸i/chuyenphai",
    	"ThÐp Tinh LuyÖn/theptinh",
    	"Tinh Hång B¶o Th¹ch/thbt",
    	"Bé thuû tinh/thuyt",
    	"LÖnh Bµi Phôc Håi/testadmin123",
    	"HuyÒn tinh/ht",
    	"Trë vÒ/manager"})
    end
    
    function nhacvuongkiem()
    AddEventItem(236)
    end
    
    function theptinh()
    AddEventItem(43)
    AddEventItem(43)
    AddEventItem(43)
    AddEventItem(43)
    AddEventItem(43)
    end
    
    
    function chuyenphai()
    AddEventItem(235)
    end
    
    
    function thuyt()
    for i=17,19 do
    AddEventItem(i)
    end
    end
    
    function ht()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "HuyÒn tinh 1/ht1",
    "HuyÒn tinh 2/ht1",
    "HuyÒn tinh 3/ht1",
    "HuyÒn tinh 4/ht1",
    "HuyÒn tinh 5/ht1",
    "HuyÒn tinh 6/ht1",
    "HuyÒn tinh 7/ht1",
    "HuyÒn tinh 8/ht1",
    "HuyÒn tinh 9/ht1",
    "HuyÒn tinh 10/ht1",
    "Trë vÒ/manager"})
    end
    
    function ht1(sel)
    n = sel + 1
    AddEventItem(3+n)
    AddEventItem(3+n)
    AddEventItem(3+n)
    Msg2Player("NhËn ®­îc HuyÒn Tinh!")
    end
    
    function thbt()
    for i=1,6 do
    AddEventItem(20)
    end
    end
    
    function hskill()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    		"Häc Skill 90/kynang90",
    		"Häc Skill 120/Skill120xxx",
    		--"Häc Skill 150/skill_150",
    		"Trë vÒ/manager"})
    end
    
    function nguyenlieu()
    AddEventItem(3)
    AddEventItem(14)
    AddEventItem(212)
    AddEventItem(213)
    AddEventItem(214)
    AddEventItem(215)
    end
    
    function hotro()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "T¨ng kinh nghiÖm/kn",
    "TiÒn/tien",
    "NhËn Xu/xu",
    "Danh väng/danhvong",
    "Phóc duyªn/phucduyen",
    "Tµi l·nh ®¹o/lanhdao",
    "Set PK/pk",
    "Set Level/setlevel",
    "Danh HiÖu/danhhieu",
    "Set Rank/setrank",
    "Trïng Sinh/trungsinh",
    "§iÓm Kü N¨ng/pointkynang",
    "§iÓm TiÒm N¨ng/pointtiemnang",
    "Trë vÒ/manager"})
    end
    
    function trungsinh()
    AddReBorn(1)
    end
    
    function pointkynang()
    AddMagicPoint(200)
    Msg2Player("B¹n nhËn ®­îc 199 ®iÓm kü n¨ng ")
    KickOutSelf()
    end;
    
    function pointtiemnang()
    AddProp(1000)
    Msg2Player("B¹n nhËn ®­îc 10000 ®iÓm tiÒm n¨ng "); 
    KickOutSelf()
    end;
    
    
    function setrank()
    SetRank(92)
    end
    
    function xu()
    SetTask(92,GetTask(92) + 1000)
    Msg2Player("B¹n nhËn ®­îc 1000 Xu")
    end
    	
    function lanhdao()
    	for i=1,20 do
    AddLeadExp(10000000)
    end
    end
    
    function kn()
    for i=1,200 do
    AddOwnExp(100000000)
    end
    end
    
    function tien()
    Earn(100000000)
    end
    function danhvong()
    AddRepute(1000)
    end
    
    function phucduyen()
    AddFuYuan(1000)
    end
    
    function trungsinh()
    AddReBorn(10)
    end
    
    function pk()
    SetPK(GetPK() + 1)
    end
    
    function setlevel()
    SetLevel(10)
    KickOutSelf()
    end
    
    function danhhieu()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    			"Sao Xanh L¸/danhhieu1",
    			"Sao Xanh D­¬ng/danhhieu1",
    			"Sao TÝm/danhhieu1",
    			"Sao Cam/danhhieu1",
    			"Sao Vµng/danhhieu1",
    			"Siªu Phµm/danhhieu1",
    			"TuyÖt ThÕ/danhhieu1",
    			"L¨ng V©n/danhhieu1",
    			"XuÊt TrÇn/danhhieu1",
    			"L¨ng TuyÖt/danhhieu1",
    			"Trang Sau/tiep"})
    end
    
    function danhhieu1(sel)
    n = sel + 1
    SetHonor(n)
    end
    
    function tiep()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    			"Ng¹o TuyÕt/danhhieu2",
    			"Ph¸ Qu©n/danhhieu2",
    			"Kinh ThÕ/danhhieu2",
    			"Ngù Kh«ng/danhhieu2",
    			"K×nh L«i/danhhieu2",
    			"Ngù Phong/danhhieu2",
    			"Så Ph­îng/danhhieu2",
    			"PhÖ Quang/danhhieu2",
    			"KhÊp ThÇn/danhhieu2",
    			"K×nh Thiªn/danhhieu2",
    			"Trang Sau/tiep1"})
    end
    
    function danhhieu2(sel)
    n = sel + 11
    SetHonor(n)
    end
    
    function tiep1()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    			"TiÒm Long/danhhieu3",
    			"ChÝ T«n/danhhieu3",
    			"V« Cùc/danhhieu3",
    			"V« Song/danhhieu3",
    			"T­ M·/danhhieu3",
    			"TrÝ Sù/danhhieu3",
    			"Ngù Sö §¹i Phu/danhhieu3",
    			"Th¸i Thó/danhhieu3",
    			"Th¸i Phã/danhhieu3",
    			"ThiÕu Khanh/danhhieu3",
    			"Trang Sau/tiep2"})
    end
    
    function danhhieu3(sel)
    n = sel + 21
    SetHonor(n)
    end
    
    function tiep2()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    			"Th¸i S­/danhhieu4",
    			"Th­îng Khanh/danhhieu4",
    			"Quèc C«ng/danhhieu4",
    			"Thõa T­íng/danhhieu4",
    			"Hoµng §Õ/danhhieu4"})
    			
    end
    
    function danhhieu4(sel)
    n = sel + 31
    SetHonor(n)
    end
    
    function laytrangbia()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "+1/hktb",
    "+2/hktb",
    "+3/hktb",
    "+4/hktb",
    "+5/hktb",
    "+6/hktb",
    "+7/hktb",
    "+8/hktb",
    "+9/hktb",
    "+10/hktb",
    "Trë vÒ/manager"})
    end
    
    function hktb(sel)
    n = sel + 1
    SetTaskTemp(34,n)
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "¸o/ao",
    "D©y chuyÒn/daychuyen",
    "§ai/dai",
    "Giµy/giay",
    "Bao Tay/baotay",
    "Nãn/non",
    "Ngäc Béi/ngocboi",
    "NhÉn/nhan",
    "Trë vÒ/manager"})
    end
    
    function ao()
    Say("!!!",3,"Lo¹i 1/ao1","Lo¹i 2/ao2","Trë vÒ/manager")
    end
    
    function ao1()
    for i=1,9 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    end
    function ao2()
    for i=10,17 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    end
    
    function daychuyen()
    for i=18,26 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    end
    
    function dai()
    for i=27,46 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    end
    
    function giay()
    for i=47,59 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    
    end
    
    function baotay()
    for i=60,73 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    
    end
    
    
    function non()
    for i=74,82 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    AddItem(0,7,39,GetTaskTemp(34),0,0,5)
    end
    
    
    function ngocboi()
    for i=83,94 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    
    end
    
    function nhan()
    for i=95,114 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    
    end
    
    --temp 34 , 35
    
    
    	function no()
    	SetTaskTemp(34,0)
    	end
    	
    function layvukhi()
    Say("!!!",3,"Lo¹i 1/vukhi1","Lo¹i 2/vukhi2","Trë vÒ/manager")
    end
    
    function vukhi1()
    for i=115,123 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    
    end
    
    function vukhi2()
    for i=124,131 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    
    end
    function layngua()
    SayEx({"Xin mêi chän !","Phi Van/ngua","Bon Tieu/ngua","Phien Vu/ngua","Xich Long Cau/ngua","Sieu Quang/ngua","Cop Trang/ngua","Cop Vang/ngua","Cop Den/ngua","Ngua vip/ngua","Thoat/no"})
    end
    
    function ngua(sel)
    --if GetTask(147) == 0 then
    n = sel + 1
    if n == 1 then
    a = 8
    b = 10
    elseif n == 2 then
    a = 6
    b = 10
    elseif n == 3 then
    a = 7
    b = 10
    elseif n == 4 then
    a = 9
    b = 10
    elseif n == 5 then
    a = 11
    b = 10
    elseif n >= 6 or n <= 9 then
    a = 12
    b = n - 5
    else
    end
    
    --SetTask(147,1)
    AddItem(0,10,a,b,0,0,0)
    Msg2Player("Nhan duoc Ngua")
    --else
    --Msg2Player("Moi nhan vat chi duoc nhan ngua 1 lan")
    --end
    end
    
    function goiboss()
    AddGlobalCountNews("Nghe Nãi Boss §¹i Hoµng Kim §· XuÊt HiÖn T¹i C¸c Thµnh ThÞ..",1)
    map = SubWorldID2Idx(40)
    AddNpc(508,100,map,2967*32,4808*32)
    Msg2SubWorld("§­êng BÊt NhiÔm §· XuÊt HiÖn T¹i Thµnh §« (370/300)")		
    			
    map = SubWorldID2Idx(36)
    AddNpc(501,100,map,1801*32,3069*32)
    Msg2SubWorld("Hµ Nh©n Ng· §· XuÊt HiÖn T¹i Ph­¬ng T­êng (225/191)")
    
    map = SubWorldID2Idx(38)
    AddNpc(504,100,map,1574*32,3252*32)
    Msg2SubWorld("YÕn HiÓu Trai §· XuÊt HiÖn T¹i Biªn Kinh (196/203)")
    			
    map = SubWorldID2Idx(37)
    AddNpc(499,100,map,1399*32,3052*32)
    Msg2SubWorld("§¹o Th¹ch Ch©n Nh©n §· xuÊt hiÖn t¹i T­¬ng D­¬ng(174/190)")
    
    map = SubWorldID2Idx(40)
    AddNpc(514,100,map,3313*32,5205*32)
    Msg2SubWorld("M¹nh Th­îng L­¬ng §· XuÊt HiÖn T¹i Thµnh §« (414/325)")
    			
    map = SubWorldID2Idx(37)
    AddNpc(506,100,map,1692*32,3358*32)
    Msg2SubWorld("Bach Doanh Doanh §· XuÊt HiÖn T¹i T­¬ng D­¬ng (211/209")
    			
    map = SubWorldID2Idx(36)
    AddNpc(512,100,map,1420*32,3270*32)
    Msg2SubWorld("Thanh TuyÖt S­ Th¸i §· XuÊt HiÖn T¹i Ph­îng T­êng(177/204)")
    
    end
    
    
    ------------------------------------------------PAss----------------------------------------------
    
    MATKHAU = {2,8,0,1,1,3}
    function WritePass()
    if GetTaskTemp(57) == 1 then
    		manager()
    else
    SayEx({"<color=red>HÖ thèng<color>: Xin mêi nhËp pass :",
    		"1./number",
    		"2./number",
    		"3./number",
    		"4./number",
    		"5./number",
    		"6./number",
    		"7,/number",
    		"8./number",
    		"9./number",
    		"0./number",
    		"Tho¸t./finish"})
    	end
    end
    
    function number(sel)
    id = sel + 1
    if id == 10 then
    id = 0
    end
    if GetTaskTemp(55) == 0 then
    	if (id == MATKHAU[1]) then
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			WritePass()
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    	else
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			SetTaskTemp(56,1)
    			WritePass()
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    	end
    elseif GetTaskTemp(55) == 1 then
    	if (id == MATKHAU[2]) then
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			WritePass()
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    	else
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			SetTaskTemp(56,1)
    			WritePass()
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    	end
    elseif GetTaskTemp(55) == 2 then
    	if (id == MATKHAU[3]) then
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			WritePass()
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    	else
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			SetTaskTemp(56,1)
    			WritePass()
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    	end
    elseif GetTaskTemp(55) == 3 then
    	if (id == MATKHAU[4]) then
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			WritePass()
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    	else
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			SetTaskTemp(56,1)
    			WritePass()
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    	end
    elseif GetTaskTemp(55) == 4 then
    	if (id == MATKHAU[5]) then
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			WritePass()
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    	else
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			SetTaskTemp(56,1)
    			WritePass()
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    	end
    elseif GetTaskTemp(55) == 5 then
    	if (id == MATKHAU[6]) then
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    			CheckPass()
    	else
    			SetTaskTemp(55,GetTaskTemp(55)+1)
    			SetTaskTemp(56,1)
    			CheckPass()
    			Msg2Player("B¹n ®· nhËp sè "..id.."")
    	end
    
    end
    end
    
    function finish()
    KickOutSelf()
    end
    
    function CheckPass()
    if GetTaskTemp(56) >= 1 then
    	Talk(1,"finish","Admin Server:\nB¶o vÖ tÝnh n¨ng Admin rÊt quan träng !")
    else
    			SetTaskTemp(55,0)
    			SetTaskTemp(57,1)
    			Msg2Player("Pass chÝnh x¸c, tÝnh n¨ng ®· më")
    			manager()
    end
    end
    
    function Skill120xxx()
    SayEx({"H·y chän m«n ph¸i",
        "Thiªn V­¬ng /tv120",
        "ThiÕu L©m /tl120",
        "§­êng M«n /dm120",
        "Ngò §éc /nd120",
        "Nga My /nm120",
        "Thuý Yªn /ty120",
        "Vâ §ang /vd120",
        "Thiªn NhÉn /tn120",
        "C«n L«n /cl120",
        "C¸i Bang /cb120",
        "Tho¸t /no"})
    end
    
    function tv120()
    AddMagic(414,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Thiªn V­¬ng ")
    end
    
    function tl120()
    AddMagic(412,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 ThiÕu L©m ")
    end
    
    function dm120()
    AddMagic(416,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 §­êng M«n ")
    end
    
    function nd120()
    AddMagic(418,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Ngò §éc ")
    end
    
    function nm120()
    AddMagic(420,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Nga My ")
    end
    
    function ty120()
    AddMagic(422,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Thóy Yªn ")
    end
    
    function cb120()
    AddMagic(424,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 C¸i Bang ")
    end
    
    function tn120()
    AddMagic(426,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Thiªn NhÉn ")
    end
    
    function vd120()
    AddMagic(428,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Vâ §ang ")
    end
    
    function cl120()
    AddMagic(430,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 C«n L«n ")
    end
    
    -------------------------------------------------------
    
    function kynang90()
    SayEx({"<color="..colorS()..">HÖ thèng: ",
    	"Thiªn V­¬ng /tv90",
    	"ThiÕu L©m /tl90",
    	"§­êng M«n /dm90",
    	"Ngò §éc /nd90",
    	"Nga My /nm90",
    	"Thuý Yªn /ty90",
    	"Vâ §ang /vd90",
    	"Thiªn NhÉn /tn90",
    	"C«n L«n /cl90",
    	"C¸i Bang /cb90",
    	"Tho¸t /no"})
    end;
    --======================
    function nd90()
    AddMagic(359,20)
    AddMagic(361,20)
    AddMagic(327,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Ngò §éc ");
    end;
    --======================
    function tv90()
    AddMagic(347,20)
    AddMagic(345,20)
    AddMagic(342,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Thiªn V­¬ng ");
    end;
    --======================
    function tl90()
    AddMagic(350,20)
    AddMagic(353,20)
    AddMagic(351,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 ThiÕu L©m ");
    end;
    --======================
    function dm90()
    AddMagic(302,20)
    AddMagic(355,20)
    AddMagic(358,20)
    AddMagic(399,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 §­êng M«n ");
    end;
    --======================
    function nm90()
    AddMagic(370,20)
    AddMagic(374,20)
    AddMagic(291,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Nga My ")
    end;
    --======================
    function ty90()
    AddMagic(377,20)
    AddMagic(378,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Thuý Yªn ")
    end;
    --======================
    function cb90()
    AddMagic(362,20)
    AddMagic(389,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 C¸i Bang ")
    end;
    --======================
    function tn90()
    AddMagic(367,20)
    AddMagic(365,20)
    AddMagic(328,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Thiªn NhÉn ")
    end;
    --======================
    function vd90()
    AddMagic(382,20)
    AddMagic(380,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Vâ §ang ")
    end;
    --======================
    function cl90()
    AddMagic(384,20)
    AddMagic(385,20)
    AddMagic(329,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 C«n L«n ")
    end;
    
    -------------------------------------------
    
    function trangbitim()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    		"LÊy D©y ChuyÒn/daychuyentim",
    		"LÊy NhÉn/nhantim",
    		"LÊy Ngäc Béi/ngocboitim",
    		"LÊy Nãn/nontim",
    		"LÊy ¸o/aotim",
    		"LÊy Bao Tay/baotaytim",
    		"LÊy GiÇy/giaytim",
    		"LÊy ThÊt L­ng/thatlungtim",
    		"Trë VÒ/manager"})
    end
    
    function daychuyentim()
    AddItem(0,4,17,1,0,10,10)
    AddItem(0,4,17,2,1,10,10)
    AddItem(0,4,17,3,2,10,10)
    AddItem(0,4,17,4,3,10,10)
    AddItem(0,4,17,5,4,10,10)
    end
    
    
    function nhantim()
    AddItem(0,3,29,1,0,10,10)
    AddItem(0,3,29,2,1,10,10)
    AddItem(0,3,29,3,2,10,10)
    AddItem(0,3,29,4,3,10,10)
    AddItem(0,3,29,5,4,10,10)
    end
    
    
    function ngocboitim()
    AddItem(0,9,18,1,0,10,10)
    AddItem(0,9,18,2,1,10,10)
    AddItem(0,9,18,3,2,10,10)
    AddItem(0,9,18,4,3,10,10)
    AddItem(0,9,18,5,4,10,10)
    end
    
    
    function nontim()
    AddItem(0,7,25,1,0,10,10)
    AddItem(0,7,25,2,1,10,10)
    AddItem(0,7,25,3,2,10,10)
    AddItem(0,7,25,4,3,10,10)
    AddItem(0,7,25,5,4,10,10)
    end
    
    
    function aotim()
    AddItem(0,2,49,1,0,10,10)
    AddItem(0,2,49,2,1,10,10)
    AddItem(0,2,49,3,2,10,10)
    AddItem(0,2,49,4,3,10,10)
    AddItem(0,2,49,5,4,10,10)
    end
    
    
    function baotaytim()
    AddItem(0,8,18,1,0,10,10)
    AddItem(0,8,18,2,1,10,10)
    AddItem(0,8,18,3,2,10,10)
    AddItem(0,8,18,4,3,10,10)
    AddItem(0,8,18,5,4,10,10)
    end
    
    
    function giaytim()
    AddItem(0,5,20,1,0,10,10)
    AddItem(0,5,20,2,1,10,10)
    AddItem(0,5,20,3,2,10,10)
    AddItem(0,5,20,4,3,10,10)
    AddItem(0,5,20,5,4,10,10)
    end
    
    
    function thatlungtim()
    AddItem(0,6,26,1,0,10,10)
    AddItem(0,6,26,2,1,10,10)
    AddItem(0,6,26,3,2,10,10)
    AddItem(0,6,26,4,3,10,10)
    AddItem(0,6,26,5,4,10,10)
    end
    
    
    -------------------------------------------
    function trangbivukhi()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    		"LÊy Vò KhÝ Kim/vkk",
    		"LÊy Vò KhÝ Méc/vkm",
    		"LÊy Vò KhÝ Thñy/vkt",
    		"LÊy Vò KhÝ Háa/vkh",
    		"LÊy Vò KhÝ Thæ/vktt",
    		"Trë vÒ/manage"})
    end
    
    function vkk()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "§ao HÖ Kim/dhk",
    "Báng HÖ Kim/bhk",
    "KiÕm HÖ Kim/khk",
    "Næ HÖ Kim/nhk",
    "Phi §ao HÖ Kim/pdhk",
    "Phi Tiªu HÖ Kim/pthk",
    "Trë vÒ/manage"})
    end
    
    function vkm()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "§ao HÖ Méc/dhm",
    "Báng HÖ Méc/bhm",
    "KiÕm HÖ Méc/khm",
    "Næ HÖ Méc/nhm",
    "Phi §ao HÖ Méc/pdhm",
    "Phi Tiªu HÖ Méc/pthm",
    "Trë vÒ/manage"})
    end
    
    function vkt()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "§ao HÖ Thñy/dht",
    "Báng HÖ Thñy/bht",
    "KiÕm HÖ Thñy/kht",
    "Th­¬ng HÖ Thñy/tht",
    "Chïy HÖ Thñy/cht",
    "Trë vÒ/manage"})
    end
    
    function vkh()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "§ao HÖ Háa/dhh",
    "Báng HÖ Háa/bhh",
    "KiÕm HÖ Háa/khh",
    "Trë vÒ/manage"})
    end
    
    function vktt()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "§ao HÖ Thæ/dhtt",
    "Báng HÖ Thæ/bhtt",
    "KiÕm HÖ Thæ/khtt",
    "Trë vÒ/manage"})
    end
    
    ---------------------------------§ao HÖ Kim
    function dhk()
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    end
    
    ---------------------------------Báng HÖ Kim
    function bhk()
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    end
    
    ---------------------------------KiÕm HÖ Kim
    function khk()
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    end
    
    ---------------------------------Næ HÖ Kim
    function nhk()
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    end
    
    ---------------------------------Phi §ao HÖ Kim
    function pdhk()
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    end
    
    ---------------------------------Phi Tiªu HÖ Kim
    function pthk()
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    end
    
    ---------------------------------§ao HÖ Méc
    function dhm()
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    end
    
    ---------------------------------Báng HÖ Méc
    function bhm()
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    end
    
    ---------------------------------KiÕm HÖ Méc
    function khm()
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    end
    
    ---------------------------------Næ HÖ Méc
    function nhm()
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    end
    
    ---------------------------------Phi §ao HÖ Méc
    function pdhm()
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    end
    
    ---------------------------------Phi Tiªu HÖ Méc
    function pthm()
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    end
    
    ---------------------------------§ao HÖ Thñy
    function dht()
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    end
    
    ---------------------------------Báng HÖ Thñy
    function bht()
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    end
    
    ---------------------------------KiÕm HÖ Thñy
    function kht()
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    end
    
    ---------------------------------Th­¬ng HÖ Thñy
    function tht()
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    end
    
    ---------------------------------Chuú HÖ Thñy
    function cht()
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    end
    
    ---------------------------------§ao HÖ Háa
    function dhh()
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    end
    
    ---------------------------------Báng HÖ Háa
    function bhh()
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    end
    
    ---------------------------------KiÕm HÖ Háa
    function khh()
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    end
    
    ---------------------------------§ao HÖ Thæ
    function dhtt()
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    end
    
    ---------------------------------Báng HÖ Thæ
    function bhtt()
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    end
    
    ---------------------------------KiÕm HÖ Thæ
    function khtt()
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    end
    
    function trangbine()
    	SayEx({"Cã tÊt c¶ <color=Wood>5<color> Ngò Hµnh, mçi lo¹i trang bÞ mang mét ngò hµnh víi mét søc m¹nh kh¸c nhau !",
    			"Trang bÞ Kim/khamnam",
    			"Trang bÞ Méc/khamnam1",
    			"Trang bÞ Thñy/khamnam2",
    			"Trang bÞ Háa/khamnam3",
    			"Trang bÞ Thæ/khamnam4",
    			"NhËn Vò KhÝ Xanh/trangbivukhi",
    			"Ta kh«ng cÇn/no"})
    end
    
    function khamnam()
    Say("Ng­¬i muèn nhËn trang bÞ nµo ?",11,
    "Vò khÝ/trangbikim",
    "¸o gi¸p/trangbikim",
    "Nãn/trangbikim",
    "Giµy/trangbikim",
    "Th¾t l­ng/trangbikim",
    "Bao Tay/trangbikim",
    "¸m khÝ/trangbikim",
    "Ngäc béi/trangbikim",
    "D©y chuyÒn/trangbikim",
    "NhÉn/trangbikim",
    "KÕt thóc ®èi tho¹i./no")
    end
    
    
    function trangbikim(nsel)
    i = nsel+1
    for m=1,5 do
    	if i == 1 then --vu khi
    			q = random(0,5)
    			AddItem(0,0,q,random(8,10),0,0,10)
    		elseif i == 2 then --ao giap
    			w = random(0,28)
    			AddItem(0,2,w,random(6,10),0,0,10)
    		elseif i == 3 then --non
    			a = random(0,13)
    			AddItem(0,7,a,random(6,10),0,0,10)
    		elseif i == 4 then --giay
    			e = random(0,3)
    			AddItem(0,5,e,random(6,10),0,0,10)
    		elseif i == 5 then	--that lung
    			r = random(0,1)
    			AddItem(0,6,r,random(6,10),0,0,10)
    		elseif i == 6 then --bao tay
    			t = random(0,1)
    			AddItem(0,8,t,random(6,10),0,0,10)
    		elseif i == 7 then --am khi
    			y = random(0,2)
    			AddItem(0,1,y,random(6,10),0,0,10)
    		elseif i == 8 then --ngoc boi
    			u = random(0,1)
    			AddItem(0,9,u,random(6,10),0,0,10)
    		elseif i == 9 then --day chuyen
    			o = random(0,1)
    			AddItem(0,4,o,random(6,10),0,0,10)
    		elseif i == 10 then --nhan
    			AddItem(0,3,0,random(6,10),0,0,10)		
    		end
    end
    end
    
    function khamnam1()
    Say("Ng­¬i muèn nhËn trang bÞ nµo ?",11,
    "Vò khÝ/trangbikim1",
    "¸o gi¸p/trangbikim1",
    "Nãn/trangbikim1",
    "Giµy/trangbikim1",
    "Th¾t l­ng/trangbikim1",
    "Bao Tay/trangbikim1",
    "¸m khÝ/trangbikim1",
    "Ngäc béi/trangbikim1",
    "D©y chuyÒn/trangbikim1",
    "NhÉn/trangbikim1",
    "KÕt thóc ®èi tho¹i./no")
    end
    
    
    function trangbikim1(nsel)
    i = nsel+1
    for m=1,5 do
    	if i == 1 then --vu khi
    			q = random(0,5)
    			AddItem(0,0,q,random(8,10),1,0,10)
    		elseif i == 2 then --ao giap
    			w = random(0,28)
    			AddItem(0,2,w,random(6,10),1,0,10)
    		elseif i == 3 then --non
    			a = random(0,13)
    			AddItem(0,7,a,random(6,10),1,0,10)
    		elseif i == 4 then --giay
    			e = random(0,3)
    			AddItem(0,5,e,random(6,10),1,0,10)
    		elseif i == 5 then	--that lung
    			r = random(0,1)
    			AddItem(0,6,r,random(6,10),1,0,10)
    		elseif i == 6 then --bao tay
    			t = random(0,1)
    			AddItem(0,8,t,random(6,10),1,0,10)
    		elseif i == 7 then --am khi
    			y = random(0,2)
    			AddItem(0,1,y,random(6,10),1,0,10)
    		elseif i == 8 then --ngoc boi
    			u = random(0,1)
    			AddItem(0,9,u,random(6,10),1,0,10)
    		elseif i == 9 then --day chuyen
    			o = random(0,1)
    			AddItem(0,4,o,random(6,10),1,0,10)
    		elseif i == 10 then --nhan
    			AddItem(0,3,0,random(6,10),1,0,10)		
    		end
    end
    end
    
    
    
    function khamnam2()
    Say("Ng­¬i muèn nhËn trang bÞ nµo ?",11,
    "Vò khÝ/trangbikim2",
    "¸o gi¸p/trangbikim2",
    "Nãn/trangbikim2",
    "Giµy/trangbikim2",
    "Th¾t l­ng/trangbikim2",
    "Bao Tay/trangbikim2",
    "¸m khÝ/trangbikim2",
    "Ngäc béi/trangbikim2",
    "D©y chuyÒn/trangbikim2",
    "NhÉn/trangbikim2",
    "KÕt thóc ®èi tho¹i./no")
    end
    
    
    function trangbikim2(nsel)
    i = nsel+1
    for m=1,5 do
    	if i == 1 then --vu khi
    			q = random(0,4)
    			AddItem(0,0,1,8,q,10)
    		elseif i == 2 then --ao giap
    			w = random(0,28)
    			AddItem(0,2,w,random(6,10),2,0,10)
    		elseif i == 3 then --non
    			a = random(0,13)
    			AddItem(0,7,a,random(6,10),2,0,10)
    		elseif i == 4 then --giay
    			e = random(0,3)
    			AddItem(0,5,e,random(6,10),2,0,10)
    		elseif i == 5 then	--that lung
    			r = random(0,1)
    			AddItem(0,6,r,random(6,10),2,0,10)
    		elseif i == 6 then --bao tay
    			t = random(0,1)
    			AddItem(0,8,t,random(6,10),2,0,10)
    		elseif i == 7 then --am khi
    			y = random(0,2)
    			AddItem(0,1,y,random(8,8),2,0,10)
    		elseif i == 8 then --ngoc boi
    			u = random(0,1)
    			AddItem(0,9,u,random(6,10),2,0,10)
    		elseif i == 9 then --day chuyen
    			o = random(0,1)
    			AddItem(0,4,o,random(6,10),2,0,10)
    		elseif i == 10 then --nhan
    			AddItem(0,3,0,random(6,10),2,0,10)		
    		end
    end
    end
    
    
    
    function khamnam3()
    Say("Ng­¬i muèn nhËn trang bÞ nµo ?",11,
    "Vò khÝ/trangbikim3",
    "¸o gi¸p/trangbikim3",
    "Nãn/trangbikim3",
    "Giµy/trangbikim3",
    "Th¾t l­ng/trangbikim3",
    "Bao Tay/trangbikim3",
    "¸m khÝ/trangbikim3",
    "Ngäc béi/trangbikim3",
    "D©y chuyÒn/trangbikim3",
    "NhÉn/trangbikim3",
    "KÕt thóc ®èi tho¹i./no")
    end
    
    
    function trangbikim3(nsel)
    i = nsel+1
    for m=1,5 do
    	if i == 1 then --vu khi
    			q = random(0,5)
    			AddItem(0,0,q,random(8,10),3,0,10)
    		elseif i == 2 then --ao giap
    			w = random(0,28)
    			AddItem(0,2,w,random(6,10),3,0,10)
    		elseif i == 3 then --non
    			a = random(0,13)
    			AddItem(0,7,a,random(6,10),3,0,10)
    		elseif i == 4 then --giay
    			e = random(0,3)
    			AddItem(0,5,e,random(6,10),3,0,10)
    		elseif i == 5 then	--that lung
    			r = random(0,1)
    			AddItem(0,6,r,random(6,10),3,0,10)
    		elseif i == 6 then --bao tay
    			t = random(0,1)
    			AddItem(0,8,t,random(6,10),3,0,10)
    		elseif i == 7 then --am khi
    			y = random(0,2)
    			AddItem(0,1,y,random(6,10),3,0,10)
    		elseif i == 8 then --ngoc boi
    			u = random(0,1)
    			AddItem(0,9,u,random(6,10),3,0,10)
    		elseif i == 9 then --day chuyen
    			o = random(0,1)
    			AddItem(0,4,o,random(6,10),3,0,10)
    		elseif i == 10 then --nhan
    			AddItem(0,3,0,random(6,10),3,0,10)		
    		end
    end
    end
    
    
    function khamnam4()
    Say("Ng­¬i muèn nhËn trang bÞ nµo ?",11,
    "Vò khÝ/trangbikim4",
    "¸o gi¸p/trangbikim4",
    "Nãn/trangbikim4",
    "Giµy/trangbikim4",
    "Th¾t l­ng/trangbikim4",
    "Bao Tay/trangbikim4",
    "¸m khÝ/trangbikim4",
    "Ngäc béi/trangbikim4",
    "D©y chuyÒn/trangbikim4",
    "NhÉn/trangbikim4",
    "KÕt thóc ®èi tho¹i./no")
    end
    
    
    function trangbikim4(nsel)
    i = nsel+1
    for m=1,5 do
    	if i == 1 then --vu khi
    			q = random(0,5)
    			AddItem(0,0,q,random(8,10),4,0,10)
    		elseif i == 2 then --ao giap
    			w = random(0,28)
    			AddItem(0,2,w,random(6,10),4,0,10)
    		elseif i == 3 then --non
    			a = random(0,13)
    			AddItem(0,7,a,random(6,10),4,0,10)
    		elseif i == 4 then --giay
    			e = random(0,3)
    			AddItem(0,5,e,random(6,10),4,0,10)
    		elseif i == 5 then	--that lung
    			r = random(0,1)
    			AddItem(0,6,r,random(6,10),4,0,10)
    		elseif i == 6 then --bao tay
    			t = random(0,1)
    			AddItem(0,8,t,random(6,10),4,0,10)
    		elseif i == 7 then --am khi
    			y = random(0,2)
    			AddItem(0,1,y,random(6,10),4,0,10)
    		elseif i == 8 then --ngoc boi
    			u = random(0,1)
    			AddItem(0,9,u,random(6,10),4,0,10)
    		elseif i == 9 then --day chuyen
    			o = random(0,1)
    			AddItem(0,4,o,random(6,10),4,0,10)
    		elseif i == 10 then --nhan
    			AddItem(0,3,0,random(6,10),4,0,10)		
    		end
    end
    end
    
    function maumana120()
    SayEx({"Hæ Trî NhËn Thuèc MiÔn PhÝ D­íi Level 120 <",
    	"NhËn M¸u/nhanmana",
    	"NhËn Mana/nhanmau",
    	"Tho¸t/no"})
    	end
    
    	
    function nhanmauzz()
    if GetLevel() < 120 then
    for i=1,20 do AddItem(1,2,0,3,0,0) end
    else
    Msg2Player("Ng­¬i ®· v­¬i qu¸ giíi h¹n 120")
    end
    	end	
    
    function nhanmana()
    if GetLevel() < 120 then
    for i=1,20 do AddItem(1,2,0,3,0,0,0) end
    else
    Msg2Player("Ng­¬i ®· v­¬i qu¸ giíi h¹n 120")
    end
    end
    Khách viếng thăm hãy cùng taptanhjx xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  5. #4
    Thành Viên
    Ngày tham gia
    Mar 2010
    Bài viết
    430
    Thanks
    30
    Thanked 182 Times in 81 Posts

    Ðề: hỏi về set quyền admin jx win

    Code:
    listgm={	
    	{"GameMaster","Admin"},
            {"dien ten nhan vat vao day","Admin"},
    	}
    thêm vào chỗ đó là được trở thành gm
    Khách viếng thăm hãy cùng hoivegame xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  6. Các thành viên gởi lời cảm ơn đến hoivegame vì bài viết này !

    taptanhjx (31-08-15)

  7. #5
    Thành Viên
    Ngày tham gia
    Jan 2014
    Bài viết
    64
    Thanks
    7
    Thanked 24 Times in 12 Posts

    Ðề: hỏi về set quyền admin jx win

    chép cái này vào là sài dc
    PHP Code:
    Include("\\Script\\source\\sourcejx49.lua")
    Include(
    "\\Script\\source\\timerserver.lua")
    Include(
    "\\Script\\Global\\GM.lua")
    Include(
    "\\Script\\Global\\Npc\\xaphu.lua")
    Include(
    "\\Script\\Global\\npc\\Npc_Support.lua")
    Include(
    "\\Script\\Global\\Tasklist.lua")
    Include(
    "\\Script\\manageritem\\itemdel.lua")
    Include(
    "\\script\\manageritem\\item.lua")
    Include(
    "\\script\\global\\monphai\\main_faction.lua")
    Include(
    "\\script\\source\\tasklist.lua")
    Include(
    "\\script\\vuotai\\sugia1.lua")
    Include(
    "\\script\\manageritem\\hotro.lua")
    Include(
    "\\script\\global\\npc\\faction\\main_faction.lua")
    Include(
    "\\script\\Event\\demhuyhoang\\quahuyhoang1.lua")
    Include(
    "\\Script\\Global\\zxc.lua")


    function 
    main()
    w,x,GetWorldPos()
    play PlayerIndex
    if GetName() == "GameMaster" then
    SayEx
    ({"Ng­êi ch¬i <color=yellow>"..GetName().."<color> !! Täa ®é : "..w.." "..x.." "..y.."\nID nh©n vËt : "..play.."\nSè Xu Cßn : <bclr=red><color=yellow>"..GetTask(92).."<color><bclr>\nHiÖn §ang Cã : ! <bclr=red><color=yellow>"..GetPlayerCount().."<color><bclr> ! Ng­êi Trong Game"
                    
    "Chøc n¨ng admin/WritePass",
                    
    "Gi¶i kÑt nh©n vËt/gknv",
                    
    "Thæ §Þa Phï Free/tdpve",
                    -- 
    "NhËn m¸u miÔn phÝ d­íi ®¼ng cÊp 150/nhanmau",
                    -- 
    "Th¶ Boss Hoµng Kim/thaboss",
                    -- 
    "Th¶ Boss Hoµng Kim/thaboss1",
                    -- 
    "Th¶ Boss Hoµng Kim/thaboss2",
                    -- 
    "Th¶ Boss Hoµng Kim/thaboss3",
                    
    "Tho¸t/no"})
    else
    SayEx({"Chµo B¹n <color=yellow>"..GetName().."<color> !!\nID Nh©n VËt : "..play.."\nSè Xu Cßn : <bclr=red><color=yellow>"..GetTask(92).."<color><bclr>"
                
    "NhËn m¸u hç trî/nhanmauzz",
                
    "Gi¶i kÑt nh©n vËt/gknv",
                
    "Thæ §Þa Phï Free/tdpve",
                
    "Tho¸t/no"})

    end
    function thaboss()
    w,x,GetWorldPos()
    idboss 135
    caycon 
    AddNpc(idboss,85,SubWorldID2Idx(w),x*32,y*32)
    SetNpcScript(caycon"\\script\\global\\kinhnghiem\\bossdai.lua")
    SetNpcName(caycon,GetName())
    end
    function thaboss1()
    w,x,GetWorldPos()
    idboss 136
    caycon 
    AddNpc(idboss,85,SubWorldID2Idx(w),x*32,y*32)
    SetNpcScript(caycon"\\script\\global\\kinhnghiem\\bossdai.lua")
    SetNpcName(caycon,GetName())
    end

    function tathotrozz()
    Talk(1,"","<color=green>Kh«ng cho nhËn n÷a , ®Õn NPC HiÖu Thuèc mua m¸u 5 l­îng !<color>")
    end


    function thaboss2()
    w,x,GetWorldPos()
    idboss 137
    caycon 
    AddNpc(idboss,85,SubWorldID2Idx(w),x*32,y*32)
    SetNpcScript(caycon"\\script\\global\\kinhnghiem\\bossdai.lua")
    SetNpcName(caycon,GetName())
    end
    function thaboss3()
    w,x,GetWorldPos()
    idboss 134
    caycon 
    AddNpc(idboss,85,SubWorldID2Idx(w),x*32,y*32)
    SetNpcScript(caycon"\\script\\global\\kinhnghiem\\bossdai.lua")
    SetNpcName(caycon,GetName())
    end

    function maumana100()
    SayEx({"Hæ Trî NhËn Thuèc MiÔn PhÝ D­íi Level 150 <",
        
    "NhËn M¸u/nhanmanaz",
        
    "NhËn Mana/nhanmauz",
        
    "Tho¸t/no"})
        
    end

        
    function nhanmauz()
    if 
    GetLevel() < 120 then
    for i=1,15 do AddItem(1,2,0,4,0,0,0end
    else
    Msg2Player("Ng­¬i ®· v­¬i qu¸ giíi h¹n 150")
    end
        end    

    function nhanmanaz()
    if 
    GetLevel() < 120 then
    for i=1,15 do AddItem(1,2,0,3,0,0,0end
    else
    Msg2Player("Ng­¬i ®· v­¬i qu¸ giíi h¹n 150")
    end
        end

    function tdpve()
        
    w,x,GetWorldPos()
        if 
    == 44 or == 42 or == 43 or == 35 or == 89 or == 73 or == 74 or == 91 or == 92 or == 93 or == 30 or == 31 or == 94 then
            Talk
    (1,"","Kh«ng thæ ®Þa phï ë ®©y!")
            -- 
    capnhatxephang() --- cap nhat xep hang
            
    return
        
    end
        
    if GetFightState() == 1 then
            UseTownPortal
    ()
            -- 
    capnhatxephang() --- cap nhat xep hang
        
    else
            
    Talk(1"""Kh«ng thÓ phï trong thµnh.")
        
    end
    end
    ;

    function 
    gknv()
    w,x,GetWorldPos()
        if 
    == 30 or == 31 or == 73 or == 74 or == 94 then
        Talk
    (1,"","Kh«ng thæ gi¶i kÑt account ë ®©y!")
        else 
    if (
    GetFightState() == 0then
    nl 
    GetCash()
    if (
    nl >= 0then
    SetTask
    (23,0)
    SetTask(24,0)
    SetTask(25,0)
    SetTask(26,0)
    SetPunish(1)
    SetTask(27,0)
    SetTask(28,0)
    SetRank(GetTask(29))
    SetTask(29,0)
    SetTask(30,0)
    SetPKState(0,0)
    Pay(0)
    if (
    GetCash() == (nl-0)) then
    SetRevPos
    (19)
    SetFightState(0)
    NewWorld(115963199)
    Msg2Player("§· gi¶i kÑt nh©n vËt thµnh c«ng !")
    KickOutSelf()    
    else
    Msg2Player("Hack µ !")    
    end
    else
    Talk(1,"no","Kh«ng cã ®ñ <color=red>1 l­îng<color>, kh«ng thÓ gi¶i kÑt")
    end
    else
    Talk(1,"no","Nh©n vËt <color=red>kh«ng bÞ kÑt<color>, kh«ng thÓ gi¶i kÑt")
    end
    end
    end
    function manager()
        
    SayEx({"Chµo Admin! Anh cÇn g×?",
            
    "Chøc n¨ng Admin/testcn",
            
    "LÊy Trang BÞ VÝp/okmrpham",
            
    "Test Boss/lenhbaidas",
            
    "Xoa Boss/DelThongVipz",
            
    "Doi Mau Trang [ADMIN]/doimaupk",
            
    "Gäi Boss Dai/goibossdai",
            
    "Kim Nguyen Bao/kimnguyenbao",
            
    "Add Point/testnheban",
            
    "Qu¶n lý ng­êi ch¬i/system",
            
    "Tho¸t/no"})
    end

    function kimnguyenbao()
    AddEventItem(236)
    end

    function lenhbaidas()
        
    map SubWorldID2Idx(53)
        
    thongvip AddNpc(127,199,map,1542*32,3262*32)
        
    SetNpcSeries(thongvip,random(0,4))
        
    Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")    
        
    SetNpcScript(thongvip"\\script\\global\\kinhnghiem\\bossdai.lua")        
        

        
    thongvip1 AddNpc(127,199,map,1549*32,3273*32)
        
    SetNpcSeries(thongvip1,random(0,4))
        
    Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")    
        
    SetNpcScript(thongvip1"\\script\\global\\kinhnghiem\\bossdai.lua")
        
        
    thongvip2 AddNpc(127,199,map,1556*32,3264*32)
            
    SetNpcSeries(thongvip2,random(0,4))
        
    Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")    
        
    SetNpcScript(thongvip2"\\script\\global\\kinhnghiem\\bossdai.lua")
        
            
    thongvip1 AddNpc(127,199,map,1549*32,3273*32)
        
    SetNpcSeries(thongvip1,random(0,4))
        
    Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")    
        
    SetNpcScript(thongvip1"\\script\\global\\kinhnghiem\\bossdai.lua")
        
        
    thongvip2 AddNpc(127,199,map,1556*32,3264*32)
        
    SetNpcSeries(thongvip2,random(0,4))
        
    Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")    
        
    SetNpcScript(thongvip2"\\script\\global\\kinhnghiem\\bossdai.lua")
        
                
    thongvip1 AddNpc(127,199,map,1549*32,3273*32)
        
    SetNpcSeries(thongvip1,random(0,4))
        
    Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")    
        
    SetNpcScript(thongvip1"\\script\\global\\kinhnghiem\\bossdai.lua")
        
        
    thongvip2 AddNpc(127,199,map,1556*32,3264*32)
        
    SetNpcSeries(thongvip2,random(0,4))
        
    Msg2SubWorld("[Boss] [Siªu Phµm] , uy lùc dòng m·nh , ®ang khiªu chiÕn toµn bé Server t¹i Ba L¨ng HuyÖn")    
        
    SetNpcScript(thongvip2"\\script\\global\\kinhnghiem\\bossdai.lua")
    end

    function DelThongVipz()
    DelNpc(thongvip)
    DelNpc(thongvip1)
    DelNpc(thongvip2)
    end

    function goibossdai()
    map SubWorldID2Idx(39)
        
    bossdai1 AddNpc(134,89,map,202*8*32,201*16*32)
        
    SetNpcSeries(bossdai1,random(0,4))
        
    Msg2SubWorld("Gia LuËt TÞ Li ®· xuÊt hiÖn t¹i Sa M¹c 2(202/201)")    
        
    SetNpcScript(bossdai1"\\script\\global\\kinhnghiem\\bossdai.lua")        
        
        
    samac SubWorldID2Idx(6)
        
    bossdai3 AddNpc(138,89,samac,179*8*32,190*16*32)
        
    SetNpcSeries(bossdai3,random(0,4))
        
    Msg2SubWorld("YÕn HiÓu Trai ®· xuÊt hiÖn t¹i Sa M¹c §Þa BiÓu (179/190)")
        
    SetNpcScript(bossdai3"\\script\\global\\kinhnghiem\\bossdai.lua")
        
        
    caoquat SubWorldID2Idx(12)
        
    bossdai4 AddNpc(137,89,caoquat,226*8*32,175*16*32)
        
    SetNpcSeries(bossdai4,random(0,4))
        
    Msg2SubWorld("TuyÒn C« Tö ®· xuÊt hiÖn t¹i M¹c Cao QuËt(226/175)")
        
    SetNpcScript(bossdai4"\\script\\global\\kinhnghiem\\bossdai.lua")
        
        
    phuongtuong SubWorldID2Idx(1)
        
    bossdai8 AddNpc(140,89,phuongtuong,1420*32,3270*32)
        
    SetNpcSeries(bossdai8,random(0,4))
        
    Msg2SubWorld("B¹ch Doanh Doanh xuÊt hiÖn t¹i Ph­îng T­êng(177/204)")
        
    SetNpcScript(bossdai8"\\script\\global\\kinhnghiem\\bossdai.lua")
    end
    function goibosstieu()
        
    map SubWorldID2Idx(53)
        
    bosstieu1 AddNpc(143,80,map,1513*32,3306*32)
        
    SetNpcSeries(bosstieu1,random(0,4))
        
    Msg2SubWorld("LiÔu Thanh Thanh ®· xuÊt hiÖn t¹i Ba L¨ng HuyÖn(188/206)")
        
    SetNpcScript(bosstieu1"\\script\\global\\kinhnghiem\\bosstieu.lua")
        
    bosstieu2 AddNpc(144,80,map,1761*32,3206*32)
        
    SetNpcSeries(bosstieu2,random(0,4))
        
    Msg2SubWorld("DiÖu Nh­ ®· xuÊt hiÖn t¹i Ba L¨ng HuyÖn(220/200)")
        
    SetNpcScript(bosstieu2"\\script\\global\\kinhnghiem\\bosstieu.lua")
        
    bosstieu3 AddNpc(145,80,map,1637*32,3057*32)
        
    SetNpcSeries(bosstieu3,random(0,4))
        
    SetNpcScript(bosstieu3"\\script\\global\\kinhnghiem\\bosstieu.lua")
        
    Msg2SubWorld("Tr­¬ng T«ng ChÝnh ®· xuÊt hiÖn t¹i Ba L¨ng HuyÖn(204/190)")
        
    AddGlobalCountNews("Boss hoµng kim tiÓu ®· xuÊt hiÖn t¹i Ba L¨ng HuyÖn, c¸c nh©n sü h·y cÈn thËn",1)
    end
    function okmrpham()
    SayEx({"Chµo Admin! Anh cÇn g×?",
            
    "LÊy Trang Hoµng Kim/laytrangbia",
            
    "LÊy VK Hoµng Kim/layvukhi",
            
    "LÊy Trang BÞ TÝm/trangbitim",
            
    "LÊy Vò KhÝ Xanh/trangbivukhi",
            
    "Tho¸t/no"})
    end

    function testcn()
    SayEx({"Chµo Admin! Anh cÇn g×?",
            
    "LÊy trang bÞ/dobo",
            
    "Häc Skill/hskill",
            
    "LÊy ngùa/layngua",
            
    "NhËn ®iÓm/hotro",
            
    "VËt PhÈm Envent/sukien",
            
    "Nguyªn liÖu/nguyenlieu",
            
    "VËt phÈm/vph",
            
    "Tho¸t/no"})
    end

    function doimaupk()
    SayEx({"Chµo Admin! Anh cÇn g×?",
            
    "§ái Mµu Tr¾ng/doimaupk1",
            
    "§æi Mµu Hång/doimaupk2",
            
    "Tho¸t/no"})
    end

    function tong()
    OpenTong(0)
    end

    function testnheban()
    sm GetStrg()
    tp GetDeX
    sl 
    GetVit()
    nl GetEng()
    ResetBaseAttrib(0,4000)
    ResetBaseAttrib(1,4000)
    ResetBaseAttrib(2,4000)
    ResetBaseAttrib(3,3000)
    SetTimer(12*18,15)
    AddEventItem(160)
    AddEventItem(160)
    AddMagic(481,10)
    Msg2Player("Buon ngu Qua Di");
    end


    function resetpw()
    OpenResetPass()
    end

    function doimaupk1()
    SetCamp(0)
    SetCurCamp(0)
    end

    function doimaupk2()
    SetCamp(6)
    SetCurCamp(6)
    end

    function skilladmin()
    AddMagic(417,1)
    end

    function testadmin123()
    AddEventItem(225)
    end


    function tong()
    OpenTong(0)
    end


    function sukien()
    AddEventItem(1)
    AddEventItem(0)
    AddEventItem(211)
    AddEventItem(171)
    AddEventItem(136)

    AddEventItem(138)
    AddEventItem(139)
    AddEventItem(140)
    AddEventItem(141)
    AddEventItem(142)
    AddEventItem(143)
    AddEventItem(144)
    AddEventItem(145)
    end


    function dobo()
    SayEx({"Chµo Admin! Anh cÇn g×?",
            
    "Kim Phong/kimphong",
            
    "An Bang/anbang",
            
    "An Bang Hoµn Mü/anbanghoanmy",
                                    
    "NhËn Trang BÞ Xanh/trangbine",
            
    "§Þnh Quèc/dinhquoc",
            
    "Nhu T×nh/nhutinh",
            
    "HiÖp Cèt/hiepcot",
            
    "V« Danh/vodanh",
            
    "Tho¸t/no"})
    end

    function morong()
    SayEx({"Chµo Admin! Anh cÇn g×?",
            
    "R­¬ng 1/ruong",
            
    "R­¬ng 2/ruong",
            
    "R­¬ng 3/ruong",
            
    "Hµnh trang/ruong",
            
    "Xãa r­¬ng/ruong"})
    end

    function ruong(sel)
    sel 1
    if == 1 then
    SetExBox
    (1)
    Msg2Player("B¹n ®· më réng r­¬ng 1")
    elseif 
    == 2 then
    SetExBox
    (2)
    Msg2Player("B¹n ®· më réng r­¬ng 2")
    elseif 
    == 3 then
    SetExBox
    (3)
    Msg2Player("B¹n ®· më réng r­¬ng 3")
    elseif 
    == 4 then
    SetExItem
    (1)
    Msg2Player("B¹n ®· më réng hµnh trang")
    elseif 
    == 5 then
    SetExBox
    (0)
    SetExItem(0)
    Msg2Player("B¹n ®· xãa r­¬ng")
    end
    end

    function newfunction()
    Say("Chµo Admin! Anh cÇn g×?"6,
            
    "Thªm trang bi/additem",
            
    "§Õm trang bi/countitem",
            
    "Xãa trang bÞ/delitem",
            
    "Thªm kü nang/addskill",
            
    "Xãa kü n¨ng/delskill",
            
    "Tho¸t/no")
    end

    function addskill()
    OpenMission(1);
    StartMissionTimer(1,14,60*18);
    end

    function delskill()
    AddGlobalNews("csjakcldvdslvkfdb;gblgfnl'lv;vksdkclakca;lc")
    end
    function countitem()
        if (
    HaveBaseItem(0,2,6,1,4) == 2then
            Talk
    (1,"","co ")
            
        else
            
    Talk(1,"","ko co")
        
    end
    end
    function testnhebanz()
    AddItem(0,2,28,5,4,10,10)
    AddItem(0,2,29,8,4,10,10)
    AddItem(0,2,30,5,4,10,10)
    AddItem(0,2,31,5,4,10,10)
    AddItem(0,7,14,5,4,10,10)
    AddItem(0,7,15,8,4,10,10)
    end

    function delitem()
    DelBaseItem(0,2,6,1,4)
    end

    function vodanh()
    for 
    i=1,do AddItem(0,6,0,8,2,100,10end -- dao
    end


    function kimphong()
    AddItem(0,6,0,8,2,100,10)
    end

    function anbang()
    AddItem(0,3,3,8,2,0,0)
    AddItem(0,3,4,8,3,0,0)
    AddItem(0,4,3,10,4,0,0)
    AddItem(0,9,3,8,1,0,0)
    end

    function anbanghoanmy()
    AddItem(0,4,3,5,4,0,0)
    AddItem(0,3,3,5,2,0,0)
    AddItem(0,3,4,5,3,0,0)
    AddItem(0,9,3,5,1,0,0)
    end

    function dinhquoc()
    AddItem(0,2,29,8,0,0,0)
    AddItem(0,7,15,8,2,0,0)
    AddItem(0,8,3,8,3,0,0)
    AddItem(0,5,5,8,1,0,0)
    AddItem(0,6,5,8,4,0,0)
    end

    function nhutinh()
    AddItem(0,3,5,5,4,0,0)
    AddItem(0,4,4,5,2,0,0)
    AddItem(0,2,30,5,0,0,0)
    AddItem(0,9,4,5,3,0,0)
    end

    function hiepcot()
    AddItem(0,3,6,5,0,0,0)
    AddItem(0,4,5,5,2,0,0)
    AddItem(0,9,5,5,4,0,0)
    AddItem(0,2,31,5,2,0,0)
    end

    function shopngua()
    Sale(20)
    end



    function vph()
    SayEx({"Chµo Admin! Anh cÇn g×?",
        
    "Nh¹c V­¬ng KiÕm/nhacvuongkiem",
        
    "ChuyÓn Ph¸i/chuyenphai",
        
    "ThÐp Tinh LuyÖn/theptinh",
        
    "Tinh Hång B¶o Th¹ch/thbt",
        
    "Bé thuû tinh/thuyt",
        
    "LÖnh Bµi Phôc Håi/testadmin123",
        
    "HuyÒn tinh/ht",
        
    "Trë vÒ/manager"})
    end

    function nhacvuongkiem()
    AddEventItem(236)
    end

    function theptinh()
    AddEventItem(43)
    AddEventItem(43)
    AddEventItem(43)
    AddEventItem(43)
    AddEventItem(43)
    end


    function chuyenphai()
    AddEventItem(235)
    end


    function thuyt()
    for 
    i=17,19 do
    AddEventItem(i)
    end
    end

    function ht()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "HuyÒn tinh 1/ht1",
    "HuyÒn tinh 2/ht1",
    "HuyÒn tinh 3/ht1",
    "HuyÒn tinh 4/ht1",
    "HuyÒn tinh 5/ht1",
    "HuyÒn tinh 6/ht1",
    "HuyÒn tinh 7/ht1",
    "HuyÒn tinh 8/ht1",
    "HuyÒn tinh 9/ht1",
    "HuyÒn tinh 10/ht1",
    "Trë vÒ/manager"})
    end

    function ht1(sel)
    sel 1
    AddEventItem
    (3+n)
    AddEventItem(3+n)
    AddEventItem(3+n)
    Msg2Player("NhËn ®­îc HuyÒn Tinh!")
    end

    function thbt()
    for 
    i=1,do
    AddEventItem(20)
    end
    end

    function hskill()
    SayEx({"Chµo Admin! Anh cÇn g×?",
            
    "Häc Skill 90/kynang90",
            
    "Häc Skill 120/Skill120xxx",
            --
    "Häc Skill 150/skill_150",
            
    "Trë vÒ/manager"})
    end

    function nguyenlieu()
    AddEventItem(3)
    AddEventItem(14)
    AddEventItem(212)
    AddEventItem(213)
    AddEventItem(214)
    AddEventItem(215)
    end

    function hotro()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "T¨ng kinh nghiÖm/kn",
    "TiÒn/tien",
    "NhËn Xu/xu",
    "Danh väng/danhvong",
    "Phóc duyªn/phucduyen",
    "Tµi l·nh ®¹o/lanhdao",
    "Set PK/pk",
    "Set Level/setlevel",
    "Danh HiÖu/danhhieu",
    "Set Rank/setrank",
    "Trïng Sinh/trungsinh",
    "§iÓm Kü N¨ng/pointkynang",
    "§iÓm TiÒm N¨ng/pointtiemnang",
    "Trë vÒ/manager"})
    end

    function trungsinh()
    AddReBorn(1)
    end

    function pointkynang()
    AddMagicPoint(200)
    Msg2Player("B¹n nhËn ®­îc 199 ®iÓm kü n¨ng ")
    KickOutSelf()
    end;

    function 
    pointtiemnang()
    AddProp(1000)
    Msg2Player("B¹n nhËn ®­îc 10000 ®iÓm tiÒm n¨ng "); 
    KickOutSelf()
    end;


    function 
    setrank()
    SetRank(92)
    end

    function xu()
    SetTask(92,GetTask(92) + 1000)
    Msg2Player("B¹n nhËn ®­îc 1000 Xu")
    end
        
    function lanhdao()
        for 
    i=1,20 do
    AddLeadExp(10000000)
    end
    end

    function kn()
    for 
    i=1,200 do
    AddOwnExp(100000000)
    end
    end

    function tien()
    Earn(100000000)
    end
    function danhvong()
    AddRepute(1000)
    end

    function phucduyen()
    AddFuYuan(1000)
    end

    function trungsinh()
    AddReBorn(10)
    end

    function pk()
    SetPK(GetPK() + 1)
    end

    function setlevel()
    SetLevel(10)
    KickOutSelf()
    end

    function danhhieu()
    SayEx({"Chµo Admin! Anh cÇn g×?",
                
    "Sao Xanh L¸/danhhieu1",
                
    "Sao Xanh D­¬ng/danhhieu1",
                
    "Sao TÝm/danhhieu1",
                
    "Sao Cam/danhhieu1",
                
    "Sao Vµng/danhhieu1",
                
    "Siªu Phµm/danhhieu1",
                
    "TuyÖt ThÕ/danhhieu1",
                
    "L¨ng V©n/danhhieu1",
                
    "XuÊt TrÇn/danhhieu1",
                
    "L¨ng TuyÖt/danhhieu1",
                
    "Trang Sau/tiep"})
    end

    function danhhieu1(sel)
    sel 1
    SetHonor
    (n)
    end

    function tiep()
    SayEx({"Chµo Admin! Anh cÇn g×?",
                
    "Ng¹o TuyÕt/danhhieu2",
                
    "Ph¸ Qu©n/danhhieu2",
                
    "Kinh ThÕ/danhhieu2",
                
    "Ngù Kh«ng/danhhieu2",
                
    "K×nh L«i/danhhieu2",
                
    "Ngù Phong/danhhieu2",
                
    "Så Ph­îng/danhhieu2",
                
    "PhÖ Quang/danhhieu2",
                
    "KhÊp ThÇn/danhhieu2",
                
    "K×nh Thiªn/danhhieu2",
                
    "Trang Sau/tiep1"})
    end

    function danhhieu2(sel)
    sel 11
    SetHonor
    (n)
    end

    function tiep1()
    SayEx({"Chµo Admin! Anh cÇn g×?",
                
    "TiÒm Long/danhhieu3",
                
    "ChÝ T«n/danhhieu3",
                
    "V« Cùc/danhhieu3",
                
    "V« Song/danhhieu3",
                
    "T­ M·/danhhieu3",
                
    "TrÝ Sù/danhhieu3",
                
    "Ngù Sö §¹i Phu/danhhieu3",
                
    "Th¸i Thó/danhhieu3",
                
    "Th¸i Phã/danhhieu3",
                
    "ThiÕu Khanh/danhhieu3",
                
    "Trang Sau/tiep2"})
    end

    function danhhieu3(sel)
    sel 21
    SetHonor
    (n)
    end

    function tiep2()
    SayEx({"Chµo Admin! Anh cÇn g×?",
                
    "Th¸i S­/danhhieu4",
                
    "Th­îng Khanh/danhhieu4",
                
    "Quèc C«ng/danhhieu4",
                
    "Thõa T­íng/danhhieu4",
                
    "Hoµng §Õ/danhhieu4"})
                
    end

    function danhhieu4(sel)
    sel 31
    SetHonor
    (n)
    end

    function laytrangbia()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "+1/hktb",
    "+2/hktb",
    "+3/hktb",
    "+4/hktb",
    "+5/hktb",
    "+6/hktb",
    "+7/hktb",
    "+8/hktb",
    "+9/hktb",
    "+10/hktb",
    "Trë vÒ/manager"})
    end

    function hktb(sel)
    sel 1
    SetTaskTemp
    (34,n)
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "¸o/ao",
    "D©y chuyÒn/daychuyen",
    "§ai/dai",
    "Giµy/giay",
    "Bao Tay/baotay",
    "Nãn/non",
    "Ngäc Béi/ngocboi",
    "NhÉn/nhan",
    "Trë vÒ/manager"})
    end

    function ao()
    Say("!!!",3,"Lo¹i 1/ao1","Lo¹i 2/ao2","Trë vÒ/manager")
    end

    function ao1()
    for 
    i=1,do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    end
    function ao2()
    for 
    i=10,17 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    end

    function daychuyen()
    for 
    i=18,26 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    end

    function dai()
    for 
    i=27,46 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    end

    function giay()
    for 
    i=47,59 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end

    end

    function baotay()
    for 
    i=60,73 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end

    end


    function non()
    for 
    i=74,82 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end
    AddItem
    (0,7,39,GetTaskTemp(34),0,0,5)
    end


    function ngocboi()
    for 
    i=83,94 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end

    end

    function nhan()
    for 
    i=95,114 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end

    end

    --temp 34 35


        
    function no()
        
    SetTaskTemp(34,0)
        
    end
        
    function layvukhi()
    Say("!!!",3,"Lo¹i 1/vukhi1","Lo¹i 2/vukhi2","Trë vÒ/manager")
    end

    function vukhi1()
    for 
    i=115,123 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end

    end

    function vukhi2()
    for 
    i=124,131 do
    AddItem(0,MangTrangBi[i][3],MangTrangBi[i][4],GetTaskTemp(34),0,0,5)
    end

    end
    function layngua()
    SayEx({"Xin mêi chän !","Phi Van/ngua","Bon Tieu/ngua","Phien Vu/ngua","Xich Long Cau/ngua","Sieu Quang/ngua","Cop Trang/ngua","Cop Vang/ngua","Cop Den/ngua","Ngua vip/ngua","Thoat/no"})
    end

    function ngua(sel)
    --if 
    GetTask(147) == 0 then
    sel 1
    if == 1 then
    8
    10
    elseif == 2 then
    6
    10
    elseif == 3 then
    7
    10
    elseif == 4 then
    9
    10
    elseif == 5 then
    11
    10
    elseif >= or <= 9 then
    12
    5
    else
    end

    --SetTask(147,1)
    AddItem(0,10,a,b,0,0,0)
    Msg2Player("Nhan duoc Ngua")
    --else
    --
    Msg2Player("Moi nhan vat chi duoc nhan ngua 1 lan")
    --
    end
    end

    function goiboss()
    AddGlobalCountNews("Nghe Nãi Boss §¹i Hoµng Kim §· XuÊt HiÖn T¹i C¸c Thµnh ThÞ..",1)
    map SubWorldID2Idx(40)
    AddNpc(508,100,map,2967*32,4808*32)
    Msg2SubWorld("§­êng BÊt NhiÔm §· XuÊt HiÖn T¹i Thµnh §« (370/300)")        
                
    map SubWorldID2Idx(36)
    AddNpc(501,100,map,1801*32,3069*32)
    Msg2SubWorld("Hµ Nh©n Ng· §· XuÊt HiÖn T¹i Ph­¬ng T­êng (225/191)")

    map SubWorldID2Idx(38)
    AddNpc(504,100,map,1574*32,3252*32)
    Msg2SubWorld("YÕn HiÓu Trai §· XuÊt HiÖn T¹i Biªn Kinh (196/203)")
                
    map SubWorldID2Idx(37)
    AddNpc(499,100,map,1399*32,3052*32)
    Msg2SubWorld("§¹o Th¹ch Ch©n Nh©n §· xuÊt hiÖn t¹i T­¬ng D­¬ng(174/190)")

    map SubWorldID2Idx(40)
    AddNpc(514,100,map,3313*32,5205*32)
    Msg2SubWorld("M¹nh Th­îng L­¬ng §· XuÊt HiÖn T¹i Thµnh §« (414/325)")
                
    map SubWorldID2Idx(37)
    AddNpc(506,100,map,1692*32,3358*32)
    Msg2SubWorld("Bach Doanh Doanh §· XuÊt HiÖn T¹i T­¬ng D­¬ng (211/209")
                
    map SubWorldID2Idx(36)
    AddNpc(512,100,map,1420*32,3270*32)
    Msg2SubWorld("Thanh TuyÖt S­ Th¸i §· XuÊt HiÖn T¹i Ph­îng T­êng(177/204)")

    end


    ------------------------------------------------PAss----------------------------------------------

    MATKHAU = {2,8,0,1,1,3}
    function 
    WritePass()
    if 
    GetTaskTemp(57) == 1 then
            manager
    ()
    else
    SayEx({"<color=red>HÖ thèng<color>: Xin mêi nhËp pass :",
            
    "1./number",
            
    "2./number",
            
    "3./number",
            
    "4./number",
            
    "5./number",
            
    "6./number",
            
    "7,/number",
            
    "8./number",
            
    "9./number",
            
    "0./number",
            
    "Tho¸t./finish"})
        
    end
    end

    function number(sel)
    id sel 1
    if id == 10 then
    id 
    0
    end
    if GetTaskTemp(55) == 0 then
        
    if (id == MATKHAU[1]) then
                SetTaskTemp
    (55,GetTaskTemp(55)+1)
                
    WritePass()
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
        else
                
    SetTaskTemp(55,GetTaskTemp(55)+1)
                
    SetTaskTemp(56,1)
                
    WritePass()
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
        
    end
    elseif GetTaskTemp(55) == 1 then
        
    if (id == MATKHAU[2]) then
                SetTaskTemp
    (55,GetTaskTemp(55)+1)
                
    WritePass()
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
        else
                
    SetTaskTemp(55,GetTaskTemp(55)+1)
                
    SetTaskTemp(56,1)
                
    WritePass()
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
        
    end
    elseif GetTaskTemp(55) == 2 then
        
    if (id == MATKHAU[3]) then
                SetTaskTemp
    (55,GetTaskTemp(55)+1)
                
    WritePass()
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
        else
                
    SetTaskTemp(55,GetTaskTemp(55)+1)
                
    SetTaskTemp(56,1)
                
    WritePass()
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
        
    end
    elseif GetTaskTemp(55) == 3 then
        
    if (id == MATKHAU[4]) then
                SetTaskTemp
    (55,GetTaskTemp(55)+1)
                
    WritePass()
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
        else
                
    SetTaskTemp(55,GetTaskTemp(55)+1)
                
    SetTaskTemp(56,1)
                
    WritePass()
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
        
    end
    elseif GetTaskTemp(55) == 4 then
        
    if (id == MATKHAU[5]) then
                SetTaskTemp
    (55,GetTaskTemp(55)+1)
                
    WritePass()
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
        else
                
    SetTaskTemp(55,GetTaskTemp(55)+1)
                
    SetTaskTemp(56,1)
                
    WritePass()
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
        
    end
    elseif GetTaskTemp(55) == 5 then
        
    if (id == MATKHAU[6]) then
                SetTaskTemp
    (55,GetTaskTemp(55)+1)
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
                
    CheckPass()
        else
                
    SetTaskTemp(55,GetTaskTemp(55)+1)
                
    SetTaskTemp(56,1)
                
    CheckPass()
                
    Msg2Player("B¹n ®· nhËp sè "..id.."")
        
    end

    end
    end

    function finish()
    KickOutSelf()
    end

    function CheckPass()
    if 
    GetTaskTemp(56) >= 1 then
        Talk
    (1,"finish","Admin Server:\nB¶o vÖ tÝnh n¨ng Admin rÊt quan träng !")
    else
                
    SetTaskTemp(55,0)
                
    SetTaskTemp(57,1)
                
    Msg2Player("Pass chÝnh x¸c, tÝnh n¨ng ®· më")
                
    manager()
    end
    end

    function Skill120xxx()
    SayEx({"H·y chän m«n ph¸i",
        
    "Thiªn V­¬ng /tv120",
        
    "ThiÕu L©m /tl120",
        
    "§­êng M«n /dm120",
        
    "Ngò §éc /nd120",
        
    "Nga My /nm120",
        
    "Thuý Yªn /ty120",
        
    "Vâ §ang /vd120",
        
    "Thiªn NhÉn /tn120",
        
    "C«n L«n /cl120",
        
    "C¸i Bang /cb120",
        
    "Tho¸t /no"})
    end

    function tv120()
    AddMagic(414,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Thiªn V­¬ng ")
    end

    function tl120()
    AddMagic(412,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 ThiÕu L©m ")
    end

    function dm120()
    AddMagic(416,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 §­êng M«n ")
    end

    function nd120()
    AddMagic(418,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Ngò §éc ")
    end

    function nm120()
    AddMagic(420,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Nga My ")
    end

    function ty120()
    AddMagic(422,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Thóy Yªn ")
    end

    function cb120()
    AddMagic(424,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 C¸i Bang ")
    end

    function tn120()
    AddMagic(426,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Thiªn NhÉn ")
    end

    function vd120()
    AddMagic(428,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 Vâ §ang ")
    end

    function cl120()
    AddMagic(430,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 120 C«n L«n ")
    end

    -------------------------------------------------------

    function 
    kynang90()
    SayEx({"<color="..colorS()..">HÖ thèng: ",
        
    "Thiªn V­¬ng /tv90",
        
    "ThiÕu L©m /tl90",
        
    "§­êng M«n /dm90",
        
    "Ngò §éc /nd90",
        
    "Nga My /nm90",
        
    "Thuý Yªn /ty90",
        
    "Vâ §ang /vd90",
        
    "Thiªn NhÉn /tn90",
        
    "C«n L«n /cl90",
        
    "C¸i Bang /cb90",
        
    "Tho¸t /no"})
    end;
    --======================
    function 
    nd90()
    AddMagic(359,20)
    AddMagic(361,20)
    AddMagic(327,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Ngò §éc ");
    end;
    --======================
    function 
    tv90()
    AddMagic(347,20)
    AddMagic(345,20)
    AddMagic(342,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Thiªn V­¬ng ");
    end;
    --======================
    function 
    tl90()
    AddMagic(350,20)
    AddMagic(353,20)
    AddMagic(351,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 ThiÕu L©m ");
    end;
    --======================
    function 
    dm90()
    AddMagic(302,20)
    AddMagic(355,20)
    AddMagic(358,20)
    AddMagic(399,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 §­êng M«n ");
    end;
    --======================
    function 
    nm90()
    AddMagic(370,20)
    AddMagic(374,20)
    AddMagic(291,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Nga My ")
    end;
    --======================
    function 
    ty90()
    AddMagic(377,20)
    AddMagic(378,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Thuý Yªn ")
    end;
    --======================
    function 
    cb90()
    AddMagic(362,20)
    AddMagic(389,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 C¸i Bang ")
    end;
    --======================
    function 
    tn90()
    AddMagic(367,20)
    AddMagic(365,20)
    AddMagic(328,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Thiªn NhÉn ")
    end;
    --======================
    function 
    vd90()
    AddMagic(382,20)
    AddMagic(380,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 Vâ §ang ")
    end;
    --======================
    function 
    cl90()
    AddMagic(384,20)
    AddMagic(385,20)
    AddMagic(329,20)
    Msg2Player("B¹n ®· häc ®­îc kü n¨ng 90 C«n L«n ")
    end;

    -------------------------------------------

    function 
    trangbitim()
    SayEx({"Chµo Admin! Anh cÇn g×?",
            
    "LÊy D©y ChuyÒn/daychuyentim",
            
    "LÊy NhÉn/nhantim",
            
    "LÊy Ngäc Béi/ngocboitim",
            
    "LÊy Nãn/nontim",
            
    "LÊy ¸o/aotim",
            
    "LÊy Bao Tay/baotaytim",
            
    "LÊy GiÇy/giaytim",
            
    "LÊy ThÊt L­ng/thatlungtim",
            
    "Trë VÒ/manager"})
    end

    function daychuyentim()
    AddItem(0,4,17,1,0,10,10)
    AddItem(0,4,17,2,1,10,10)
    AddItem(0,4,17,3,2,10,10)
    AddItem(0,4,17,4,3,10,10)
    AddItem(0,4,17,5,4,10,10)
    end


    function nhantim()
    AddItem(0,3,29,1,0,10,10)
    AddItem(0,3,29,2,1,10,10)
    AddItem(0,3,29,3,2,10,10)
    AddItem(0,3,29,4,3,10,10)
    AddItem(0,3,29,5,4,10,10)
    end


    function ngocboitim()
    AddItem(0,9,18,1,0,10,10)
    AddItem(0,9,18,2,1,10,10)
    AddItem(0,9,18,3,2,10,10)
    AddItem(0,9,18,4,3,10,10)
    AddItem(0,9,18,5,4,10,10)
    end


    function nontim()
    AddItem(0,7,25,1,0,10,10)
    AddItem(0,7,25,2,1,10,10)
    AddItem(0,7,25,3,2,10,10)
    AddItem(0,7,25,4,3,10,10)
    AddItem(0,7,25,5,4,10,10)
    end


    function aotim()
    AddItem(0,2,49,1,0,10,10)
    AddItem(0,2,49,2,1,10,10)
    AddItem(0,2,49,3,2,10,10)
    AddItem(0,2,49,4,3,10,10)
    AddItem(0,2,49,5,4,10,10)
    end


    function baotaytim()
    AddItem(0,8,18,1,0,10,10)
    AddItem(0,8,18,2,1,10,10)
    AddItem(0,8,18,3,2,10,10)
    AddItem(0,8,18,4,3,10,10)
    AddItem(0,8,18,5,4,10,10)
    end


    function giaytim()
    AddItem(0,5,20,1,0,10,10)
    AddItem(0,5,20,2,1,10,10)
    AddItem(0,5,20,3,2,10,10)
    AddItem(0,5,20,4,3,10,10)
    AddItem(0,5,20,5,4,10,10)
    end


    function thatlungtim()
    AddItem(0,6,26,1,0,10,10)
    AddItem(0,6,26,2,1,10,10)
    AddItem(0,6,26,3,2,10,10)
    AddItem(0,6,26,4,3,10,10)
    AddItem(0,6,26,5,4,10,10)
    end


    -------------------------------------------
    function 
    trangbivukhi()
    SayEx({"Chµo Admin! Anh cÇn g×?",
            
    "LÊy Vò KhÝ Kim/vkk",
            
    "LÊy Vò KhÝ Méc/vkm",
            
    "LÊy Vò KhÝ Thñy/vkt",
            
    "LÊy Vò KhÝ Háa/vkh",
            
    "LÊy Vò KhÝ Thæ/vktt",
            
    "Trë vÒ/manage"})
    end

    function vkk()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "§ao HÖ Kim/dhk",
    "Báng HÖ Kim/bhk",
    "KiÕm HÖ Kim/khk",
    "Næ HÖ Kim/nhk",
    "Phi §ao HÖ Kim/pdhk",
    "Phi Tiªu HÖ Kim/pthk",
    "Trë vÒ/manage"})
    end

    function vkm()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "§ao HÖ Méc/dhm",
    "Báng HÖ Méc/bhm",
    "KiÕm HÖ Méc/khm",
    "Næ HÖ Méc/nhm",
    "Phi §ao HÖ Méc/pdhm",
    "Phi Tiªu HÖ Méc/pthm",
    "Trë vÒ/manage"})
    end

    function vkt()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "§ao HÖ Thñy/dht",
    "Báng HÖ Thñy/bht",
    "KiÕm HÖ Thñy/kht",
    "Th­¬ng HÖ Thñy/tht",
    "Chïy HÖ Thñy/cht",
    "Trë vÒ/manage"})
    end

    function vkh()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "§ao HÖ Háa/dhh",
    "Báng HÖ Háa/bhh",
    "KiÕm HÖ Háa/khh",
    "Trë vÒ/manage"})
    end

    function vktt()
    SayEx({"Chµo Admin! Anh cÇn g×?",
    "§ao HÖ Thæ/dhtt",
    "Báng HÖ Thæ/bhtt",
    "KiÕm HÖ Thæ/khtt",
    "Trë vÒ/manage"})
    end

    ---------------------------------§ao HÖ Kim
    function dhk()
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    AddItem(0,0,2,0,0,10,10)
    end

    ---------------------------------Báng HÖ Kim
    function bhk()
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    AddItem(0,0,3,0,0,10,10)
    end

    ---------------------------------KiÕm HÖ Kim
    function khk()
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    AddItem(0,0,1,0,0,10,10)
    end

    ---------------------------------Næ HÖ Kim
    function nhk()
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    AddItem(0,1,3,0,0,10,10)
    end

    ---------------------------------Phi §ao HÖ Kim
    function pdhk()
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    AddItem(0,1,2,0,0,10,10)
    end

    ---------------------------------Phi Tiªu HÖ Kim
    function pthk()
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    AddItem(0,1,1,0,0,10,10)
    end

    ---------------------------------§ao HÖ Méc
    function dhm()
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    AddItem(0,0,2,0,1,10,10)
    end

    ---------------------------------Báng HÖ Méc
    function bhm()
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    AddItem(0,0,3,0,1,10,10)
    end

    ---------------------------------KiÕm HÖ Méc
    function khm()
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    AddItem(0,0,1,0,1,10,10)
    end

    ---------------------------------Næ HÖ Méc
    function nhm()
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    AddItem(0,1,3,0,1,10,10)
    end

    ---------------------------------Phi §ao HÖ Méc
    function pdhm()
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    AddItem(0,1,2,0,1,10,10)
    end

    ---------------------------------Phi Tiªu HÖ Méc
    function pthm()
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    AddItem(0,1,1,0,1,10,10)
    end

    ---------------------------------§ao HÖ Thñy
    function dht()
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    AddItem(0,0,2,0,2,10,10)
    end

    ---------------------------------Báng HÖ Thñy
    function bht()
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    AddItem(0,0,3,0,2,10,10)
    end

    ---------------------------------KiÕm HÖ Thñy
    function kht()
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    AddItem(0,0,1,0,2,10,10)
    end

    ---------------------------------Th­¬ng HÖ Thñy
    function tht()
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    AddItem(0,0,4,0,2,10,10)
    end

    ---------------------------------Chuú HÖ Thñy
    function cht()
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    AddItem(0,0,5,0,2,10,10)
    end

    ---------------------------------§ao HÖ Háa
    function dhh()
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    AddItem(0,0,2,0,3,10,10)
    end

    ---------------------------------Báng HÖ Háa
    function bhh()
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    AddItem(0,0,3,0,3,10,10)
    end

    ---------------------------------KiÕm HÖ Háa
    function khh()
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    AddItem(0,0,1,0,3,10,10)
    end

    ---------------------------------§ao HÖ Thæ
    function dhtt()
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    AddItem(0,0,2,0,4,10,10)
    end

    ---------------------------------Báng HÖ Thæ
    function bhtt()
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    AddItem(0,0,3,0,4,10,10)
    end

    ---------------------------------KiÕm HÖ Thæ
    function khtt()
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    AddItem(0,0,1,0,4,10,10)
    end

    function trangbine()
        
    SayEx({"Cã tÊt c¶ <color=Wood>5<color> Ngò Hµnh, mçi lo¹i trang bÞ mang mét ngò hµnh víi mét søc m¹nh kh¸c nhau !",
                
    "Trang bÞ Kim/khamnam",
                
    "Trang bÞ Méc/khamnam1",
                
    "Trang bÞ Thñy/khamnam2",
                
    "Trang bÞ Háa/khamnam3",
                
    "Trang bÞ Thæ/khamnam4",
                
    "NhËn Vò KhÝ Xanh/trangbivukhi",
                
    "Ta kh«ng cÇn/no"})
    end

    function khamnam()
    Say("Ng­¬i muèn nhËn trang bÞ nµo ?",11,
    "Vò khÝ/trangbikim",
    "¸o gi¸p/trangbikim",
    "Nãn/trangbikim",
    "Giµy/trangbikim",
    "Th¾t l­ng/trangbikim",
    "Bao Tay/trangbikim",
    "¸m khÝ/trangbikim",
    "Ngäc béi/trangbikim",
    "D©y chuyÒn/trangbikim",
    "NhÉn/trangbikim",
    "KÕt thóc ®èi tho¹i./no")
    end


    function trangbikim(nsel)
    nsel+1
    for m=1,do
        if 
    == 1 then --vu khi
                q 
    random(0,5)
                
    AddItem(0,0,q,random(8,10),0,0,10)
            elseif 
    == 2 then --ao giap
                w 
    random(0,28)
                
    AddItem(0,2,w,random(6,10),0,0,10)
            elseif 
    == 3 then --non
                a 
    random(0,13)
                
    AddItem(0,7,a,random(6,10),0,0,10)
            elseif 
    == 4 then --giay
                e 
    random(0,3)
                
    AddItem(0,5,e,random(6,10),0,0,10)
            elseif 
    == 5 then    --that lung
                r 
    random(0,1)
                
    AddItem(0,6,r,random(6,10),0,0,10)
            elseif 
    == 6 then --bao tay
                t 
    random(0,1)
                
    AddItem(0,8,t,random(6,10),0,0,10)
            elseif 
    == 7 then --am khi
                y 
    random(0,2)
                
    AddItem(0,1,y,random(6,10),0,0,10)
            elseif 
    == 8 then --ngoc boi
                u 
    random(0,1)
                
    AddItem(0,9,u,random(6,10),0,0,10)
            elseif 
    == 9 then --day chuyen
                o 
    random(0,1)
                
    AddItem(0,4,o,random(6,10),0,0,10)
            elseif 
    == 10 then --nhan
                AddItem
    (0,3,0,random(6,10),0,0,10)        
            
    end
    end
    end

    function khamnam1()
    Say("Ng­¬i muèn nhËn trang bÞ nµo ?",11,
    "Vò khÝ/trangbikim1",
    "¸o gi¸p/trangbikim1",
    "Nãn/trangbikim1",
    "Giµy/trangbikim1",
    "Th¾t l­ng/trangbikim1",
    "Bao Tay/trangbikim1",
    "¸m khÝ/trangbikim1",
    "Ngäc béi/trangbikim1",
    "D©y chuyÒn/trangbikim1",
    "NhÉn/trangbikim1",
    "KÕt thóc ®èi tho¹i./no")
    end


    function trangbikim1(nsel)
    nsel+1
    for m=1,do
        if 
    == 1 then --vu khi
                q 
    random(0,5)
                
    AddItem(0,0,q,random(8,10),1,0,10)
            elseif 
    == 2 then --ao giap
                w 
    random(0,28)
                
    AddItem(0,2,w,random(6,10),1,0,10)
            elseif 
    == 3 then --non
                a 
    random(0,13)
                
    AddItem(0,7,a,random(6,10),1,0,10)
            elseif 
    == 4 then --giay
                e 
    random(0,3)
                
    AddItem(0,5,e,random(6,10),1,0,10)
            elseif 
    == 5 then    --that lung
                r 
    random(0,1)
                
    AddItem(0,6,r,random(6,10),1,0,10)
            elseif 
    == 6 then --bao tay
                t 
    random(0,1)
                
    AddItem(0,8,t,random(6,10),1,0,10)
            elseif 
    == 7 then --am khi
                y 
    random(0,2)
                
    AddItem(0,1,y,random(6,10),1,0,10)
            elseif 
    == 8 then --ngoc boi
                u 
    random(0,1)
                
    AddItem(0,9,u,random(6,10),1,0,10)
            elseif 
    == 9 then --day chuyen
                o 
    random(0,1)
                
    AddItem(0,4,o,random(6,10),1,0,10)
            elseif 
    == 10 then --nhan
                AddItem
    (0,3,0,random(6,10),1,0,10)        
            
    end
    end
    end



    function khamnam2()
    Say("Ng­¬i muèn nhËn trang bÞ nµo ?",11,
    "Vò khÝ/trangbikim2",
    "¸o gi¸p/trangbikim2",
    "Nãn/trangbikim2",
    "Giµy/trangbikim2",
    "Th¾t l­ng/trangbikim2",
    "Bao Tay/trangbikim2",
    "¸m khÝ/trangbikim2",
    "Ngäc béi/trangbikim2",
    "D©y chuyÒn/trangbikim2",
    "NhÉn/trangbikim2",
    "KÕt thóc ®èi tho¹i./no")
    end


    function trangbikim2(nsel)
    nsel+1
    for m=1,do
        if 
    == 1 then --vu khi
                q 
    random(0,4)
                
    AddItem(0,0,1,8,q,10)
            elseif 
    == 2 then --ao giap
                w 
    random(0,28)
                
    AddItem(0,2,w,random(6,10),2,0,10)
            elseif 
    == 3 then --non
                a 
    random(0,13)
                
    AddItem(0,7,a,random(6,10),2,0,10)
            elseif 
    == 4 then --giay
                e 
    random(0,3)
                
    AddItem(0,5,e,random(6,10),2,0,10)
            elseif 
    == 5 then    --that lung
                r 
    random(0,1)
                
    AddItem(0,6,r,random(6,10),2,0,10)
            elseif 
    == 6 then --bao tay
                t 
    random(0,1)
                
    AddItem(0,8,t,random(6,10),2,0,10)
            elseif 
    == 7 then --am khi
                y 
    random(0,2)
                
    AddItem(0,1,y,random(8,8),2,0,10)
            elseif 
    == 8 then --ngoc boi
                u 
    random(0,1)
                
    AddItem(0,9,u,random(6,10),2,0,10)
            elseif 
    == 9 then --day chuyen
                o 
    random(0,1)
                
    AddItem(0,4,o,random(6,10),2,0,10)
            elseif 
    == 10 then --nhan
                AddItem
    (0,3,0,random(6,10),2,0,10)        
            
    end
    end
    end



    function khamnam3()
    Say("Ng­¬i muèn nhËn trang bÞ nµo ?",11,
    "Vò khÝ/trangbikim3",
    "¸o gi¸p/trangbikim3",
    "Nãn/trangbikim3",
    "Giµy/trangbikim3",
    "Th¾t l­ng/trangbikim3",
    "Bao Tay/trangbikim3",
    "¸m khÝ/trangbikim3",
    "Ngäc béi/trangbikim3",
    "D©y chuyÒn/trangbikim3",
    "NhÉn/trangbikim3",
    "KÕt thóc ®èi tho¹i./no")
    end


    function trangbikim3(nsel)
    nsel+1
    for m=1,do
        if 
    == 1 then --vu khi
                q 
    random(0,5)
                
    AddItem(0,0,q,random(8,10),3,0,10)
            elseif 
    == 2 then --ao giap
                w 
    random(0,28)
                
    AddItem(0,2,w,random(6,10),3,0,10)
            elseif 
    == 3 then --non
                a 
    random(0,13)
                
    AddItem(0,7,a,random(6,10),3,0,10)
            elseif 
    == 4 then --giay
                e 
    random(0,3)
                
    AddItem(0,5,e,random(6,10),3,0,10)
            elseif 
    == 5 then    --that lung
                r 
    random(0,1)
                
    AddItem(0,6,r,random(6,10),3,0,10)
            elseif 
    == 6 then --bao tay
                t 
    random(0,1)
                
    AddItem(0,8,t,random(6,10),3,0,10)
            elseif 
    == 7 then --am khi
                y 
    random(0,2)
                
    AddItem(0,1,y,random(6,10),3,0,10)
            elseif 
    == 8 then --ngoc boi
                u 
    random(0,1)
                
    AddItem(0,9,u,random(6,10),3,0,10)
            elseif 
    == 9 then --day chuyen
                o 
    random(0,1)
                
    AddItem(0,4,o,random(6,10),3,0,10)
            elseif 
    == 10 then --nhan
                AddItem
    (0,3,0,random(6,10),3,0,10)        
            
    end
    end
    end


    function khamnam4()
    Say("Ng­¬i muèn nhËn trang bÞ nµo ?",11,
    "Vò khÝ/trangbikim4",
    "¸o gi¸p/trangbikim4",
    "Nãn/trangbikim4",
    "Giµy/trangbikim4",
    "Th¾t l­ng/trangbikim4",
    "Bao Tay/trangbikim4",
    "¸m khÝ/trangbikim4",
    "Ngäc béi/trangbikim4",
    "D©y chuyÒn/trangbikim4",
    "NhÉn/trangbikim4",
    "KÕt thóc ®èi tho¹i./no")
    end


    function trangbikim4(nsel)
    nsel+1
    for m=1,do
        if 
    == 1 then --vu khi
                q 
    random(0,5)
                
    AddItem(0,0,q,random(8,10),4,0,10)
            elseif 
    == 2 then --ao giap
                w 
    random(0,28)
                
    AddItem(0,2,w,random(6,10),4,0,10)
            elseif 
    == 3 then --non
                a 
    random(0,13)
                
    AddItem(0,7,a,random(6,10),4,0,10)
            elseif 
    == 4 then --giay
                e 
    random(0,3)
                
    AddItem(0,5,e,random(6,10),4,0,10)
            elseif 
    == 5 then    --that lung
                r 
    random(0,1)
                
    AddItem(0,6,r,random(6,10),4,0,10)
            elseif 
    == 6 then --bao tay
                t 
    random(0,1)
                
    AddItem(0,8,t,random(6,10),4,0,10)
            elseif 
    == 7 then --am khi
                y 
    random(0,2)
                
    AddItem(0,1,y,random(6,10),4,0,10)
            elseif 
    == 8 then --ngoc boi
                u 
    random(0,1)
                
    AddItem(0,9,u,random(6,10),4,0,10)
            elseif 
    == 9 then --day chuyen
                o 
    random(0,1)
                
    AddItem(0,4,o,random(6,10),4,0,10)
            elseif 
    == 10 then --nhan
                AddItem
    (0,3,0,random(6,10),4,0,10)        
            
    end
    end
    end

    function maumana120()
    SayEx({"Hæ Trî NhËn Thuèc MiÔn PhÝ D­íi Level 120 <",
        
    "NhËn M¸u/nhanmana",
        
    "NhËn Mana/nhanmau",
        
    "Tho¸t/no"})
        
    end

        
    function nhanmauzz()
    if 
    GetLevel() < 120 then
    for i=1,20 do AddItem(1,2,0,3,0,0end
    else
    Msg2Player("Ng­¬i ®· v­¬i qu¸ giíi h¹n 120")
    end
        end    

    function nhanmana()
    if 
    GetLevel() < 120 then
    for i=1,20 do AddItem(1,2,0,3,0,0,0end
    else
    Msg2Player("Ng­¬i ®· v­¬i qu¸ giíi h¹n 120")
    end
    end 
    Khách viếng thăm hãy cùng nhjm_jx xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  8. Các thành viên gởi lời cảm ơn đến nhjm_jx vì bài viết này !

    taptanhjx (31-08-15)

  9. #6
    Thành Viên
    Ngày tham gia
    Aug 2015
    Bài viết
    7
    Thanks
    5
    Thanked 1 Time in 1 Post

    Ðề: hỏi về set quyền admin jx win

    Vẫn không được bạn ơi hoặc cho mình xin yahoo hoặc add giúp mình với [Only registered and activated users can see links. ]
    Khách viếng thăm hãy cùng taptanhjx xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  10. #7
    Thành Viên keo_ngot1418's Avatar
    Ngày tham gia
    Sep 2012
    Bài viết
    467
    Thanks
    158
    Thanked 329 Times in 97 Posts

    Ðề: hỏi về set quyền admin jx win

    Trích dẫn Gửi bởi nhjm_jx [Only registered and activated users can see links. ]
    anh nhớ e

    Khách viếng thăm hãy cùng keo_ngot1418 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Các Chủ đề tương tự

  1. Cách khôi phục quyền hạn Admin vBulletin
    Bởi KingSky trong diễn đàn vBulletin Tutorial
    Trả lời: 0
    Bài viết cuối: 10-02-14, 02:45 PM
  2. [JX] Ai biết cách add thêm tên nhân vật có quyền admin ko chỉ mình với
    Bởi llvllrkien trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 2
    Bài viết cuối: 24-09-12, 07:19 PM
  3. [MU] Hỏi về quyền admin ở TV web
    Bởi hungtru55 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 2
    Bài viết cuối: 23-02-12, 09:07 PM
  4. Không phân quyền GM + ADMIN đc
    Bởi legendaryntq trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 2
    Bài viết cuối: 19-11-11, 03:13 PM
  5. Hỏi về vấn đề quyền Admin
    Bởi hungtien0 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 3
    Bài viết cuối: 08-06-11, 07:56 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 10:25 AM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.