hai07dv
27-08-11, 09:01 PM
các anh ? muốn set hàm admin nhận tất cả các chức năng ta làm như thế nào? như : phúc duyên..vv..vv tiền vạn ?
bạn xem lại mấy trang trước của topic nhé, có người share rồi !
code full chức năng GM đây ...cái này ở của ông mastergame share thì phải :D
paste vô xaphu.lua
Include("\\script\\startup_remix.lua")
function manager()
Say("Su gia Admin: Ban Co The Lua Chon Trang Bi Hoang Kim - Vu Khi Mon Phai, Xin hay Lua Chon :",8,"An Bang - Dinh Quoc/abdq","Nhan Vat Pham/vatpham","Ngua Cao Cap/nguacaocap","Nhan Diem/getpoint","Trang Bi Hoang Kim/manager1","Vu Khi/vkhk","Chuc Nang GM/system","Khong can/no")
end;
---------------------------------------------------------
function manager1()
Say("Su gia Admin: Ban Co The Lua Chon Trang Bi Hoang Kim Mon Phai, Xin hay Lua Chon Mon Phai:",11,"Thieu Lam/tl","Thien Vuong/tv","Duong Mon/dm","Ngu Doc/nd","Nga Mi/nm","Thuy Yen/ty","Cai Bang/cb","Thien Nhan/tn","Vo Dang/vd","Con Lon/cl","Khong can/no")
end;
---------------------------------------------------------
function vkhk()
Say("Su gia Admin: Ban Co The Lua Chon Vu Khi Hoang Kim Mon Phai, Xin hay Lua Chon Mon Phai:",11,"Thieu Lam/vktl","Thien Vuong/vktv","Duong Mon/vkdm","Ngu Doc/vknd","Nga Mi/vknm","Thuy Yen/vkty","Cai Bang/vkcb","Thien Nhan/vktn","Vo Dang/vkvd","Con Lon/vkcl","Khong can/no")
end;
---------------------------------------------------------
function getpoint()
SayEx({"Xin Chao Admin Xin Hay Chon Diem Muon Lay:",
"Diem Ngu Ba/pointnguba",
"Diem Phuc Duyen/pointphucduyen",
"Diem Danh Vong/pointdanhvong",
"Diem EXP/pointexp",
"Money/moneypoint",
"Diem Cong Hien LD/pointconghien",
"Diem Vinh Du/pointvinhdu",
"Thoat/Exit"})
end;
---------------------------------------------------------
function nguacaocap()
Say("Su gia Admin: Ban Co The Lua Chon Cac Loai Ngua Cao Cap, Xin hay Lua Chon :",16,"O Van Dap Tuyet/ngua1","Xich Tho/ngua2","Tuyet Anh/ngua3","Dich Lo/ngua4","Chieu Da Ngoc Su Tu/ngua5","Bon Tieu/ngua6","Phien Vu/ngua7","Phi Van/ngua8","Xich Long Cau/ngua9","Tuyet Dia/ngua10","Sieu Quang/ngua11","Bach Kim Tinh Ho Vuong/ngua12","Hoang Kim Tinh Ho Vuong/ngua13","Hac Kim Tinh Ho Vuong/ngua14","Khong can/no")
end;
---------------------------------------------------------
---------------------------------------------------------
function tl()
s=random(0,4)
AddItem(0,2,29,9,1000,10,10,10,10,10,10)
AddItem(0,2,30,9,1000,10,10,10,10,10,10)
AddItem(0,2,31,9,1000,10,10,10,10,10,10)
AddItem(0,3,5,9,1000,10,10,10,10,10,10)
AddItem(0,3,5,9,1000,10,10,10,10,10,10)
AddItem(0,5,9,9,1000,10,10,10,10,10,10)
AddItem(0,5,10,9,1000,10,10,10,10,10,10)
AddItem(0,6,5,9,1000,10,10,10,10,10,10)
AddItem(0,6,6,9,1000,10,10,10,10,10,10)
AddItem(0,6,7,9,1000,10,10,10,10,10,10)
AddItem(0,7,29,9,1000,10,10,10,10,10,10)
AddItem(0,8,5,9,1000,10,10,10,10,10,10)
AddItem(0,9,3,9,1000,10,10,10,10,10,10)
AddItem(0,9,4,9,1000,10,10,10,10,10,10)
end
---------------------------------------------------------
function tv()
s=random(0,4)
AddItem(0,2,32,9,1000,10,10,10,10,10,10)
AddItem(0,2,33,9,1000,10,10,10,10,10,10)
AddItem(0,3,6,9,1000,10,10,10,10,10,10)
AddItem(0,3,6,9,1000,10,10,10,10,10,10)
AddItem(0,4,3,9,1000,10,10,10,10,10,10)
AddItem(0,5,11,9,1000,10,10,10,10,10,10)
AddItem(0,5,12,9,1000,10,10,10,10,10,10)
AddItem(0,6,8,9,1000,10,10,10,10,10,10)
AddItem(0,6,9,9,1000,10,10,10,10,10,10)
AddItem(0,6,10,9,1000,10,10,10,10,10,10)
AddItem(0,8,6,9,1000,10,10,10,10,10,10)
AddItem(0,8,7,9,1000,10,10,10,10,10,10)
end
---------------------------------------------------------
function nm()
s=random(0,4)
AddItem(0,2,34,9,1000,10,10,10,10,10,10)
AddItem(0,2,35,9,1000,10,10,10,10,10,10)
AddItem(0,3,7,9,1000,10,10,10,10,10,10)
AddItem(0,3,8,9,1000,10,10,10,10,10,10)
AddItem(0,3,9,9,1000,10,10,10,10,10,10)
AddItem(0,3,10,9,1000,10,10,10,10,10,10)
AddItem(0,4,4,9,1000,10,10,10,10,10,10)
AddItem(0,5,13,9,1000,10,10,10,10,10,10)
AddItem(0,6,11,9,1000,10,10,10,10,10,10)
AddItem(0,7,30,9,1000,10,10,10,10,10,10)
AddItem(0,7,31,9,1000,10,10,10,10,10,10)
AddItem(0,8,8,9,1000,10,10,10,10,10,10)
AddItem(0,9,5,9,1000,10,10,10,10,10,10)
AddItem(0,9,6,9,1000,10,10,10,10,10,10)
end
---------------------------------------------------------
function ty()
s=random(0,4)
AddItem(0,2,36,9,1000,10,10,10,10,10,10)
AddItem(0,3,11,9,1000,10,10,10,10,10,10)
AddItem(0,3,12,9,1000,10,10,10,10,10,10)
AddItem(0,4,5,9,1000,10,10,10,10,10,10)
AddItem(0,6,12,9,1000,10,10,10,10,10,10)
AddItem(0,6,13,9,1000,10,10,10,10,10,10)
AddItem(0,8,9,9,1000,10,10,10,10,10,10)
AddItem(0,9,7,9,1000,10,10,10,10,10,10)
end
---------------------------------------------------------
function nd()
s=random(0,4)
AddItem(0,2,37,9,1000,10,10,10,10,10,10)
AddItem(0,2,38,9,1000,10,10,10,10,10,10)
AddItem(0,3,13,9,1000,10,10,10,10,10,10)
AddItem(0,3,14,9,1000,10,10,10,10,10,10)
AddItem(0,4,6,9,1000,10,10,10,10,10,10)
AddItem(0,5,14,9,1000,10,10,10,10,10,10)
AddItem(0,5,15,9,1000,10,10,10,10,10,10)
AddItem(0,6,14,9,1000,10,10,10,10,10,10)
AddItem(0,7,32,9,1000,10,10,10,10,10,10)
AddItem(0,7,33,9,1000,10,10,10,10,10,10)
AddItem(0,8,10,9,1000,10,10,10,10,10,10)
AddItem(0,8,11,9,1000,10,10,10,10,10,10)
end
---------------------------------------------------------
function dm()
s=random(0,4)
AddItem(0,2,39,9,1000,10,10,10,10,10,10)
AddItem(0,2,40,9,1000,10,10,10,10,10,10)
AddItem(0,4,7,9,1000,10,10,10,10,10,10)
AddItem(0,5,16,9,1000,10,10,10,10,10,10)
AddItem(0,5,17,9,1000,10,10,10,10,10,10)
AddItem(0,5,18,9,1000,10,10,10,10,10,10)
AddItem(0,6,15,9,1000,10,10,10,10,10,10)
AddItem(0,6,16,9,1000,10,10,10,10,10,10)
AddItem(0,6,17,9,1000,10,10,10,10,10,10)
AddItem(0,7,34,9,1000,10,10,10,10,10,10)
AddItem(0,8,13,9,1000,10,10,10,10,10,10)
AddItem(0,9,8,9,1000,10,10,10,10,10,10)
AddItem(0,9,9,9,1000,10,10,10,10,10,10)
end
---------------------------------------------------------
function cb()
s=random(0,4)
AddItem(0,2,41,9,1000,10,10,10,10,10,10)
AddItem(0,2,42,9,1000,10,10,10,10,10,10)
AddItem(0,3,15,9,1000,10,10,10,10,10,10)
AddItem(0,3,16,9,1000,10,10,10,10,10,10)
AddItem(0,6,18,9,1000,10,10,10,10,10,10)
AddItem(0,6,19,9,1000,10,10,10,10,10,10)
AddItem(0,8,14,9,1000,10,10,10,10,10,10)
AddItem(0,8,15,9,1000,10,10,10,10,10,10)
end
---------------------------------------------------------
function tn()
s=random(0,4)
AddItem(0,2,43,9,1000,10,10,10,10,10,10)
AddItem(0,3,17,9,1000,10,10,10,10,10,10)
AddItem(0,3,18,9,1000,10,10,10,10,10,10)
AddItem(0,4,8,9,1000,10,10,10,10,10,10)
AddItem(0,4,9,9,1000,10,10,10,10,10,10)
AddItem(0,5,19,9,1000,10,10,10,10,10,10)
AddItem(0,5,20,9,1000,10,10,10,10,10,10)
AddItem(0,6,20,9,1000,10,10,10,10,10,10)
AddItem(0,6,21,9,1000,10,10,10,10,10,10)
AddItem(0,7,35,9,1000,10,10,10,10,10,10)
AddItem(0,8,16,9,1000,10,10,10,10,10,10)
AddItem(0,8,17,9,1000,10,10,10,10,10,10)
AddItem(0,9,10,9,1000,10,10,10,10,10,10)
end
---------------------------------------------------------
function vd()
s=random(0,4)
AddItem(0,2,44,9,1000,10,10,10,10,10,10)
AddItem(0,3,19,9,1000,10,10,10,10,10,10)
AddItem(0,3,20,9,1000,10,10,10,10,10,10)
AddItem(0,3,21,9,1000,10,10,10,10,10,10)
AddItem(0,4,10,9,1000,10,10,10,10,10,10)
AddItem(0,6,22,9,1000,10,10,10,10,10,10)
AddItem(0,9,11,9,1000,10,10,10,10,10,10)
AddItem(0,9,12,9,1000,10,10,10,10,10,10)
end
---------------------------------------------------------
function cl()
s=random(0,4)
AddItem(0,2,45,9,1000,10,10,10,10,10,10)
AddItem(0,3,22,9,1000,10,10,10,10,10,10)
AddItem(0,3,23,9,1000,10,10,10,10,10,10)
AddItem(0,3,24,9,1000,10,10,10,10,10,10)
AddItem(0,4,11,9,1000,10,10,10,10,10,10)
AddItem(0,5,21,9,1000,10,10,10,10,10,10)
AddItem(0,6,23,9,1000,10,10,10,10,10,10)
AddItem(0,6,24,9,1000,10,10,10,10,10,10)
AddItem(0,7,36,9,1000,10,10,10,10,10,10)
AddItem(0,7,37,9,1000,10,10,10,10,10,10)
AddItem(0,8,18,9,1000,10,10,10,10,10,10)
AddItem(0,9,13,9,1000,10,10,10,10,10,10)
AddItem(0,9,14,9,1000,10,10,10,10,10,10)
end
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
function vktl()
AddItem(0,0,9,9,1,1000,10,10,10,10,10,10)
AddItem(0,0,9,2,1,1000,10,10,10,10,10,10)
AddItem(0,0,9,3,1,1000,10,10,10,10,10,10)
AddItem(0,0,10,9,1,1000,10,10,10,10,10,10)
AddItem(0,0,10,2,1,1000,10,10,10,10,10,10)
AddItem(0,0,10,3,1,1000,10,10,10,10,10,10)
end;
function vktv()
AddItem(0,0,6,9,2,1000,10,10,10,10,10,10)
AddItem(0,0,6,2,2,1000,10,10,10,10,10,10)
AddItem(0,0,6,3,2,1000,10,10,10,10,10,10)
AddItem(0,0,7,9,2,1000,10,10,10,10,10,10)
AddItem(0,0,7,2,2,1000,10,10,10,10,10,10)
AddItem(0,0,7,3,2,1000,10,10,10,10,10,10)
AddItem(0,0,8,9,2,1000,10,10,10,10,10,10)
AddItem(0,0,8,2,2,1000,10,10,10,10,10,10)
AddItem(0,0,8,3,2,1000,10,10,10,10,10,10)
end;
function vkdm()
AddItem(0,1,3,9,4,1000,10,10,10,10,10,10)
AddItem(0,1,3,2,4,1000,10,10,10,10,10,10)
AddItem(0,1,3,3,4,1000,10,10,10,10,10,10)
AddItem(0,1,4,9,3,1000,10,10,10,10,10,10)
AddItem(0,1,4,2,3,1000,10,10,10,10,10,10)
AddItem(0,1,4,3,3,1000,10,10,10,10,10,10)
AddItem(0,1,5,9,0,1000,10,10,10,10,10,10)
AddItem(0,1,5,2,0,1000,10,10,10,10,10,10)
AddItem(0,1,5,3,0,1000,10,10,10,10,10,10)
end;
function vknd()
AddItem(0,0,14,9,2,1000,10,10,10,10,10,10)
AddItem(0,0,14,2,2,1000,10,10,10,10,10,10)
AddItem(0,0,14,3,2,1000,10,10,10,10,10,10)
end;
function vknm()
AddItem(0,0,11,9,0,1000,10,10,10,10,10,10)
AddItem(0,0,11,2,0,1000,10,10,10,10,10,10)
AddItem(0,0,11,3,0,1000,10,10,10,10,10,10)
end;
function vkty()
AddItem(0,0,12,9,0,1000,10,10,10,10,10,10)
AddItem(0,0,12,2,0,1000,10,10,10,10,10,10)
AddItem(0,0,12,3,0,1000,10,10,10,10,10,10)
AddItem(0,0,13,9,2,1000,10,10,10,10,10,10)
AddItem(0,0,13,2,2,1000,10,10,10,10,10,10)
AddItem(0,0,13,3,2,1000,10,10,10,10,10,10)
end;
function vkcb()
AddItem(0,0,15,9,2,1000,10,10,10,10,10,10)
AddItem(0,0,15,2,2,1000,10,10,10,10,10,10)
AddItem(0,0,15,3,2,1000,10,10,10,10,10,10)
end;
function vktn()
AddItem(0,0,16,9,2,1000,10,10,10,10,10,10)
AddItem(0,0,16,2,2,1000,10,10,10,10,10,10)
AddItem(0,0,16,3,2,1000,10,10,10,10,10,10)
AddMagic(348)
AddMagic(358)
AddMagic(359)
AddMagic(360)
AddMagic(361)
AddMagic(362)
AddMagic(363)
AddMagic(364)
AddMagic(365)
AddMagic(366)
AddMagic(367)
AddMagic(368)
end;
function vkvd()
AddItem(0,0,17,9,2,1000,10,10,10,10,10,10)
AddItem(0,0,17,2,2,1000,10,10,10,10,10,10)
AddItem(0,0,17,3,2,1000,10,10,10,10,10,10)
AddItem(0,0,18,9,4,1000,10,10,10,10,10,10)
AddItem(0,0,18,2,4,1000,10,10,10,10,10,10)
AddItem(0,0,18,3,4,1000,10,10,10,10,10,10)
end;
function vkcl()
AddItem(0,0,19,9,2,1000,10,10,10,10,10,10)
AddItem(0,0,19,2,2,1000,10,10,10,10,10,10)
AddItem(0,0,19,3,2,1000,10,10,10,10,10,10)
end;
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
function pointvinhdu()
SetTask(57,GetTask(57)+10000)
Msg2Player("Nhan Duoc 10k Diem CH")
end;
function pointconghien()
SetTask(41,10000)
Msg2Player("Ban Nhan Duoc 10000 Diem Cong Hien !")
end;
function pointnguba()
SetTask(14,GetTask(14)+10000)
Msg2Player("Ban Nhan Duoc 10k Diem Ngu Ba !")
end;
function pointphucduyen()
SetTask(12,GetTask(12)+10000)
Msg2Player("Ban Nhan Duoc 10k Diem Phuc Duyen !")
end;
function pointdanhvong()
AddRepute(10000)
Msg2Player("Ban Nhan Duoc 10k Diem Danh Vong !")
end;
function pointexp()
for i=1,199 do AddOwnExp(999999999) end
Msg2Player("Ban Nhan Duoc Dang Cap 20x !")
end;
function moneypoint()
Earn(500000000)
Msg2Player("Ban Nhan Duoc 50kv !")
end;
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
function ngua1()
AddItem(0,10,5,6,1,1000,10,10,10,10,10,10)
end;
function ngua2()
AddItem(0,10,5,7,1,1000,10,10,10,10,10,10)
end;
function ngua3()
AddItem(0,10,5,8,1,1000,10,10,10,10,10,10)
end;
function ngua4()
AddItem(0,10,5,9,1,1000,10,10,10,10,10,10)
end;
function ngua5()
AddItem(0,10,5,10,1,1000,10,10,10,10,10,10)
end;
function ngua6()
AddItem(0,10,6,9,1,1000,10,10,10,10,10,10)
end;
function ngua7()
AddItem(0,10,7,9,1,1000,10,10,10,10,10,10)
end;
function ngua8()
AddItem(0,10,8,9,1,1000,10,10,10,10,10,10)
end;
function ngua9()
AddItem(0,10,9,9,1,1000,10,10,10,10,10,10)
end;
function ngua10()
AddItem(0,10,10,9,1,1000,10,10,10,10,10,10)
end;
function ngua11()
AddItem(0,10,11,9,1,1000,10,10,10,10,10,10)
end;
function ngua12()
AddItem(0,10,12,1,1,1000,10,10,10,10,10,10)
end;
function ngua13()
AddItem(0,10,12,2,1,1000,10,10,10,10,10,10)
end;
function ngua14()
AddItem(0,10,12,3,1,1000,10,10,10,10,10,10)
end;
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
function vatpham()
SayEx({"Xin Chao Admin Anh Muon Lay Vat Pham ?",
"Vat Pham Ho Tro Nguoi Choi/hotronguoichoi",
"Bi Kip 9x/bk9x",
"Thuy Tinh/thuytinh",
"Tinh Hong Bao Thach/hongbaothach",
"Vat Pham Che Tao/chetaovp",
"Vat Pham Event/eventvp",
"Thoat/Exit"})
end;
function chetaovp()
SayEx({"Xin Chao Admin Anh Muon Lay Vat Pham Che Tao ?",
"Hoang Kim Dai Phap/hkdp",
"Bach Kim Dai Phap/bkdp",
"Thien Tu Cam Thach/ttct",
"That Dai Han/tdhvp",
"Thoat/Exit"})
end;
function hkdp()
AddEventItem(3)
Msg2Player("Ban Nhan Duoc Hoang Kim Dai Phap !")
end;
function bkdp()
AddEventItem(150)
Msg2Player("Ban Nhan Duoc Bach Kim Dai Phap !")
end;
function ttct()
AddEventItem(152)
Msg2Player("Ban Nhan Duoc Thien Tu Cam Thach !")
end;
function tdhvp()
AddEventItem(74)
Msg2Player("Ban Nhan Duoc That Dai Han !")
end;
function eventvp()
SayEx({"Xin Chao Admin Anh Muon Lay Vat Pham ?",
"Banh Kem/nguyenlieu",
"Thoat/Exit"})
end
function nguyenlieu(sel)
AddEventItem(117)
AddEventItem(118)
AddEventItem(119)
AddEventItem(120)
AddEventItem(121)
AddEventItem(122)
AddEventItem(123)
AddEventItem(124)
Msg2Player("Nhan Duoc Vat Pham Banh Kem !")
end;
function thuytinh()
AddEventItem(28)
AddEventItem(30)
AddEventItem(29)
Msg2Player("Nhan Duoc 3 Vien Thuy Tinh !")
end;
function hongbaothach()
for i=1,6 do AddEventItem(31) end
Msg2Player("Nhan Duoc 6 THBT")
end;
function hotronguoichoi()
AddEventItem(132)
Msg2Player("Nhan Duoc Vat Pham Ho Tro Nguoi Choi !")
end;
function bk9x()
AddEventItem(75)
AddEventItem(76)
AddEventItem(77)
AddEventItem(76)
AddEventItem(77)
AddEventItem(78)
AddEventItem(79)
AddEventItem(80)
AddEventItem(81)
AddEventItem(82)
AddEventItem(83)
AddEventItem(84)
AddEventItem(85)
AddEventItem(86)
AddEventItem(87)
AddEventItem(88)
AddEventItem(89)
AddEventItem(90)
AddEventItem(91)
AddEventItem(92)
AddEventItem(93)
AddEventItem(94)
AddEventItem(95)
AddEventItem(96)
AddEventItem(97)
AddEventItem(98)
AddEventItem(99)
AddEventItem(100)
AddEventItem(101)
AddEventItem(102)
end;
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.