Eline sağlık
Şeytan Kulesi Questi Geri Dönüş ve Giriş İyileştirilmesi
Üye
Katılım26 Şub 2026
Konular7
Mesajlar44
Elmas Konular0
Başarım0
ZirveCoin
0
Ticaret Puanı
+0
-0
Üye
Katılım11 Nis 2026
Konular11
Mesajlar93
Elmas Konular0
Başarım0
ZirveCoin
0
Ticaret Puanı
+0
-0
Üye
Katılım08 Nis 2026
Konular8
Mesajlar57
Elmas Konular0
Başarım0
ZirveCoin
0
Ticaret Puanı
+0
-0
08.05.2026 01:00
#11
Kod:maalesef hocam çalışmıyor-- asenis_dungeon_75 quest dungeon_kule begin state start begin ---------------------------------------------------------------------------------------------------------FUNCTIONS START function isSystemOpen() return (game.get_event_flag("dungeon_kule_sys")!=1) end function testMode() return false end function is_this_dungeon() if not pc.in_dungeon() then return false end local set = dungeon_kule.getSetting() return (d.get_orig_map_index()==set.map_index) end function isOutside() local set = dungeon_kule.getSetting() return (pc.get_map_index()==set.out_map_index) end function isValidCahnnel(ch) return true end function check_pc(ctype) -- remove items! local set = dungeon_kule.getSetting() local needs = set.needs if ctype == 1 then if pc.get_level() < needs[2] then return 2 end if needs[3] < pc.get_level() then return 3 end if pc.get_gold() < needs[1] then return 4 end if pc.is_busy() then return 6 end return 1 elseif ctype == 2 then if pc.is_busy() then return false end pc.change_gold(-needs[1]) return true end end function getSetting() return { ["map_index"] = 613, ["base_coor_local"] = {155, 101}, ["out_map_index"] = 65, ["out_coor_local"] = {529, 597}, ["open_time"] = 60*15, ["remain_time"] = 1800, ["needs"] = {0, 75, 120, 0, 1}, --Level 1 ["boss_lib"] = {1093, 109, 141} } end function sendRemainWhisper() local set = dungeon_kule.getSetting() local rem = (set.remain_time+pc.getqf("dungeon_kule_time"))-get_global_time() if rem > 0 then timer("Whisper_Kule", rem) end -- V4 end ---------------------------------------------------------------------------------------------------------FUNCTIONS END ---------------------------------------------------------------------------------------------------------LOGIN-LOGOUT START when login begin local pindex = pc.get_map_index() clear_letter() local set = dungeon_kule.getSetting() if pindex == set.map_index then if pc.get_local_x() < 160 and pc.get_local_y() > 910 then warp_to_village() else dungeon_kule.sendRemainWhisper() end elseif dungeon_kule.is_this_dungeon() then if not d.is_registered_pc() then warp_to_village() return end else dungeon_kule.sendRemainWhisper() end end ---------------------------------------------------------------------------------------------------------LOGIN-LOGOUT END ---------------------------------------------------------------------------------------------------------NPC START when 20348.chat."Beni içeri gönder..." with dungeon_kule.isValidCahnnel(pc.get_channel_id()) and dungeon_kule.isOutside() begin if not dungeon_kule.isSystemOpen() then setskin(0) syschat("Sistem, yönetici tarafından kapatılmıştır.") return end if (game.get_event_flag("dungeon_channel_login") == 1) then if pc.get_channel_id() != 1 then say("Zindanlara 1. kanal üzerinden giriş yapılabilir. ") return end end say_title("Merhabalar "..pc.get_name()) say("") local set = dungeon_kule.getSetting() -- Remain Time Disabled -- -- local remainTime = pc.getqf("dungeon_kule_time")+set.remain_time-get_global_time() if remainTime>0 then say("Bir oda açtıktan sonra toplam "..LIB_duration(set.remain_time).."beklemelisin.") say("") say("Tekrar oda açman için kalan bekleme süren: "..LIB_duration(remainTime)) say("") wait() return end say_reward("Gerekenleri sagliyorsaniz direkt odaya isinlanacaksiniz!") setskin(0) local control = dungeon_kule.check_pc(1) if control == 1 then if not dungeon_kule.check_pc(2) then return end local x = get_map_base_x(set.map_index)+set.base_coor_local[1]*100 local y = get_map_base_y(set.map_index)+set.base_coor_local[2]*100 d.new_jump(set.map_index, x, y, true) d.register_pc() -- Remain Time -- -- pc.setqf("dungeon_kule_time", get_global_time()) d.setf("level", 1) d.setf("creator", pc.get_player_id()) local blib = set.boss_lib d.spawn_mob(blib[1], blib[2], blib[3]) return elseif control == 2 then syschat("<Giris Kontrolü> Oda kurmak için leveliniz yeterli degil.") return elseif control == 3 then syschat("<Giris Kontrolü> Oda kurmak için leveliniz çok fazla.") return elseif control == 4 then syschat("<Giris Kontrolü> Oda kurmak için yeterli yanginiz bulunmuyor.") return elseif control == 5 then syschat("<Giris Kontrolü> Oda kurmak için gerekli nesneye/nesne sayısına sahip değilsiniz.") return elseif control == 6 then syschat("<Giris Kontrolü> Ticaret pencerelerini kapatmalisiniz.") return end end when Whisper_Kule.timer begin -- V4 send_whisper(pc.get_player_id(), "[Zindan Bilgilendirme]", "Şeytan Kulesi Zindanı'ndaki bekleme süreniz dolmuştur, tekrar oda açabilirsiniz.") end when 20348.chat."GM:: Bekleme Süresi Sıfırla" with pc.is_gm() and dungeon_kule.isValidCahnnel(pc.get_channel_id()) and dungeon_kule.isOutside() begin setskin(0) pc.delqf("dungeon_kule_time") cleartimer("Whisper_Kule") -- V4 end when 1093.kill with dungeon_kule.is_this_dungeon() and d.getf("level") == 1 begin d.setf("level", 0) -- if d.getf("notSelf") == 1 then notice_all(pc.get_name().." ve odasındakiler, Korku Zindanı Başkanı'nı öldürdü!") -- else notice_all(pc.get_name()..", Korku Zindanı Başkanı'nı tek başına öldürdü!") -- end -- V3 d.big_notice("3 dakika sonra oda kapatılacak!") ----d.exit_all2(60*3) timer('exit_d_kule', 60*3) end when exit_d_kule.timer begin d.exit_all_to_start_position() end end end
Yedeklerinizi alıp denermisiniz. Buradan bilgi geçerseniz sevinirim çalışıp çalışmadığı hakkında.
Üye
Katılım03 Şub 2026
Konular7
Mesajlar91
Elmas Konular0
Başarım0
ZirveCoin
0
Ticaret Puanı
+0
-0
Üye
Katılım08 Nis 2026
Konular8
Mesajlar57
Elmas Konular0
Başarım0
ZirveCoin
0
Ticaret Puanı
+0
-0
Üye
Katılım10 Ara 2025
Konular8
Mesajlar48
Elmas Konular0
Başarım0
ZirveCoin
0
Ticaret Puanı
+0
-0
Üye
Katılım03 Şub 2026
Konular7
Mesajlar91
Elmas Konular0
Başarım0
ZirveCoin
0
Ticaret Puanı
+0
-0
Bu konuyu görüntüleyenler
1 misafir
Cevap yazmak için giriş yapın.
Benzer Konular
18 cevap
2K görüntüleme
19 cevap
2K görüntüleme
11 cevap
1.9K görüntüleme
16 cevap
1.9K görüntüleme
6 cevap
1.9K görüntüleme


