OnurBoyla 1
OnurBoyla
noisiv 1
noisiv
Manwe Work 1
Manwe Work
farkmt2official 1
farkmt2official
mavzermete 1
mavzermete
dreamstone 1
dreamstone
Fethi Polat 1
Fethi Polat
Bvural41 1
Bvural41
Hikaye Ekle

Gaya Quest

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

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!

Hi. Today I found a little problem on server with gaya.. Everytime I move item on Gaya Merchant its show me this error in sysser.. Someone know how to fix it?

sysser
Kod:
SYSERR: Sep 23 07:32:12 :: RunState: LUA_ERROR: [string "create_gaya"]:1: attempt to index global `gaya' (a nil value)
SYSERR: Sep 23 07:32:12 :: WriteRunningStateToSyserr: LUA_ERROR: quest create_gaya.start click

quest
Kod:
quest create_gaya begin
    state start begin
        function CreateGaya()
            say("I need 10 "..item_name(item.vnum)..", 5000 yang plus")
            say("a level +0, +1, +2 or +3 Spirit Stone")
            say("in order to craft a valuable Gaya.")
            say("")
            
            say("My succes rate is 30%... oh, and it'll cost you")
            say("5000 Yang.")
            say("Shall I continue?")
            say("")
            
            local s = select("Yes", "No")
            if s == 1 then
                if pc.get_gold() < 5000 then
                    return
                end

                local SELECTED_CELL = select_item_ex()
                if SELECTED_CELL == 6969 then
                    return
                end
                
                local old_item = item.get_id()
                if not item.select_cell(SELECTED_CELL) then
                    say("That is not the item that is needed.")
                    say("")
                    return
                end

                if item.vnum < 28000 or item.vnum >= 28400 then
                    say("You have chosen the wrong item.")
                    say("")
                    return
                end

                item.select(old_item)
                
                if pc.create_gaya(5000, 30, SELECTED_CELL, 10) then
                    syschat("[Gaya] Amount of Gaya: 1")
                    syschat("[Gaya] Cutting successful.")
                else
                    syschat("[Gaya] Cutting failed.")
                end
                
                gaya.CreateGayaWithoutText()
            end
        end
        
        function CreateGayaWithoutText()
            local SELECTED_CELL = select_item_ex()
            if SELECTED_CELL == 6969 then
                return
            end
            
            local old_item = item.get_id()
            if not item.select_cell(SELECTED_CELL) then
                say("That is not the item that is needed.")
                say("")
                return
            end

            if item.vnum < 28000 or item.vnum >= 28400 then
                say("You have chosen the wrong item.")
                say("")
                return
            end

            item.select(old_item)
            
            if pc.create_gaya(5000, 30, SELECTED_CELL, 10) then
                syschat("[Gaya] Amount of Gaya: 1")
                syschat("[Gaya] Cutting successful.")
            else
                syschat("[Gaya] Cutting failed.")
            end
            
            gaya.CreateGayaWithoutText()
        end

        when 20503.take with item.vnum == 50926 begin
            gaya.CreateGaya()
        end

        when 20503.click begin
            local s=select("Cut Glimmerstones", "Close")
            if s==1 then
                say("Do yo want to cut your Glimmerstones into a Gaya")
                say("now?")
                say("Please give me this amount of Glimmerstones: 10 ")
            end
        end
        
        when 20504.click begin
            local s1=select("What is the Gaya Market?", "Close")
            if s1==1 then
                say("Have you heard about he Gaya Market?")
                say("No? Ah, it's well worth a visit. You can purchase")
                say("really fine goods there.")
                say("Sometimes you can even came across extremely")
                say("valuable commodities.")
                say("Do you want to open the Gaya Market now ?")
                
                local s2=select("Yes", "No")
                if s2==1 then
                    pc.open_gem_shop()
                end
            end
        end
        
    end
end
 

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

Geri
Üst