Çözüldü Bayrağa göre ışınlanma yüzüğü

  • Konuyu açan Konuyu açan aranx
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 4
  • Gösterim Gösterim 61
Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

aranx

Üye
Üye
Mesaj
11
Beğeni
1
Puan
50
Ticaret Puanı
0
Merhaba,

Başlıktada belirttiğim üzere bayrağa, 1-2 köy haritalarına ışınlanma sağlayan bir yüzük questi nasıl ayarlayabilirim? Gidip en saçma yerlerde tıkanıyorum
 
Çözüm
Kod:
Genişlet Daralt Kopyala
quest isinlanma_yuzugu begin
    state start begin
        when 40005.use begin
        say_title("Seyahat Yüzügü ")
        say("Nereye gitmek istiyorsun?")
        local s = select("Köyler","Diger Bölgeler","Kapat")
            if s == 1 then
            local ss = select("Kirmizi Bayrak 1.Köy (Shinsoo)","Kirmizi Bayrak 2.Köy (Shinsoo)","Sari Bayrak 1.Köy (Chunjo)","Sari Bayrak 2.Köy (Chunjo)","Mavi Bayrak 1.Köy (Jinno)","Mavi Bayrak 2.Köy (Jinno)","Vazgeç ")
                if ss == 1 then
                pc.warp(474200,954400)
                elseif ss == 2 then
                pc.warp(352900,882500)
                elseif ss == 3 then
                pc.warp(63200,166100)
                elseif ss == 4 then...
questi görmeden bir şey diyemeyiz ekler misiniz?
 
questi görmeden bir şey diyemeyiz ekler misiniz?
Kod:
Genişlet Daralt Kopyala
quest isinlanma_yuzugu begin
    state start begin
        when 40005.use begin
        say_title("Seyahat Yüzügü ")
        say("Nereye gitmek istiyorsun?")
        local s = select("Köyler","Diger Bölgeler","Kapat")
            if s == 1 then
            local ss = select("Kirmizi Bayrak 1.Köy (Shinsoo)","Kirmizi Bayrak 2.Köy (Shinsoo)","Sari Bayrak 1.Köy (Chunjo)","Sari Bayrak 2.Köy (Chunjo)","Mavi Bayrak 1.Köy (Jinno)","Mavi Bayrak 2.Köy (Jinno)","Vazgeç ")
                if ss == 1 then
                pc.warp(474200,954400)
                elseif ss == 2 then
                pc.warp(352900,882500)
                elseif ss == 3 then
                pc.warp(63200,166100)
                elseif ss == 4 then
                pc.warp(145600,239900)
                elseif ss == 5 then
                pc.warp(960100,268700)
                elseif ss == 6 then
                pc.warp(863900,245900)
                end
            elseif s == 2 then
            local sssssss = select("Seungryong Vadisi","Sohan Dagi ","Yongbi Çölü ","Doyyumhwan","Devler Diyari ","Seytan Kulesi","Vazgeç ")
                if sssssss == 1  then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(402100,673900)
                elseif pc.get_empire() == 2 then
                pc.warp(270400 ,739900)
                elseif pc.get_empire() == 3 then
                pc.warp(321300,808000)
                end
                else
                pc.warp(336000,755600)
                end
                elseif sssssss == 2 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(434200,290600)
                elseif pc.get_empire() == 2 then
                pc.warp(375200,174900)
                elseif pc.get_empire() == 3 then
                pc.warp(491800,173600)
                end
                else
                pc.warp(436400,215600)
                end
                elseif sssssss == 3 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(217800,627200)
                elseif pc.get_empire() == 2 then
                pc.warp(221900,502700)
                elseif pc.get_empire() == 3 then
                pc.warp(344000,502500)
                end
                else
                pc.warp(296800,547400)
                end
                elseif sssssss == 4 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(599400,756300)
                elseif pc.get_empire() == 2 then
                pc.warp(597800,622200)
                elseif pc.get_empire() == 3 then
                pc.warp(730700,689800)
                end
                else
                pc.warp(600800,687400)
                end
                elseif sssssss == 5 then
                pc.warp(829900,763300)
                elseif sssssss == 6 then
                pc.warp(591700,100100)
                elseif sssssss == 7 then
                return
                end
            elseif s == 3 then
            return
            end
        end
    end
end

Basit bir yüzük kodu bunu sadece bayraklara göre çevirmek istiyorum
 
