hoivegame
29-04-11, 10:51 AM
Đây hàm lấy đồ + vũ khí ne` bà con
-------------------------------------------------------------
--------------Chuc Nang GM--------------------------------
-----------------------------------------------------
Include("\\Script\\GM.lua")
CoLaoThai = {
{"<color=cyan>Co Lao Thai:<color> Muon gi vay GM?"},
{"Hoc skill ho tro/hoc"},
{"Lay vu khi cac mon phai/vkmp"},
{"Lay do cac mon phai/dmp"},
{"Lay do tu do/cnge"},
{"Thoat/no"}
}
CoLaoThai1 = {
{"<color=cyan>Co Lao Thai:<color> nguoi muon lay vu khi nao?"},
{"Thieu Lam/tl"},
{"Thien Vuong/tv"},
{"Duong Mon/dm"},
{"Ngu Doc/nd"},
{"Nga My/nm"},
{"Thuy Yen/ty"},
{"Cai Bang/cb"},
{"Thien Nhan/tn"},
{"Vo Dang/vd"},
{"Con Lon/cl"},
{"Tro lai/main"},
{"Thoat/no"}
}
CoLaoThai2 = {
{"<color=cyan>Co Lao Thai:<color> nguoi muon lay trang bi cua phai nao?"},
{"Thieu Lam/tl1"},
{"Thien Vuong/tv1"},
{"Duong Mon/dm1"},
{"Ngu Doc/nd1"},
{"Nga My/nm1"},
{"Thuy Yen/ty1"},
{"Cai Bang/cb1"},
{"Thien Nhan/tn1"},
{"Vo Dang/vd1"},
{"Con Lon/cl1"},
{"Tro lai/main"},
{"Thoat/no"}
}
function main()
Say(CoLaoThai[1][1],5,CoLaoThai[2][1],CoLaoThai[3][1],CoLaoThai[4][1],CoLaoThai[5][1],CoLaoThai[6][1])
end
function no()
end
---------------Hoc skill ho tro-----------------------
function hoc()
AddMagic(350)
Msg2Player("Ban nhan duoc skill ho tro")
end
-------------Vu Khi Cua Thap Dai Phai---------------------
function vkmp()
Say(CoLaoThai1[1][1],12,CoLaoThai1[2][1],CoLaoThai1[3][1],CoLaoThai1[4][1],CoLaoThai1[5][1],CoLaoThai1[6][1],CoLaoThai1[7][1],CoLaoThai1[8][1],CoLaoThai1[9][1],CoLaoThai1[10][1],CoLaoThai1[11][1],CoLaoThai1[12][1],CoLaoThai1[13][1])
end
function tl()
j=random(0,4)
AddItem(0,0,4,69,j,1000,10,10,10,10,10,10)
AddItem(0,0,3,69,j,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc vu khi hoang kim mon phai Thieu Lam")
end
function tv()
j=random(0,4)
AddItem(0,0,0,69,j,1000,10,10,10,10,10,10)
AddItem(0,0,1,69,j,1000,10,10,10,10,10,10)
AddItem(0,0,2,69,j,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc vu khi hoang kim mon phai Thien Vuong")
end
function dm()
j=random(0,4)
AddItem(0,1,0,39,j,1000,10,10,10,10,10,10)
AddItem(0,1,1,39,j,1000,10,10,10,10,10,10)
AddItem(0,1,2,39,j,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc vu khi hoang kim mon phai Duong Mon")
end
function nd()
j=random(0,4)
AddItem(0,0,2,129,j,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc vu khi hoang kim mon phai Ngu Doc")
end
function nm()
j=random(0,4)
AddItem(0,0,5,69,j,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc vu khi hoang kim mon phai Nga My")
end;
function ty()
j=random(0,4)
AddItem(0,0,1,129,j,1000,10,10,10,10,10,10)
AddItem(0,0,0,129,j,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc vu khi hoang kim phai Thuy Yen")
end;
function cb()
j=random(0,4)
AddItem(0,0,3,129,j,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc vu khi hoang kim mon phai Cai Bang")
end;
function tn()
j=random(0,4)
AddItem(0,0,4,129,j,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc vu khi hoang kim phai Thien Nhan")
end;
function vd()
j=random(0,4)
AddItem(0,0,2,189,j,1000,10,10,10,10,10,10)
AddItem(0,0,5,129,j,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc vu khi cua mon phai Vo Dang")
end;
function cl()
j=random(0,4)
AddItem(0,0,1,189,j,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc vu khi cua mon phai Con Lon")
end;
-------------------Trang Bi Thap Dai Phai------------------
function dmp()
Say(CoLaoThai2[1][1],12,CoLaoThai2[2][1],CoLaoThai2[3][1],CoLaoThai2[4][1],CoLaoThai2[5][1],CoLaoThai2[6][1],CoLaoThai2[7][1],CoLaoThai2[8][1],CoLaoThai2[9][1],CoLaoThai2[10][1],CoLaoThai2[11][1],CoLaoThai2[12][1],CoLaoThai2[13][1])
end
function tl1()
----------------Chuc Nang Voi Gamer-------------
z = random(0,4)
function cnge()
Say("Nha nguoi mun lay gi?,10,
"Nhan Cap/cap",
"Day Chuyen/daychuyen",
"Ao/ao",
"Dai Lung/dailung",
"Giay/giay",
"Bao Tay/baotay",
"Non/non",
"Ngoc Boi/ngocboi",
"Nhan/nhan",
"Thoat/no")
end
function cap()
for i=1,300 do AddOwnExp(50000000) end
Msg2Player("Ban nhan duoc kinh nghiem")
end;
function nhan()
z = random(0,4)
AddItem(0,3,1,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,2,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,3,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,4,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,5,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,6,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,7,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,8,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,9,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,10,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,11,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,12,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,13,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,14,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,15,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,16,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,17,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,18,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,19,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,20,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,21,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,22,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,23,10,z,1000,10,10,10,10,10,10)
AddItem(0,3,24,10,z,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc 1 bo full Nhan")
end
function ngocboi()
z = random(0,4)
AddItem(0,9,1,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,2,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,3,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,4,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,5,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,6,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,7,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,8,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,9,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,10,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,11,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,12,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,13,10,z,1000,10,10,10,10,10,10)
AddItem(0,9,14,10,z,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc 1 bo full ngoc boi")
end
function non()
AddItem(0,7,28,10,z,1000,10,10,10,10,10,10)
AddItem(0,7,29,10,z,1000,10,10,10,10,10,10)
AddItem(0,7,30,10,z,1000,10,10,10,10,10,10)
AddItem(0,7,31,10,z,1000,10,10,10,10,10,10)
AddItem(0,7,32,10,z,1000,10,10,10,10,10,10)
AddItem(0,7,33,10,z,1000,10,10,10,10,10,10)
AddItem(0,7,34,10,z,1000,10,10,10,10,10,10)
AddItem(0,7,35,10,z,1000,10,10,10,10,10,10)
AddItem(0,7,36,10,z,1000,10,10,10,10,10,10)
AddItem(0,7,37,10,z,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc full bo Non cac loai")
end
function baotay()
z = random(0,4)
AddItem(0,8,4,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,5,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,6,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,7,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,8,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,9,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,10,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,11,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,12,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,13,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,14,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,15,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,16,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,17,10,z,1000,10,10,10,10,10,10)
AddItem(0,8,18,10,z,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc 1 bo full Bao Tay")
end
function giay()
z = random(0,4)
AddItem(0,5,8,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,9,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,10,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,11,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,12,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,13,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,14,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,15,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,16,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,17,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,18,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,19,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,20,10,z,1000,10,10,10,10,10,10)
AddItem(0,5,21,10,z,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc 1 bo full Giay")
end
function dailung()
z = random(0,4)
AddItem(0,6,4,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,5,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,6,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,7,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,8,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,9,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,10,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,11,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,12,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,13,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,14,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,15,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,16,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,17,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,18,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,19,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,20,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,21,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,22,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,23,10,z,1000,10,10,10,10,10,10)
AddItem(0,6,24,10,z,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc 1 bo full dai lung")
end
function ao()
z = random(0,4)
AddItem(0,2,28,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,29,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,30,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,31,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,32,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,33,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,34,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,35,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,36,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,37,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,38,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,39,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,40,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,41,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,42,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,43,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,44,10,z,1000,10,10,10,10,10,10)
AddItem(0,2,45,10,z,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc full bo day ao cac loai")
end
function daychuyen()
z = random(0,4)
AddItem(0,4,2,10,z,1000,10,10,10,10,10,10)
AddItem(0,4,3,10,z,1000,10,10,10,10,10,10)
AddItem(0,4,4,10,z,1000,10,10,10,10,10,10)
AddItem(0,4,5,10,z,1000,10,10,10,10,10,10)
AddItem(0,4,6,10,z,1000,10,10,10,10,10,10)
AddItem(0,4,7,10,z,1000,10,10,10,10,10,10)
AddItem(0,4,8,10,z,1000,10,10,10,10,10,10)
AddItem(0,4,9,10,z,1000,10,10,10,10,10,10)
AddItem(0,4,10,10,z,1000,10,10,10,10,10,10)
AddItem(0,4,11,10,z,1000,10,10,10,10,10,10)
Msg2Player("Ban nhan duoc full bo day chuyen cac loai")
end
function no()
end
về gán vào 1 npc nào đó là được. Dễ dàng test^^
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.