Jump to content

LUA - Edit Control System


Recommended Posts

M2 Download Center

This is the hidden content, please
( Internal )

Hello everyone,
 
What is the Edit Control System?
 
This system controls with individual charms players and detect all objects in the game efsun order something different or delete items. Control operations from the item_attr.sql file from the file so that the setting makes you exercise your game. This is why one of the charms of the game to score more though genius closes accounts and delete items. In the same way with the same type of legend when it detects an object in a non efsun or item_attr.sql also closes the system detects and deletes the account items.
 
How the system works?
 
40004 coded rings to be opened or clicked and the system can be turned off. The system will scan all items while in every one hour of exercise you close the game and a different editor condition detected by an account's settings, delete the items. If you turn off the system also stops the scan. You can turn browsing on or off at any time.
 
Note: none of the players can not escape the editor of this system. Although the goods, though not immediately deleted genius envanterdeyk accounts with the goods for which it is closed, people can not find opportunities to use the genius that turns off appliances and goods given to each account. You can also close other accounts to detect the IP address.
 
 

If I'd let me share a detailed video on how the system works:

 

 

 

 

https://www.youtube.com/watch?v=LgSwkdYsKVo

 

 

 

Now let's make our last settings required for you to download new files, then I will give:

 
* Right click the Account table from the database we open the account database and add a new column as follows and the default value of 0're doing. Make sure to default value of 0!

 

 
 
8g6Rb1.jpg
 
 
If you wish we can give our business now and over here you can download the file from the link already here or you can create yourself with the following code.
 
 

Ready for those who want to download:

 

 

Metin2- editkontrol.lua Download

 

 

LUA create the file:

 

1) usr / game / share / locale / turkey / quests section "editkontrol.lu to" Let's open the file named a lua. Then write the following code into the file:

