xranzei 1
xranzei
mavzermete 1
mavzermete
Psych0SoociaL 1
Psych0SoociaL
Hikaye Ekle
Kaynak ikonu

İtem Karşılığı İtem Veren Npc Quest(Lua) 1

indirmek için izniniz yok
İTEM KARŞILIĞI İTEM VEREN NPC QUEST
( Çoklu halde item alıp tek item verme )
PHP:
-- Turkmmo Hakancandy İtem Takas ---
quest ot_al begin
    state start begin
        when 20406.chat."Ot Takas" begin
        say_title("Ot Al")
        say("Merhaba BordoMetin2 oyuncusu "..pc.getname().."")
        say("Istemedigin 3 ottan 2ser adet vererek")
        say("3 adet istedigin ottan alabilirsin")
        say(" ")
        say("Ama unutma uzerinde her ottan en az 2 adet olmasi gerek")
        say(" ")
        local s = select ("Almak Istiyorum","Istemiyorum")
        if s == 1    then
        if pc.count_item(70251) <= 1    then
        say_reward("Elinde yeterli sayıda ot bulunmuyor")
        say_reward("Otlari tamamlayip tekrar gel")
        say_reward("Gorusmek uzere")
        elseif pc.count_item(70252) <= 1    then
        say_reward("Elinde yeterli sayıda ot bulunmuyor")
        say_reward("Otlari tamamlayip tekrar gel")
        say_reward("Gorusmek uzere")
        elseif pc.count_item(70253) <= 1    then
        say_reward("Elinde yeterli sayıda ot bulunmuyor")
        say_reward("Otlari tamamlayip tekrar gel")
        say_reward("Gorusmek uzere")
        elseif pc.count_item(70254) <= 1    then
        say_reward("Elinde yeterli sayıda ot bulunmuyor")
        say_reward("Otlari tamamlayip tekrar gel")
        say_reward("Gorusmek uzere")
        else
        local ss = select ("Kirmizi Ot","Mavi Ot","Yesil Ot","Mor Ot","Vazgec")
        if ss == 1    then
        pc.removeitem(70252, 2)
        pc.removeitem(70253, 2)
        pc.removeitem(70254, 2)
        pc.give_item2(70251, 3)
        elseif ss == 2    then
        pc.removeitem(70251, 2)
        pc.removeitem(70253, 2)
        pc.removeitem(70254, 2)
        pc.give_item2(70252, 3)
        elseif ss == 3    then
        pc.removeitem(70251, 2)
        pc.removeitem(70252, 2)
        pc.removeitem(70254, 2)
        pc.give_item2(70253, 3)
        elseif ss == 4    then
        pc.removeitem(70251, 2)
        pc.removeitem(70252, 2)
        pc.removeitem(70253, 2)
        pc.give_item2(70254, 3)
        elseif ss == 5    then
        return
        end
        end
        elseif s == 2    then
        return
        end
end
end
end

-- İNDİRME LİNKİ --
https://www.dosyaupload.com/rbyt
-- VİRÜSTOTAL --
TIKLA
-- DÜZENLEMEK İSTEYENLER İÇİN --

** Npc değiştirmek için ; 20406 kodunu değiştiriniz **
** İtemleri değiştirmek için 70251,70252,70253,70254 değiştiriniz **
** Adet değiştirmek için yanındaki 2 ve 3 değiştiriniz fakat değiştirdikten sonra if pc.count_item(70251) <= 1 then değiştirmeyi unutmayınız **

-- QUEST OKUTMA --
Öncelikle Filezilla açıyoruz . Daha sonra adres çubuğuna /usr/game/share/locale/turkey/quest
yazıyoruz .
İndirmiş olduğumuz item_ver.lua isimli dosyayı buraya atıyoruz .
Daha sonra putty açıyoruz giriş yaptıktan sonra
cd /usr/game/share/locale/turkey/quest yazıp enterliyoruz .
Sonra ./qc item_ver.lua yazıp enterliyoruz
Ve son aşama olarak oyundan GM hesap ile /reload q yazıp bitiriyoruz .

İYİ FORUMLAR
Yazar
hakancandy
Kaynak İndirilme
21
Görüntüleme
365
İlk yayınlama
Son Güncelleme

Ratings

0.00 yıldız(lar) 0 rating

hakancandy - Kaynakları

Geri
Üst