Arkadaşlar merhaba sunucuda satıcıda satılan biyolog itemleri ve ruhtaşları vardır kaldırdım bazı itemler düşüyor fakat ruh taşları asla düşmüyor questine baktım düzenlemeye çalıştım ekledim fakat ne yaptıysam olmadı kodlar şu şekilde
quest biolog_drops begin
state start begin
function t_IsCompleted()
local grade =
{
(pc.getf("bio.durum", "2")),
(pc.getf("bio.durum", "6")),
(pc.getf("bio.durum", "7")),
(pc.getf("bio.durum", "8")),
(pc.getf("bio.durum", "9")),
(pc.getf("bio.durum", "10")),
(pc.getf("bio.durum", "11"))
}
return grade
end
function t_ItemVnum()
local item = { 30006, 30165, 30166, 30167, 30168, 30251, 30252 }
return item
end
function t_MaximChance()
local r_maxim = { 100, 200, 100, 200, 100, 200, 400 }
return r_maxim
end
when 601.kill begin
local r = number(1, biolog_drops.t_MaximChance()[1])
if biolog_drops.t_IsCompleted()[1] == 0 then
if r <= 5 then
pc.give_item2(biolog_drops.t_ItemVnum()[1], 1) end end end
when 2301.kill or 2302.kill or 2303.kill or 2304.kill or 2305.kill or 2311.kill or 2312.kill or 2313.kill or 2314.kill or 2315.kill begin
local r = number(1, biolog_drops.t_MaximChance()[2])
if biolog_drops.t_IsCompleted()[2] == 0 then
if r == 1 and pc.count_item(biolog_drops.t_ItemVnum()[2]) == 0 then
pc.give_item2(biolog_drops.t_ItemVnum()[2])
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
when 1401.kill or 1402.kill or 1403.kill or 1601.kill or 1602.kill or 1603.kill begin
local r = number(1, biolog_drops.t_MaximChance()[3])
if biolog_drops.t_IsCompleted()[3] == 0 then
if r <= 5 and pc.count_item(biolog_drops.t_ItemVnum()[3]) == 0 then
pc.give_item2(biolog_drops.t_ItemVnum()[3], 1)
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
when 2311.kill or 2312.kill or 2313.kill or 2314.kill or 2315.kill begin
local r = number(1, biolog_drops.t_MaximChance()[4])
if biolog_drops.t_IsCompleted()[4] == 0 then
if r == 1 then
pc.give_item2(biolog_drops.t_ItemVnum()[4])
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
when 691.kill or 792.kill or 791.kill or 1093.kill or 1304.kill or 2091.kill or 2191.kill or 2206.kill or 1901.kill or 3090.kill or 3290.kill or 3590.kill begin
local r = number(1, biolog_drops.t_MaximChance()[5])
if biolog_drops.t_IsCompleted()[5] == 0 then
if r <= 30 and pc.count_item(biolog_drops.t_ItemVnum()[5]) == 0 then
pc.give_item2(biolog_drops.t_ItemVnum()[5], 1)
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
when 1135.kill or 1137.kill begin
local r = number(1, biolog_drops.t_MaximChance()[6])
if biolog_drops.t_IsCompleted()[6] == 0 then
if r <= 1 then
pc.give_item2(biolog_drops.t_ItemVnum()[6], 1)
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
when 2414.kill or 2412.kill begin
local r = number(1, biolog_drops.t_MaximChance()[7])
if biolog_drops.t_IsCompleted()[7] == 0 then
if r <= 1 then
pc.give_item2(biolog_drops.t_ItemVnum()[7], 1)
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
end
end
quest biolog_drops begin
state start begin
function t_IsCompleted()
local grade =
{
(pc.getf("bio.durum", "2")),
(pc.getf("bio.durum", "6")),
(pc.getf("bio.durum", "7")),
(pc.getf("bio.durum", "8")),
(pc.getf("bio.durum", "9")),
(pc.getf("bio.durum", "10")),
(pc.getf("bio.durum", "11"))
}
return grade
end
function t_ItemVnum()
local item = { 30006, 30165, 30166, 30167, 30168, 30251, 30252 }
return item
end
function t_MaximChance()
local r_maxim = { 100, 200, 100, 200, 100, 200, 400 }
return r_maxim
end
when 601.kill begin
local r = number(1, biolog_drops.t_MaximChance()[1])
if biolog_drops.t_IsCompleted()[1] == 0 then
if r <= 5 then
pc.give_item2(biolog_drops.t_ItemVnum()[1], 1) end end end
when 2301.kill or 2302.kill or 2303.kill or 2304.kill or 2305.kill or 2311.kill or 2312.kill or 2313.kill or 2314.kill or 2315.kill begin
local r = number(1, biolog_drops.t_MaximChance()[2])
if biolog_drops.t_IsCompleted()[2] == 0 then
if r == 1 and pc.count_item(biolog_drops.t_ItemVnum()[2]) == 0 then
pc.give_item2(biolog_drops.t_ItemVnum()[2])
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
when 1401.kill or 1402.kill or 1403.kill or 1601.kill or 1602.kill or 1603.kill begin
local r = number(1, biolog_drops.t_MaximChance()[3])
if biolog_drops.t_IsCompleted()[3] == 0 then
if r <= 5 and pc.count_item(biolog_drops.t_ItemVnum()[3]) == 0 then
pc.give_item2(biolog_drops.t_ItemVnum()[3], 1)
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
when 2311.kill or 2312.kill or 2313.kill or 2314.kill or 2315.kill begin
local r = number(1, biolog_drops.t_MaximChance()[4])
if biolog_drops.t_IsCompleted()[4] == 0 then
if r == 1 then
pc.give_item2(biolog_drops.t_ItemVnum()[4])
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
when 691.kill or 792.kill or 791.kill or 1093.kill or 1304.kill or 2091.kill or 2191.kill or 2206.kill or 1901.kill or 3090.kill or 3290.kill or 3590.kill begin
local r = number(1, biolog_drops.t_MaximChance()[5])
if biolog_drops.t_IsCompleted()[5] == 0 then
if r <= 30 and pc.count_item(biolog_drops.t_ItemVnum()[5]) == 0 then
pc.give_item2(biolog_drops.t_ItemVnum()[5], 1)
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
when 1135.kill or 1137.kill begin
local r = number(1, biolog_drops.t_MaximChance()[6])
if biolog_drops.t_IsCompleted()[6] == 0 then
if r <= 1 then
pc.give_item2(biolog_drops.t_ItemVnum()[6], 1)
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
when 2414.kill or 2412.kill begin
local r = number(1, biolog_drops.t_MaximChance()[7])
if biolog_drops.t_IsCompleted()[7] == 0 then
if r <= 1 then
pc.give_item2(biolog_drops.t_ItemVnum()[7], 1)
syschat("<Biyolog Görevleri> Görev için bir nesne elde ettiniz.") end end end
end
end


