PDA

View Full Version : [JX] Hướng dẫn em edit tỉ lệ thành công của đồ



dv911
23-06-12, 01:42 PM
thật ra là k có gì đâu
các bác chỉ em cách giảm thành công ép đồ HKMP ở thợ rèn ấy
em mới làm cái sv tụi nó ép dữ quá fai giảm tỉ lệ
pm yahoo: dv9112009 nha

nhan123615
23-06-12, 01:52 PM
ban dùng random(1,2) là 50% con muốn làm 10% thì random(1,10) thêm vào cript chế tạo LB đó

dv911
23-06-12, 01:58 PM
chỗ nào vậy bạn

--- THO REN THAN BI
--- CHUC NANG : EP ITEM HK
--- TAC GIA : JXVIETNAM
Include("\\Script\\source\\sourcejx49.lua")
HKDP = 3
BKDP = 150
OKDP = 152
DOPHOHK = 14
DOPHOBK = 15
DOPHOOK = 16
HT7 = 4
HT8 = 11
HT9 = 12

function chetaolb()
SayEx({"Xin chao !","Che tao Hoang Kim Lenh/hk","Tim hieu/timhieu","Thoat/no"})
end

function timhieu()
Talk(1,"","Hoang Kim Lenh : Doi 1 trang bi Hoang Kim")
end

function no()
end

function hk()
SayEx({"Nguyen lieu che tao Hoang Kim Lenh : \n<color=yellow>+ Hoang Kim Dai Phap\n+ Do Pho Hoang Kim Lenh\n+ Huyen Tinh 1\n+ Ti le thanh cong 100%","Che tao/hk1","Suy nghi lai/no"})
end

function bk()
SayEx({"Nguyen lieu che tao Bach Kim Lenh : \n<color=yellow>+ Bach Kim Dai Phap\n+ Do Pho Bach Kim Lenh\n+ Huyen Tinh 8\n+ Ti le thanh cong 100%","Che tao/bk1","Suy nghi lai/no"})
end

function ok()
SayEx({"Nguyen lieu che tao O Kim Lenh : \n<color=yellow>+ O Kim Dai Phap\n+ Do Pho O Kim Lenh\n+ Huyen Tinh 9\n+ Ti le thanh cong 100%","Che tao/ok1","Suy nghi lai/no"})
end

function hk1()
a = GetItemCount(HKDP)
b = GetItemCount(DOPHOHK)
c = GetItemCount(HT7)
if GetItemCount(HKDP) >= 1 then
if GetItemCount(DOPHOHK) >= 1 then
if GetItemCount(HT7) >= 1 then
DelItem(HKDP)
DelItem(DOPHOHK)
DelItem(HT7)
if GetItemCount(HKDP) == (a - 1) and GetItemCount(DOPHOHK) == (b - 1) and GetItemCount(HT7) == (c - 1) then
AddEventItem(49)
--logWrite("Che tao Hoang Kim Lenh")
Talk(1,"no","Che tao <color=yellow>Hoang Kim Lenh<color> thanh cong !")
else
Talk(1,"","Hack ha cung yeu !")
end
else
Talk(1,"","Ban khong co <color=cyan>Huyen Tinh 1")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>Do Pho Hoang Kim")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>Hoang Kim Dai Phap")
end
end

function bk1()
a = GetItemCount(BKDP)
b = GetItemCount(DOPHOBK)
c = GetItemCount(HT8)
if GetItemCount(BKDP) >= 1 then
if GetItemCount(DOPHOBK) >= 1 then
if GetItemCount(HT8) >= 1 then
DelItem(BKDP)
DelItem(DOPHOBK)
DelItem(HT8)
if GetItemCount(BKDP) == (a - 1) and GetItemCount(DOPHOBK) == (b - 1) and GetItemCount(HT8) == (c - 1) then
AddEventItem(50)
-- logWrite("Che tao Bach Kim Lenh")
Talk(1,"no","Che tao <color=yellow>Bach Kim Lenh<color> thanh cong !")
else
Talk(1,"","Hack ha cung yeu !")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>Huyen Tinh 8")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>Do Pho Bach Kim")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>Bach Kim Dai Phap")
end
end

function ok1()
a = GetItemCount(OKDP)
b = GetItemCount(DOPHOOK)
c = GetItemCount(HT9)
if GetItemCount(OKDP) >= 1 then
if GetItemCount(DOPHOOK) >= 1 then
if GetItemCount(HT9) >= 1 then
DelItem(OKDP)
DelItem(DOPHOOK)
DelItem(HT9)
if GetItemCount(OKDP) == (a - 1) and GetItemCount(DOPHOOK) == (b - 1) and GetItemCount(HT9) == (c - 1) then
AddEventItem(51)
--logWrite("Che tao O Kim Lenh")
Talk(1,"no","Che tao <color=yellow>O Kim Lenh<color> thanh cong !")
else
Talk(1,"","Hack ha cung yeu !")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>Huyen Tinh 8")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>Do Pho O Kim")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>O Kim Dai Phap")
end
end

nhan123615
23-06-12, 04:36 PM
a = GetItemCount(HKDP)
b = GetItemCount(DOPHOHK)
c = GetItemCount(HT7)
i = random(1,10)
if i = 10 then
if GetItemCount(HKDP) >= 1 then
if GetItemCount(DOPHOHK) >= 1 then
if GetItemCount(HT7) >= 1 then
DelItem(HKDP)
DelItem(DOPHOHK)
DelItem(HT7)
if GetItemCount(HKDP) == (a - 1) and GetItemCount(DOPHOHK) == (b - 1) and GetItemCount(HT7) == (c - 1) then
AddEventItem(49)
--logWrite("Che tao Hoang Kim Lenh")
Talk(1,"no","Che tao <color=yellow>Hoang Kim Lenh<color> thanh cong !")
else
Talk(1,"","Hack ha cung yeu !")
end
else
Talk(1,"","Ban khong co <color=cyan>Huyen Tinh 1")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>Do Pho Hoang Kim")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>Hoang Kim Dai Phap")
end
elseif i >= 1 and i < 10 then
if GetItemCount(HKDP) >= 1 then
if GetItemCount(DOPHOHK) >= 1 then
if GetItemCount(HT7) >= 1 then
DelItem(HKDP)
DelItem(DOPHOHK)
DelItem(HT7)
if GetItemCount(HKDP) == (a - 1) and GetItemCount(DOPHOHK) == (b - 1) and GetItemCount(HT7) == (c - 1) then

--logWrite("Che tao Hoang Kim Lenh")
Talk(1,"no","Che tao <color=yellow>Hoang Kim Lenh<color> that bai !")
else
Talk(1,"","Hack ha cung yeu !")
end
else
Talk(1,"","Ban khong co <color=cyan>Huyen Tinh 1")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>Do Pho Hoang Kim")
end
else
Talk(1,"","Ban khong co 1 <color=cyan>Hoang Kim Dai Phap")
end
end

hinh như là vầy thì phải đây là 10% nha test thử coi đúng không tui cũng không nhớ rõ nữa