quest kontrol begin 
    state start begin 
        when 40004.use with pc.is_gm() begin 
            if game.get_event_flag("editKontrolSistemi") == 0 then 
                kontrolSuresi = 60*60  
                -- Burası saniye cinsindendir. Yani 60*60 = 3600 saniye o da 1 saat yapar. 1 güne bir kontrol etsin istiyorsanız şu şekilde yapabilirsiniz: 
                -- 60*60*24 -- > 60*60 = 3600 saniye yapar. Yani 1 saat. 3600*24 = 86400 saniye o da 24 saat yapar. Mantık bu. 
                server_loop_timer("editKontrol",kontrolSuresi,get_server_timer_arg()) 
                game.set_event_flag("editKontrolSistemi",1) 
                syschat("Sistem: Otomatik Edit Silme Sistemi aktif edilmiştir.") 
            elseif game.get_event_flag("editKontrolSistemi") == 1 then 
                clear_server_timer("editKontrol",get_server_timer_arg()) 
                game.set_event_flag("editKontrolSistemi",0) 
                syschat("Sistem: Otomatik Edit Silme Sistemi kapatılmıştır.") 
            end 
        end 
         
        when editKontrol.server_timer begin 
            tumEsyalarKontrol = mysql_query10("select * from player.item") 
            tumEsyalarKontrolSay = tonumber(table.getn(tumEsyalarKontrol)) 
            notice_all("Toplam taranan eşya sayısı: "..tumEsyalarKontrolSay) 
            if tumEsyalarKontrolSay < 1 then 
                notice_all("Oyunda kayıtlı hiç eşya bulunamadi") 
                return 
            end 
            editliOyuncular = {} 
            editliEsyalar = {} 
            editliEsyaKodlari = {} 
            oyuncuEfsunTipiDizi = {} 
            oyuncuEsyaEfsunDiziTipY = {} 
            k=1 
            b=1 
            for i=1,tumEsyalarKontrolSay,1 do 
                for m=13,25,2 do 
                    esyaEfsunTipveDeger = tonumber(tumEsyalarKontrol[i][m])  
                    if esyaEfsunTipveDeger != 0 then 
                        esyaEfsunDeger = tonumber(tumEsyalarKontrol[i][m+1]) 
                        esyaEfsunTipi = kontrol.efsun(tonumber(tumEsyalarKontrol[i][m])) 
                        if esyaEfsunTipi == "BECERI_HASARI" then 
                            if esyaEfsunDeger > 30 then 
                                editliOyuncular[k] = tonumber(tumEsyalarKontrol.owner_id[i]) 
                                editliEsyalar[k] = tonumber(tumEsyalarKontrol.id[i]) 
                                editliEsyaKodlari[k] = tonumber(tumEsyalarKontrol.vnum[i]) 
                                k = k + 1 
                                l = 1 
                                break 
                            end 
                        elseif esyaEfsunTipi == "ORTALAMA_ZARAR" then 
                            if esyaEfsunDeger > 60 then 
                                editliOyuncular[k] = tonumber(tumEsyalarKontrol.owner_id[i]) 
                                editliEsyalar[k] = tonumber(tumEsyalarKontrol.id[i]) 
                                editliEsyaKodlari[k] = tonumber(tumEsyalarKontrol.vnum[i]) 
                                k = k + 1 
                                l = 1 
                                break 
                            end 
                        elseif esyaEfsunTipi == "B_H_KARSI_KOYMA" or esyaEfsunTipi == "O_Z_KARSI_KOYMA" then 
                            if esyaEfsunDeger > 0 then 
                                editliOyuncular[k] = tonumber(tumEsyalarKontrol.owner_id[i]) 
                                editliEsyalar[k] = tonumber(tumEsyalarKontrol.id[i]) 
                                editliEsyaKodlari[k] = tonumber(tumEsyalarKontrol.vnum[i]) 
                                k = k + 1 
                                l = 1 
                                break 
                            end 
                        else 
                            efsunTipiDegerKontrol = mysql_query10("select * from player.item_attr where apply='"..esyaEfsunTipi.."' ") 
                            if tonumber(table.getn(efsunTipiDegerKontrol)) > 0 then 
                                efsunTipiDeger = tonumber(efsunTipiDegerKontrol.lv5[1]) 
                                if esyaEfsunDeger > efsunTipiDeger then 
                                    editliOyuncular[k] = tonumber(tumEsyalarKontrol.owner_id[i]) 
                                    editliEsyalar[k] = tonumber(tumEsyalarKontrol.id[i]) 
                                    editliEsyaKodlari[k] = tonumber(tumEsyalarKontrol.vnum[i]) 
                                    k = k +1 
                                    l = 1 
                                    break 
                                end -- edit kontrol if endi 
                            else 
                                editliOyuncular[k] = tonumber(tumEsyalarKontrol.owner_id[i]) 
                                editliEsyalar[k] = tonumber(tumEsyalarKontrol.id[i]) 
                                editliEsyaKodlari[k] = tonumber(tumEsyalarKontrol.vnum[i]) 
                                k = k + 1 
                                l = 1 
                                break 
                            end 
                        end 
                         oyuncuEfsunTipiDizi[b] = tonumber(tumEsyalarKontrol[i][m])  
                         b = b + 1 
                    end-- efsun tip kontrol endi 
                end -- efsun sütun kontrol endi 
                if l == 1 then 
                    l = 0 
                    break 
                end 
                oyuncuEfsunTipiDiziSay = tonumber(table.getn(oyuncuEfsunTipiDizi)) 
                if oyuncuEfsunTipiDiziSay > 0 then 
                    for p=1,oyuncuEfsunTipiDiziSay,1 do 
                        m=0 
                        oyuncuEsyaEfsunDiziTipY[p] = oyuncuEfsunTipiDizi[p] 
                        for c=1,oyuncuEfsunTipiDiziSay,1 do 
                            if oyuncuEsyaEfsunDiziTipY[p] == oyuncuEfsunTipiDizi[c] then 
                              m = m + 1 
                              if m != 1 and oyuncuEsyaEfsunDiziTipY[p] != 0 then 
                                    editliOyuncular[k] = tonumber(tumEsyalarKontrol.owner_id[i]) 
                                    editliEsyalar[k] = tonumber(tumEsyalarKontrol.id[i]) 
                                    editliEsyaKodlari[k] = tonumber(tumEsyalarKontrol.vnum[i]) 
                                    k = k + 1  
                                    break 
                              end 
                            end 
                        end 
                        if m != 1 then 
                            break 
                        end 
                    end 
                end 
            end -- eşya kontrol endi 
            editliOyuncularSay = tonumber(table.getn(editliOyuncular)) 
            notice_all("Toplam edit sayısı: "..editliOyuncularSay) 
            if editliOyuncularSay == 0 then 
                notice_all("Editli oyuncu bulunamadı.") 
            else 
                for i=1,editliOyuncularSay,1 do 
                    oyuncuHesapKimlik = tonumber(editliOyuncular[i]) 
                    oyuncuEsyaKimlik = tonumber(editliEsyalar[i]) 
                    oyuncuEsyaKodu = tonumber(editliEsyaKodlari[i]) 
                    oyuncuBilgiCek = mysql_query10("select * from player.player where account_id='"..oyuncuHesapKimlik.."' ") 
                    if tonumber(table.getn(oyuncuBilgiCek)) > 0 then 
                        oyuncuBilgiAd = tostring(oyuncuBilgiCek.name[1]) 
                        oyuncununHesabiKapat = mysql_query10("UPDATE account.account SET status='BLOCK' where id='"..oyuncuHesapKimlik.."' ") 
                        oyuncununHesabiKapatD = mysql_query10("UPDATE account.account SET edit_ban='1' where id='"..oyuncuHesapKimlik.."' ") 
                        oyuncununEsyasiniSil = mysql_query10("DELETE FROM player.item where owner_id='"..oyuncuHesapKimlik.."' and id='"..oyuncuEsyaKimlik.."' ") 
                        notice_all(oyuncuBilgiAd.." isimli oyuncuda edit bulunmuş, hesabı kapatılmış ve eşyası silinmiştir. Eşya Kodu: "..oyuncuEsyaKodu) 
                    else 
                        oyuncuBilgiCek = mysql_query10("select * from player.player where id='"..oyuncuHesapKimlik.."' ") 
                        oyuncuHesap_id = tonumber(oyuncuBilgiCek.account_id[1]) 
                        oyuncuBilgiAd = tostring(oyuncuBilgiCek.name[1]) 
                        oyuncununHesabiKapat = mysql_query10("UPDATE account.account SET status='BLOCK' where id='"..oyuncuHesap_id.."' ") 
                        oyuncununHesabiKapatD = mysql_query10("UPDATE account.account SET edit_ban='1' where id='"..oyuncuHesap_id.."' ") 
                        oyuncununEsyasiniSil = mysql_query10("DELETE FROM player.item where owner_id='"..oyuncuHesapKimlik.."' and id='"..oyuncuEsyaKimlik.."' ") 
                        notice_all(oyuncuBilgiAd.." isimli oyuncuda edit bulunmuş, hesabı kapatılmış ve eşyası silinmiştir. Eşya Kodu: "..oyuncuEsyaKodu) 
                    end 
                end 
            end 
        end 
         
        when 40004.use with not pc.is_gm() begin 
            syschat("Sistem: Bu yüzük oyunculara kapalıdır. Sadece yöneticiler kullanabilir.") 
        end 
         
        function efsun(efsun_kodu) 
            efsun = { 
                --[0] = {"EfsunYok"} 
                [1] = {"MAX_HP"}, 
                [2] = {"MAX_SP"}, 
                [3] = {"INT"}, 
                [4] = {"CON"}, 
                [5] = {"STR"}, 
                [6] = {"DEX"}, 
                [7] = {"ATT_SPEED"}, 
                [8] = {"MOV_SPEED"}, 
                [9] = {"CAST_SPEED"}, 
                [10] = {"HP_REGEN"}, 
                [11] = {"SP_REGEN"}, 
                [12] = {"POISON_PCT"}, 
                [13] = {"STUN_PCT"}, 
                [14] = {"SLOW_PCT"}, 
                [15] = {"CRITICAL_PCT"}, 
                [16] = {"PENETRATE_PCT"}, 
                [17] = {"ATTBONUS_HUMAN"}, 
                [18] = {"ATTBONUS_ANIMAL"}, 
                [19] = {"ATTBONUS_ORC"}, 
                [20] = {"ATTBONUS_MILGYO"}, 
                [21] = {"ATTBONUS_UNDEAD"}, 
                [22] = {"ATTBONUS_DEVIL"}, 
                [23] = {"STEAL_HP"}, 
                [24] = {"STEAL_SP"}, 
                [25] = {"MANA_BURN_PCT"}, 
                [26] = {" "}, 
                [27] = {"BLOCK"}, 
                [28] = {"DODGE"}, 
                [29] = {"RESIST_SWORD"}, 
                [30] = {"RESIST_TWOHAND"}, 
                [31] = {"RESIST_DAGGER"}, 
                [32] = {"RESIST_BELL"}, 
                [33] = {"RESIST_ELEC"}, 
                [34] = {"RESIST_BOW"}, 
                [35] = {"RESIST_FIRE"}, 
                [36] = {" "}, 
                [37] = {"RESIST_MAGIC"}, 
                [38] = {"RESIST_WIND"}, 
                [39] = {"REFLECT_MELEE"}, 
                [40] = {"CURSE_PCT"}, 
                [41] = {"POISON_REDUCE"}, 
                [42] = {"KILL_SP_RECOVER"}, 
                [43] = {"EXP_DOUBLE_BONUS"}, 
                [44] = {"GOLD_DOUBLE_BONUS"}, 
                [45] = {"ITEM_DROP_BONUS"}, 
                [46] = {"POTION_BONUS"}, 
                [47] = {"KILL_HP_RECOVER"}, 
                [48] = {"IMMUNE_STUN"}, 
                [49] = {"IMMUNE_SLOW"}, 
                [50] = {"IMMUNE_FALL"}, 
                [51] = {" "}, 
                [52] = {"BOW_DISTANCE"}, 
                [53] = {"ATT_GRADE_BONUS"}, 
                [54] = {"DEF_GRADE_BONUS"}, 
                [55] = {"MAGIC_ATT_GRADE"}, 
                [56] = {"MAGIC_DEF_GRADE"}, 
                [57] = {" "}, 
                [58] = {"MAX_STAMINA"}, 
                [59] = {"ATT_BONUS_TO_WARRIOR"}, 
                [60] = {"ATT_BONUS_TO_ASSASSIN"}, 
                [61] = {"ATT_BONUS_TO_SURA"}, 
                [62] = {"ATT_BONUS_TO_SHAMAN"}, 
                [63] = {"ATTBONUS_MONSTER"}, 
                [64] = {"ATT_GRADE_BONUS"}, 
                [65] = {"DEF_GRADE_BONUS"}, 
                [66] = {" "}, 
                [67] = {" "}, 
                [68] = {" "}, 
                [69] = {" "}, 
                [70] = {" "}, 
                [71] = {"BECERI_HASARI"}, 
                [72] = {"ORTALAMA_ZARAR"}, 
                [73] = {"B_H_KARSI_KOYMA"}, 
                [74] = {"O_Z_KARSI_KOYMA"}, 
                [75] = {" "},  
                [76] = {" "}, 
                [77] = {" "}, 
                [78] = {"RESIST_WARRIOR"}, 
                [79] = {"RESIST_ASSASSIN"}, 
                [80] = {"RESIST_SURA"}, 
                [81] = {"RESIST_SHAMAN"} 
            } 
             return efsun[efsun_kodu][1] 
        end 
    end 
end  
We're going to save it.
 
2) We come to putty.
 
cd / usr / game / share / locale / turkey / quests are enterliy wrote. Then we write the following command.
 
editkontrol.lu to ./qc
 
We are done with putty.
3) We're going to the game and with a GM character "/ reload q" is suffering.
4) Then you can control the system with coded ring 40004 items creating editor.
 
 
Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 2
  • Love 4
Link to comment
Share on other sites

  • 5 years later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.