Yardım Ep Kuponu sorunu

  • Konuyu açan Konuyu açan aznp
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 4
  • Gösterim Gösterim 736
Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

aznp

Üye
Üye
Mesaj
62
Çözümler
1
Beğeni
7
Puan
84
Ticaret Puanı
0
Selamlar oyunumda ep kuponu var okuyorum ancak nesne marketimde gözükmüyor ep vermiyor
 
Aleyküm selam questli bir ep kuponu kullanıyorsan quest hatalı olabilir.
 
Aleyküm selam questli bir ep kuponu kullanıyorsan quest hatalı olabilir.
quest aşağıdaki gibidir bir hata gözüküyor mu ?

Lua (Quest):
Genişlet Daralt Kopyala
quest charge_cash_by_voucher begin
    state start begin
        function charge(amount, charge_type)
            if charge_type == nil then
                charge_type = "coins"
            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()
                    char_log(item_id, "CHARGE_CASH_BY_VOUCHER", amount)
                    syschat("Hesabina "..amount.."  Ejderha Parasi aktarildi..")

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

                    item.remove()
                end
            end

            return false
        end
 
        when 80014.use or 80015.use or 80016.use or 80017.use begin
            local amount = item.get_value(0)

            charge_cash_by_voucher.charge(amount, "coins")
        end
    end
end
 
quest aşağıdaki gibidir bir hata gözüküyor mu ?

Lua (Quest):
Genişlet Daralt Kopyala
quest charge_cash_by_voucher begin
    state start begin
        function charge(amount, charge_type)
            if charge_type == nil then
                charge_type = "coins"
            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()
                    char_log(item_id, "CHARGE_CASH_BY_VOUCHER", amount)
                    syschat("Hesabina "..amount.."  Ejderha Parasi aktarildi..")

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

                    item.remove()
                end
            end

            return false
        end
 
        when 80014.use or 80015.use or 80016.use or 80017.use begin
            local amount = item.get_value(0)

            charge_cash_by_voucher.charge(amount, "coins")
        end
    end
end
account tablosunda genelde coins yerine cash yazar eğer sendede cash yazıyorsa questi düzenleyerek sorunu çözebilirsin.
 
Üst