quest lanetli_kilic begin
state start begin
when kill begin
if pc.count_item(279) > 0 then
local sans = number(1, 100)
local ruh_puanı = pc.getqf("kilic_ruh")
if sans <= 5 then
local mesajlar = {"Daha fazla kan istiyorum!", "Bu kadar mı hızlısın?", "Ruhun çok lezzetli...", "Karanlık bizi çağırıyor!"}
chat("Lanetli Kılıç: " .. mesajlar[number(1, 4)])
end
pc.setqf("kilic_ruh", ruh_puanı + 1)
if ruh_puanı >= 100 then
chat("Lanetli Kılıç: Doydum... Şimdilik. Al bu gücü!")
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*5)
pc.setqf("kilic_ruh", 0)
end
end
end
when login or levelup begin
loop_timer("aclik_kontrol", 600)
end
when aclik_kontrol.timer begin
if pc.count_item(279) > 0 and pc.getqf("kilic_ruh") < 10 then
chat("Lanetli Kılıç: BENİ AÇ BIRAKTIN!")
pc.change_hp(-2000)
affect.add_collect(apply.MOV_SPEED, -20, 60)
end
end
end
end