- Mesaj
- 118
- Çözümler
- 5
- Beğeni
- 30
- Puan
- 454
- Ticaret Puanı
- 0
merhabalar aşağıda bıraktığım questi eklemeye çalıştığım zaman object dosyasının içerisine herhangi bir dosya oluşmuyor fakat okuturken bir problem olmuyor nasıl çözebilirim?
boss.lua:
quest spawn_boss begin
state start begin
function GetRandomBossVnum()
local boss_vnums = {6091}; -- Add as many as you like.
return table_get_random_item(boss_vnums);
end
when 71000.use begin
local cooldown_time = 300 -- 5 dakika (300 saniye) cooldown süresi
local current_time = os.time()
local last_use_time = pc.getqf("last_boss_spawn_time")
if last_use_time == 0 or current_time - last_use_time >= cooldown_time then
pc.setqf("last_boss_spawn_time", current_time)
mob.spawn(spawn_boss.GetRandomBossVnum(), pc.get_local_x(), pc.get_local_y(), 5, 1, 1);
else
local remaining_time = cooldown_time - (current_time - last_use_time)
say_title("Uyarı")
say("Bu öğeyi tekrar kullanmak için " .. remaining_time .. " saniye beklemelisin.")
end
end
end
end