PDA

View Full Version : xem cái script đúng hem cái (add kill 200)



defeated
21-08-10, 11:49 AM
Include("\\script\\global\\sourcejx49.lua)
Include("\\script\\global\\serverlib.lua)
function main()
SayEx({"Dai hiep co muon hoc skill 200 khong :",
"Vang toi muon/yes",
"Khong toi chi ghe tham thoi/no"})
end;
function no()
end;
function yes()
if (GetItemCount(141) >= 1) then
SayEx({"Viec hoc skill mat 20 KNB.Dai hiep co chac chan hoac skill khong :",
"Vang toi muon/yes2",
"Khong toi chi ghe tham ngai/no"})
else
SayEx({"Ban khong co bi kip 200 roi hay mau di tim bi kip roi den day gap ta ",
"Ket thuc doi thoai/no"})
end;
end;
function yes2()
if (GetItemCount(7) >= 20) then
SayEx({" ban chac chu",
"Vang toi chac/muon",
"Khong toi nghi lai roi/no"})
else
SayEx({"Ban khong co 20 KNB roi hay mau di tim bi kip roi den day gap ta ",
"Ket thuc doi thoai/no"})
end
end;
function muon()
if GetFaction() == "Thieu Lam Phai" then
for i=1,20 do DelItem(7) end
AddMagic(290,20)
AddMagic(295,20)
AddMagic(454,20)
elseif GetFaction() == "Thien Vuong Bang" then
for i=1,20 do DelItem(7) end
AddMagic(293,20)
AddMagic(310,20)
AddMagic(445,20)
AddMagic(455,20)
elseif GetFaction() == "Duong Mon" then
for i=1,20 do DelItem(7) end
AddMagic(288,20)
AddMagic(286,20)
AddMagic(299,20)
AddMagic(451,20)
elseif GetFaction() == "Ngu Doc Giao" then
for i=1,20 do DelItem(7) end
AddMagic(297,20)
AddMagic(446,20)
elseif GetFaction() == "Nga My Phai" then
for i=1,20 do DelItem(7) end
AddMagic(313,20)
AddMagic(422,20)
elseif GetFaction() == "Thuy Yen Mon" then
for i=1,20 do DelItem(7) end
AddMagic(448,20)
elseif GetFaction() == "Cai Bang" then
for i=1,20 do DelItem(7) end
AddMagic(300,20)
AddMagic(445,20)
elseif GetFaction() == "Thien Nhan Giao" then
for i=1,20 do DelItem(7) end
AddMagic(285,20)
elseif GetFaction() == "Vo Dang Phai" then
for i=1,20 do DelItem(7) end
AddMagic(315,20)
AddMagic(312,20)

elseif GetFaction() == "Con Lon Phai" then
for i=1,20 do DelItem(7) end
AddMagic(439,20)
end;

minh add thử vào npc aphuong nhưng ko hoạt đông

[S]ocola[S]an
21-08-10, 11:53 AM
function yes()
if (GetItemCount(141) >= 1) then
SayEx({"Viec hoc skill mat 20 KNB.Dai hiep co chac chan hoac skill khong :",
"Vang toi muon/yes2",
"Khong toi chi ghe tham ngai/no"})
else
SayEx({"Ban khong co bi kip 200 roi hay mau di tim bi kip roi den day gap ta ",
"Ket thuc doi thoai/no"})
end;
end;
Bỏ dấu phẩy ở end trên đi


function muon()
if GetFaction() == "Thieu Lam Phai" then
for i=1,20 do DelItem(7) end
AddMagic(290,20)
AddMagic(295,20)
AddMagic(454,20)
elseif GetFaction() == "Thien Vuong Bang" then
for i=1,20 do DelItem(7) end
AddMagic(293,20)
AddMagic(310,20)
AddMagic(445,20)
AddMagic(455,20)
elseif GetFaction() == "Duong Mon" then
for i=1,20 do DelItem(7) end
AddMagic(288,20)
AddMagic(286,20)
AddMagic(299,20)
AddMagic(451,20)
elseif GetFaction() == "Ngu Doc Giao" then
for i=1,20 do DelItem(7) end
AddMagic(297,20)
AddMagic(446,20)
elseif GetFaction() == "Nga My Phai" then
for i=1,20 do DelItem(7) end
AddMagic(313,20)
AddMagic(422,20)
elseif GetFaction() == "Thuy Yen Mon" then
for i=1,20 do DelItem(7) end
AddMagic(448,20)
elseif GetFaction() == "Cai Bang" then
for i=1,20 do DelItem(7) end
AddMagic(300,20)
AddMagic(445,20)
elseif GetFaction() == "Thien Nhan Giao" then
for i=1,20 do DelItem(7) end
AddMagic(285,20)
elseif GetFaction() == "Vo Dang Phai" then
for i=1,20 do DelItem(7) end
AddMagic(315,20)
AddMagic(312,20)

elseif GetFaction() == "Con Lon Phai" then
for i=1,20 do DelItem(7) end
AddMagic(439,20)
end;
Thiếu end

thaihoa91
21-08-10, 01:15 PM
Góp ý : CODE này gọi là Script code LUA

Còn Spr mà bạn nói là 1 loại hình ảnh trong game !