Hızlı Konu Açma

Hızlı Konu Açmak için tıklayınız.

Son Mesajlar

Konulardaki Son Mesajlar

Reklam

Forumda Reklam Vermek İçin Bize Ulaşın

Afk Mod | Quest Sistemleri

Alpi™

Üye
Fenerbahçe
Kayıtlı Üye
Katılım
10 Ocak 2014
Mesajlar
128
Tepkime puanı
1
Puanları
0
merhaba arkadaşlar ,
Afk modunu serverinize kurmak istiyorsanız buyrun ;


Kod:
    [COLOR=#ff0000]-- Otomatik AFK-MOD
    -- Writer by : Alpi
    -- Açma yöntemi : /e afk_mod 1 // /e afk_mod 0
]]--


quest afkauto begin
    state start begin
    end
    state run begin
        when login begin
            if(game.get_event_flag("afk_mod") == 0) then
                return
            else
                if(pc.getqf("afk") == 0) then
                    pc.setqf("limit_time",get_time()+15*60)
                    pc.setqf("afk",1)
                    pc.setqf("localy",pc.get_local_y())
                    pc.setqf("localx",pc.get_local_x())
                    timer("Check",10)
                elseif(pc.getqf("afk") == 1 and not pc.is_polymorphed() and not pc.is_gm()) then
                    if(get_time() >= pc.getqf("limit_time") and pc.getqf("localy") == pc.get_local_y() and pc.getqf("localx") == pc.get_local_x()) then
                        command("logout")
                        notice_in_map(pc.name.." Afk moduna geçmiştir.Bu yüzden oyundan çıkartıldı. [AFK-MOD] ")
                        notice_all("Writer By : Alpi™")
                        pc.setqf("afk",0)
                    else
                        timer("Check",10)
                    end
                else
                    timer("Check",10)
                end
            end
        end
        
        when Check.timer begin
            if(game.get_event_flag("afk_mod") == 0) then
                return
            else
                if(pc.getqf("afk") == 0) then
                    pc.setqf("limit_time",get_time()+15*60)
                    pc.setqf("afk",1)
                    pc.setqf("localy",pc.get_local_y())
                    pc.setqf("localx",pc.get_local_x())
                 elseif(pc.getqf("afk") == 1 and not pc.is_polymorphed()) then
                    if(get_time() >= pc.getqf("limit_time") and pc.getqf("localy") == pc.get_local_y() and pc.getqf("localx") == pc.get_local_x()) then
                        command("logout")
                        notice_in_map(pc.name.." Afk moduna geçmiştir.Bu yüzden oyundan çıkartıldı. [AFK-MOD] ")
                        notice_all("Writer by : Alpi™")
                        pc.setqf("afk",0)
                        cleartimer("Checkone")
                        cleartimer("Check")                        
                    else
                        timer("Checkone",10)
                    end
                else
                    timer("Checkone",10)
                end
            end
        end
        
        when Checkone.timer begin
            if(game.get_event_flag("afk_mod") == 0) then
                return
            else
                if(pc.getqf("afk") == 0) then
                    pc.setqf("limit_time",get_time()+15*60)
                    pc.setqf("afk",1)
                    pc.setqf("localy",pc.get_local_y())
                    pc.setqf("localx",pc.get_local_x())
                 elseif(pc.getqf("afk") == 1 and not pc.is_polymorphed()) then
                    if(get_time() >= pc.getqf("limit_time") and pc.getqf("localy") == pc.get_local_y() and pc.getqf("localx") == pc.get_local_x()) then
                        command("logout")
                        notice_in_map(pc.name.." Afk moduna geçmiştir.Bu yüzden oyundan çıkartıldı. [AFK-MOD] ")
                        notice_all("Writer by : Alpi™")
                        pc.setqf("afk",0)
                        cleartimer("Checkone")
                        cleartimer("Check")
                    else
                        timer("Check",10)
                    end
                else
                    timer("Check",10)
                end
            end
        end [/COLOR]

KURULUM

- ilk önce yukardaki questi bir dosya içine atıp ismini afkmod.quest olarak kayit edelim.
- sonra bu dosyayı
usr/game/share/locale/turkey/quest kısmına atalım.
- ardından putty ' e giriş yapalım.
-
cd /usr/game/share/locale/turkey/quest yazın [ENTER]
-
./qc afkmod.quest yazın [ENTER]
- questi oyun içi aktif etmek için
/reload q yazın eğer altda reloading quest yazıyorsa aktif olmuştur. eğer yazmıyorsa putty ' den reboot atınız.

not : bu questlerde ekleme yapınca servere girmemiz olabiliyor , onun için eğer öyle bir sorun olursa eklediğiniz questi silin reboot atın ve giriş yapın sorun .çözülecektir.

 

SlymnGlc

Üye
Fahri Üye
Galatasaray
Beşiktaş
Katılım
4 Ocak 2014
Mesajlar
111
Tepkime puanı
0
Puanları
104
Yararlı Teşekkürler.
 

Users Who Are Viewing This Konu (Users: 0, Guests: 1)

Üst