Kod:
Genişlet Daralt Kopyala
quest isinlanma_yuzugu begin
    state start begin
        when 40005.use begin
        say_title("Seyahat Yüzügü ")
        say("Nereye gitmek istiyorsun?")
        local s = select("Köyler","Diger Bölgeler","Kapat")
            if s == 1 then
            local ss = select("Kirmizi Bayrak 1.Köy (Shinsoo)","Kirmizi Bayrak 2.Köy (Shinsoo)","Sari Bayrak 1.Köy (Chunjo)","Sari Bayrak 2.Köy (Chunjo)","Mavi Bayrak 1.Köy (Jinno)","Mavi Bayrak 2.Köy (Jinno)","Vazgeç ")
                if ss == 1 then
                pc.warp(474200,954400)
                elseif ss == 2 then
                pc.warp(352900,882500)
                elseif ss == 3 then
                pc.warp(63200,166100)
                elseif ss == 4 then
                pc.warp(145600,239900)
                elseif ss == 5 then
                pc.warp(960100,268700)
                elseif ss == 6 then
                pc.warp(863900,245900)
                end
            elseif s == 2 then
            local sssssss = select("Seungryong Vadisi","Sohan Dagi ","Yongbi Çölü ","Doyyumhwan","Devler Diyari ","Seytan Kulesi","Vazgeç ")
                if sssssss == 1  then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(402100,673900)
                elseif pc.get_empire() == 2 then
                pc.warp(270400 ,739900)
                elseif pc.get_empire() == 3 then
                pc.warp(321300,808000)
                end
                else
                pc.warp(336000,755600)
                end
                elseif sssssss == 2 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(434200,290600)
                elseif pc.get_empire() == 2 then
                pc.warp(375200,174900)
                elseif pc.get_empire() == 3 then
                pc.warp(491800,173600)
                end
                else
                pc.warp(436400,215600)
                end
                elseif sssssss == 3 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(217800,627200)
                elseif pc.get_empire() == 2 then
                pc.warp(221900,502700)
                elseif pc.get_empire() == 3 then
                pc.warp(344000,502500)
                end
                else
                pc.warp(296800,547400)
                end
                elseif sssssss == 4 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(599400,756300)
                elseif pc.get_empire() == 2 then
                pc.warp(597800,622200)
                elseif pc.get_empire() == 3 then
                pc.warp(730700,689800)
                end
                else
                pc.warp(600800,687400)
                end
                elseif sssssss == 5 then
                pc.warp(829900,763300)
                elseif sssssss == 6 then
                pc.warp(591700,100100)
                elseif sssssss == 7 then
                return
                end
            elseif s == 3 then
            return
            end
        end
    end
end

Basit bir yüzük kodu bunu sadece bayraklara göre çevirmek istiyorum
eğer yanlış anlamadıysam seni bu şekilde bir şey yapmak istiyorsun.

warp.quest:
Genişlet Daralt Kopyala
quest isinlanma_yuzugu begin
    state start begin
        when 40005.use begin
        say_title("Seyahat Yüzügü ")
        say("Nereye gitmek istiyorsun?")
        local s = select("Köyler","Diger Bölgeler","Kapat")
            if s == 1 then
                if pc . is_gm ( ) then
                    say("Yetkili oldugun icin butun haritalara gidebilirsin. " )
                    local ss = select("Kirmizi Bayrak 1.Köy (Shinsoo)","Kirmizi Bayrak 2.Köy (Shinsoo)","Sari Bayrak 1.Köy (Chunjo)","Sari Bayrak 2.Köy (Chunjo)","Mavi Bayrak 1.Köy (Jinno)","Mavi Bayrak 2.Köy (Jinno)","Vazgeç ")
                    if ss == 1 then
                        pc.warp(474200,954400)
                    elseif ss == 2 then
                        pc.warp(352900,882500)
                    elseif ss == 3 then
                        pc.warp(63200,166100)
                    elseif ss == 4 then
                        pc.warp(145600,239900)
                    elseif ss == 5 then
                        pc.warp(960100,268700)
                    elseif ss == 6 then
                        pc.warp(863900,245900)
                    end
                else
                    if pc . get_empire ( ) == 1 then
                        local ss = select("Kirmizi Bayrak 1.Köy (Shinsoo)","Kirmizi Bayrak 2.Köy (Shinsoo)","Vazgeç ")
                        if ss == 1 then
                            pc.warp(474200,954400)
                        elseif ss == 2 then
                            pc.warp(352900,882500)
                        end
                    elseif pc . get_empire ( ) == 2 then
                        local ss = select("Sari Bayrak 1.Köy (Chunjo)","Sari Bayrak 2.Köy (Chunjo)","Vazgeç ")
                        if ss == 1 then
                            pc.warp(63200,166100)
                        elseif ss == 2 then
                            pc.warp(145600,239900)
                        end
                    elseif pc . get_empire ( ) == 3 then
                        local ss = select("Mavi Bayrak 1.Köy (Jinno)","Mavi Bayrak 2.Köy (Jinno)","Vazgeç ")
                        if ss == 1 then
                            pc.warp(960100,268700)
                        elseif ss == 2 then
                            pc.warp(863900,245900)
                        end
                    end
                end
            elseif s == 2 then
            local sssssss = select("Seungryong Vadisi","Sohan Dagi ","Yongbi Çölü ","Doyyumhwan","Devler Diyari ","Seytan Kulesi","Vazgeç ")
                if sssssss == 1  then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(402100,673900)
                elseif pc.get_empire() == 2 then
                pc.warp(270400 ,739900)
                elseif pc.get_empire() == 3 then
                pc.warp(321300,808000)
                end
                else
                pc.warp(336000,755600)
                end
                elseif sssssss == 2 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(434200,290600)
                elseif pc.get_empire() == 2 then
                pc.warp(375200,174900)
                elseif pc.get_empire() == 3 then
                pc.warp(491800,173600)
                end
                else
                pc.warp(436400,215600)
                end
                elseif sssssss == 3 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(217800,627200)
                elseif pc.get_empire() == 2 then
                pc.warp(221900,502700)
                elseif pc.get_empire() == 3 then
                pc.warp(344000,502500)
                end
                else
                pc.warp(296800,547400)
                end
                elseif sssssss == 4 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(599400,756300)
                elseif pc.get_empire() == 2 then
                pc.warp(597800,622200)
                elseif pc.get_empire() == 3 then
                pc.warp(730700,689800)
                end
                else
                pc.warp(600800,687400)
                end
                elseif sssssss == 5 then
                pc.warp(829900,763300)
                elseif sssssss == 6 then
                pc.warp(591700,100100)
                elseif sssssss == 7 then
                return
                end
            elseif s == 3 then
            return
            end
        end
    end
end
 
Çözüm
eğer yanlış anlamadıysam seni bu şekilde bir şey yapmak istiyorsun.

warp.quest:
Genişlet Daralt Kopyala
quest isinlanma_yuzugu begin
    state start begin
        when 40005.use begin
        say_title("Seyahat Yüzügü ")
        say("Nereye gitmek istiyorsun?")
        local s = select("Köyler","Diger Bölgeler","Kapat")
            if s == 1 then
                if pc . is_gm ( ) then
                    say("Yetkili oldugun icin butun haritalara gidebilirsin. " )
                    local ss = select("Kirmizi Bayrak 1.Köy (Shinsoo)","Kirmizi Bayrak 2.Köy (Shinsoo)","Sari Bayrak 1.Köy (Chunjo)","Sari Bayrak 2.Köy (Chunjo)","Mavi Bayrak 1.Köy (Jinno)","Mavi Bayrak 2.Köy (Jinno)","Vazgeç ")
                    if ss == 1 then
                        pc.warp(474200,954400)
                    elseif ss == 2 then
                        pc.warp(352900,882500)
                    elseif ss == 3 then
                        pc.warp(63200,166100)
                    elseif ss == 4 then
                        pc.warp(145600,239900)
                    elseif ss == 5 then
                        pc.warp(960100,268700)
                    elseif ss == 6 then
                        pc.warp(863900,245900)
                    end
                else
                    if pc . get_empire ( ) == 1 then
                        local ss = select("Kirmizi Bayrak 1.Köy (Shinsoo)","Kirmizi Bayrak 2.Köy (Shinsoo)","Vazgeç ")
                        if ss == 1 then
                            pc.warp(474200,954400)
                        elseif ss == 2 then
                            pc.warp(352900,882500)
                        end
                    elseif pc . get_empire ( ) == 2 then
                        local ss = select("Sari Bayrak 1.Köy (Chunjo)","Sari Bayrak 2.Köy (Chunjo)","Vazgeç ")
                        if ss == 1 then
                            pc.warp(63200,166100)
                        elseif ss == 2 then
                            pc.warp(145600,239900)
                        end
                    elseif pc . get_empire ( ) == 3 then
                        local ss = select("Mavi Bayrak 1.Köy (Jinno)","Mavi Bayrak 2.Köy (Jinno)","Vazgeç ")
                        if ss == 1 then
                            pc.warp(960100,268700)
                        elseif ss == 2 then
                            pc.warp(863900,245900)
                        end
                    end
                end
            elseif s == 2 then
            local sssssss = select("Seungryong Vadisi","Sohan Dagi ","Yongbi Çölü ","Doyyumhwan","Devler Diyari ","Seytan Kulesi","Vazgeç ")
                if sssssss == 1  then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(402100,673900)
                elseif pc.get_empire() == 2 then
                pc.warp(270400 ,739900)
                elseif pc.get_empire() == 3 then
                pc.warp(321300,808000)
                end
                else
                pc.warp(336000,755600)
                end
                elseif sssssss == 2 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(434200,290600)
                elseif pc.get_empire() == 2 then
                pc.warp(375200,174900)
                elseif pc.get_empire() == 3 then
                pc.warp(491800,173600)
                end
                else
                pc.warp(436400,215600)
                end
                elseif sssssss == 3 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(217800,627200)
                elseif pc.get_empire() == 2 then
                pc.warp(221900,502700)
                elseif pc.get_empire() == 3 then
                pc.warp(344000,502500)
                end
                else
                pc.warp(296800,547400)
                end
                elseif sssssss == 4 then
                if game.get_event_flag("defend_and_destroy") == 1 then
                if pc.get_empire() == 1 then
                pc.warp(599400,756300)
                elseif pc.get_empire() == 2 then
                pc.warp(597800,622200)
                elseif pc.get_empire() == 3 then
                pc.warp(730700,689800)
                end
                else
                pc.warp(600800,687400)
                end
                elseif sssssss == 5 then
                pc.warp(829900,763300)
                elseif sssssss == 6 then
                pc.warp(591700,100100)
                elseif sssssss == 7 then
                return
                end
            elseif s == 3 then
            return
            end
        end
    end
end
Get empire mıymış, çok teşekkürler evet güzel olmuş eline sağlık
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst