Yardım quest

Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

TRBonus

Yasaklanmış Üye
Cezalı
Mesaj
22
Çözümler
1
Beğeni
4
Puan
443
Ticaret Puanı
0
Lua (Quest):
quest boss_parchment begin
    state start begin
        -- mavi ejderha
        when 82004.use begin
            if pc.is_busy() == true then
                syschat("Meşgul durumda iken bunu kullanamazsın.")
            elseif pc.is_dead() == true then
                syschat("Ölü durumda iken bunu kullanamazsın.")
            else
                if item.get_count() >= 25 then
                    if item.get_count() == 25 then
                        item.remove()
                        pc.give_item2(82104,1)
                    else
                        item.set_count(item.get_count()-25)
                        pc.give_item2(82104,1)
                    end
                end
            end
        end

        when 82104.use begin
            if pc.is_busy() == true then
                syschat("Meşgul durumda iken bunu kullanamazsın.")
            elseif pc.is_dead() == true then
                syschat("Ölü durumda iken bunu kullanamazsın.")
            elseif pc.get_map_index() == 1 or pc.get_map_index() == 21 or pc.get_map_index() == 41 or pc.get_map_index() == 3 or pc.get_map_index() == 23 or pc.get_map_index() == 43 or pc.get_map_index() == 416 then
                syschat("Bu haritada bu eşyayı kullanamazsın.")
            elseif pc.get_level() < 105 then
                syschat("55-105 level arası çağırabilirsin.")
            else
                if item.get_count() > 1 then
                    item.set_count(item.get_count()-1)
                else
                    item.remove()
                end
                spawn_mob0(2493, pc.get_map_index(), pc.get_local_x(), pc.get_local_y())
            end
        end
    end
end

questle pek aram yok, bu bir iteme sağ tıklayınca mob çağırma questi ben buna 30 dk gibi arayla çağırılan item yapmak istiyorum nasıl ekleyebilirim ,yardımcı olursanız sevinirim.İyi forumlar...
 
Geri
Üst