Vahsi Uzman 1
Vahsi Uzman
Bvural41 1
Bvural41
OnurBoyla 1
OnurBoyla
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Hikaye Ekle

Cevaplanmadı Ep questi ep vermiyor

  • Konuyu başlatan Konuyu başlatan goko3755
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 1
  • Görüntüleme Görüntüleme 297

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

arkadaşlar ep questi ep vermiyor

Kod:
-- Date 19.02.17 - 16:40
-- Author R.A

quest charge_cash_by_voucher begin
    state start begin
        function charge(amount, charge_type)
            if (charge_type == nil) then
                charge_type = "coins"
            end -- if
            
            if (amount > 0) then
                -- syntax : pc.charge_cash(amount, charge_type)
                -- warning: 1. 'charge_type' : "coins"(default) | "mileage"
                -- 2. 'amount' must be positive number
                
                local result = pc.charge_coins(amount, charge_type)
                if (result == true) then
                    local item_id = item.get_id()
                    local flag_name = "total_"..charge_type
                    pc.setqf(flag_name, pc.getqf(flag_name) + amount)
                    item.remove()
                end -- if
            end
            return false
        end -- function
        
        when 80014.use or 80015.use or 80016.use or 80017.use or 80018.use or 80019.use or 80020.use
             or 80021.use or 80022.use or 80023.use or 80024.use or 80025.use or 80027.use begin
            local amount = item.get_value(0)
            --charge_cash_by_voucher.charge(amount, "coins") -- Cash
            pc.set_coins(amount) -- Coins
            syschat(string.format("Hesabınıza %s EP yatırılmıştır. ", amount))
        end
    
    end -- state
end -- quest
 

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

Geri
Üst