R 1
Roksam
[DEV]AB 1
[DEV]AB
Sevdamsın 1
Sevdamsın
farkmt2official 1
farkmt2official
emirhanHCL 1
emirhanHCL
Scarlet 1
Scarlet
Best Studio 1
Best Studio
Hikaye Ekle

[Pyton] Anlamsız bir hata

  • Konuyu başlatan Konuyu başlatan saidk1996
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 7
  • Görüntüleme Görüntüleme 1K

Türkiye'de ilk Mobil & PC Aynı Anda Metin2 Oyna. Triarchonline kalıcı ve uzun ömürlü yapısı ile 24 Temmuz'da açılıyor. | 1-99 Mobil Metin2 Triarch HEMEN TIKLA!

Aşagıdada görüldügü gibi butonları sorunsuz ekliyorum questleri okutuyorum

reload çekiyorum reboot atıyorum ama yok butonlar çalışmıyor

anlayan birisi yardım edebilirse çok güzel olur :)

Ek Açıklama:

maxmiblackforce-v.3.6-client kullanıyorum

daha önce demirgame çoklu buton ekliydi sorunsuz çalışıyordu kaldırdım bunları ekledigimde yani taskbara ekledigimde butonlar çalışmıyor.

Ek Dosyalar:

root & locale

Virüs total

Questler:

Depo


Kod:
[CENTER]quest depo begin[/CENTER]
  state start begin 
        when login begin
            cmdchat("depo_button "..q.getcurrentquestindex())
        end
       when info or button begin 
            if pc.get_map_index() == 66 or pc.get_map_index() >= 660000 then
                return
            else
            if pc.get_map_index() == 113 or pc.get_map_index() >= 1130000 then
            else
                game.open_safebox()
            end
            end 
        end
    end 
end
Teleport

Kod:
quest teleport begin
   state start begin
        when login begin
            cmdchat("teleport_button "..q.getcurrentquestindex())
        end
      when button or info begin
          say_title("Işınlanma Yüzüğü ")
        say("Nereye gitmek istiyorsun?")
    local s = select("Köyler","Orman Bölgeleri","Örümcek Zindanı ","Sürgün Mağarası ","Diğer Bölgeler","Kapat ")
        if s == 1 then
        say_title("Işınlanma Yüzüğü ")
    local ss = select("Kırmızı Bayrak (1.Köy)","Kırmızı Bayrak (2.Köy)","Sarı Bayrak (1.Köy)","Sarı Bayrak (2.Köy)","Mavi Bayrak (1.Köy)","Mavi Bayrak (2.Köy)","Vazgeç ")
    if ss == 1 then
        pc.warp(474300,954800)
    elseif ss == 2 then
        pc.warp(360800,877600)
    elseif ss == 3 then
        pc.warp(63800,166400)
    elseif ss == 4 then
        pc.warp(138500,234900)
    elseif ss == 5 then
        pc.warp(959800,268400)
    elseif ss == 6 then
        pc.warp(873100,242600)
    end
    elseif s == 2 then
        say_title("Işınlanma Yüzüğü ")
    local sss = select("Hayalet Orman","Kızıl Orman Başlangıcı ","Kızıl Orman Sonu","Vazgeç ")
    if sss == 1 then
        pc.warp(288700,5700)
    elseif sss == 2 then
        pc.warp(1119900,70800)
    elseif sss == 3 then
        pc.warp(1118100,8600)
    end
    elseif s == 3 then
        say_title("Işınlanma Yüzüğü ")
    local zindan = select("Örümcek Zindanı 1. Kat Başı ","Örümcek Zindanı 2. Kat Sonu","Vazgeç ")
        if zindan == 1 then
        pc.warp(59800,497300)
    elseif zindan == 2 then
        pc.warp(704100,521900)    
    end
    elseif s == 4 then
    say_title("Işınlanma Yüzüğü ")
        say("Sürgün Mağarası girişine ışınlanıyorsun...")
        wait()
        pc.warp(284400,810700)
    elseif s == 5 then
        say_title("Işınlanma Yüzüğü ")
    local sssssss = select("Seungryong Vadisi","Sohan Dağı ","Yongbi Çölü ","Doyyumhwan","Devler Diyarı ","Şeytan Kulesi","Şeytan Mezarlığı ","Kırmızı Ejderha Kalesi ","Nemere'nin Gözetleme Kulesi ","Vazgeç ")
    if sssssss == 1 then
        pc.warp(336000,755600)
    elseif sssssss == 2 then
        pc.warp(436400,215600)
    elseif sssssss == 3 then
        pc.warp(296800,547400)
    elseif sssssss == 4 then
        pc.warp(600800,687400)
    elseif sssssss == 5 then
        pc.warp(829900,763300)
    elseif sssssss == 6 then
        pc.warp(590500,110500)
    elseif sssssss == 7 then
        pc.warp(591100,99300)
    elseif sssssss == 8 then
        pc.warp(614739,706929)
    elseif sssssss == 9 then
        pc.warp(432792,165998)
        end
    elseif s == 9 then
    end
                end
            end
        end

Horse (at)

Kod:
quest horse_button begin
    state start begin
        when login begin
            cmdchat("horse_button "..q.getcurrentquestindex())
        end
        when button begin
            if pc.get_map_index() != 113 or pc.get_map_index() >= 1130000 then
                if horse.is_summon() then
                    horse.unsummon()
                else
                    horse.summon()
                end
            end
            if pc.getqf("at_p") == 0 then
                pc.set_skill_level(131,50)
                pc.setqf("at_p",1)
            end
        end
    end
end


Resimler:

NqmE8X.png


ogo7p9.png

 
Root içerisinden taskbarların bulunduğu komutu kontrol et, taskbara eklemede sıkıntı yok localede problem olacağını zannetmem.

teleport_button "..q.getcurrentquestindex()) mesela bu kodu

root içerisinden arat uitaskbar.py, game.py dosyalarında.
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst