Çözüldü Ep kuponu calışmıyor

  • Konuyu açan Konuyu açan fevzi17
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 6
  • Gösterim Gösterim 195
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ı.

fevzi17

Üye
Üye
Mesaj
6
Beğeni
4
Puan
425
Ticaret Puanı
0
Ep kuponuna Sağ tıkladığım zaman BU NESLENER GECİCİ OLARAK DEVRE DIŞIDI BIRAKILDI diye bir hata alıyorum yardımcı olabilcek varmı ?

0611_212315.jpg
 
Çözüm
Çözüm şu şekilde;

Questler bölümünden dragon_coins.lua quest dosyasını not defteri ile açın.


Lua (Quest):
Genişlet Daralt Kopyala
--[[
    Mara Entertainment Lua Scripts
    Copyright Phebia2 - Bonus2 - Janti2
]]--
quest charge_cash_by_voucher begin
    state start begin
        function charge(amount, charge_type)
            if charge_type == nil then
                charge_type = "cash"
            end

            if 0 < amount then
                -- syntax : pc.charge_cash(amount, charge_type)
                -- warning:     1. 'charge_type' : "cash"(default) | "mileage"
                --            2. 'amount' must be positive number.
                local result = pc.charge_cash(amount, charge_type)

                if true == result then...
kullanmaya çalıştığınızda çıkan yazıyı dosyalarının arasında notepad++ ile aratıp sonuçları atar mısın? muhtemelen yorum satırı yapılıp else eklenmiş. :unsure:
 
Çözüm şu şekilde;

Questler bölümünden dragon_coins.lua quest dosyasını not defteri ile açın.


Lua (Quest):
Genişlet Daralt Kopyala
--[[
    Mara Entertainment Lua Scripts
    Copyright Phebia2 - Bonus2 - Janti2
]]--
quest charge_cash_by_voucher begin
    state start begin
        function charge(amount, charge_type)
            if charge_type == nil then
                charge_type = "cash"
            end

            if 0 < amount then
                -- syntax : pc.charge_cash(amount, charge_type)
                -- warning:     1. 'charge_type' : "cash"(default) | "mileage"
                --            2. 'amount' must be positive number.
                local result = pc.charge_cash(amount, charge_type)

                if true == result then
                    local item_id = item.get_id()
                    syschat(string.format("%s Ejderha Parası Kazandın.", amount))

                    local flag_name = "total_" .. charge_type
                    pc.setqf(flag_name, pc.getqf(flag_name) + amount)

                    if item.get_count() > 1 then
                        item.set_count0(item.get_count()-1)
                    else
                        item.remove()
                    end
                end
            end

            return false
        end

        when 80014.use or 80015.use or 80016.use or 80017.use or 80022.use or 80023.use or 80024.use or 80010.use or 80011.use or 80012.use or 80013.use begin
            --if game.get_event_flag("ep_kuponu") == 0 then
                --syschat("Bu nesneler gecici olarak devredisi birakildi!")
                --return
            --end

            local amount = item.get_value(0)

            local check = player_busy_check()
            if check != 1 and check != 0 then
                syschat(player_busy_check_return(check))
                return
            end

            charge_cash_by_voucher.charge(amount, "cash")
        end
    end
end

bununla değiştirin veya oyun içerisinden gm karakteriniz ile sohbet bölümüne şunu yazın;

/e ep_kuponu 1 yazın ve tekrar deneyin
 
Çözüm
Çözüm şu şekilde;

Questler bölümünden dragon_coins.lua quest dosyasını not defteri ile açın.


Lua (Quest):
Genişlet Daralt Kopyala
--[[
    Mara Entertainment Lua Scripts
    Copyright Phebia2 - Bonus2 - Janti2
]]--
quest charge_cash_by_voucher begin
    state start begin
        function charge(amount, charge_type)
            if charge_type == nil then
                charge_type = "cash"
            end

            if 0 < amount then
                -- syntax : pc.charge_cash(amount, charge_type)
                -- warning:     1. 'charge_type' : "cash"(default) | "mileage"
                --            2. 'amount' must be positive number.
                local result = pc.charge_cash(amount, charge_type)

                if true == result then
                    local item_id = item.get_id()
                    syschat(string.format("%s Ejderha Parası Kazandın.", amount))

                    local flag_name = "total_" .. charge_type
                    pc.setqf(flag_name, pc.getqf(flag_name) + amount)

                    if item.get_count() > 1 then
                        item.set_count0(item.get_count()-1)
                    else
                        item.remove()
                    end
                end
            end

            return false
        end

        when 80014.use or 80015.use or 80016.use or 80017.use or 80022.use or 80023.use or 80024.use or 80010.use or 80011.use or 80012.use or 80013.use begin
            --if game.get_event_flag("ep_kuponu") == 0 then
                --syschat("Bu nesneler gecici olarak devredisi birakildi!")
                --return
            --end

            local amount = item.get_value(0)

            local check = player_busy_check()
            if check != 1 and check != 0 then
                syschat(player_busy_check_return(check))
                return
            end

            charge_cash_by_voucher.charge(amount, "cash")
        end
    end
end

bununla değiştirin veya oyun içerisinden gm karakteriniz ile sohbet bölümüne şunu yazın;

/e ep_kuponu 1 yazın ve tekrar deneyin
teşekkür ederim
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Üst