Jump to content

Papix

Banned
  • Posts

    44
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Posts posted by Papix

  1. Importante

    • O nosso objetivo é ir contra os servidores que são criados por pessoas mal intencionadas com a finalidade de fazer apenas dinheiro e fechar passado 1 mês.
    • Queremos disponibilizar um servidor com longa duração no qual os jogadores possam investir o seu tempo e dinheiro sem qualquer tipo de preocupações relativas à duração do servidor.


    Website: https://ziminiar2.com/
    Discord: https://discord.gg/zb6HFudV2K

    9sHueab.jpg
    hl2Ofab.jpg
    i6xggab.jpg
    F6wxcab.jpg
    HSNucab.jpg
    8odocab.jpg
    w1QTbab.jpg
    03LMbab.jpg
    pdbogab.jpg
    wktPfab.jpg
    wNBraab.jpg
    6nPnaab.jpg
    4tzCaab.jpg
    rUZMdab.jpg
    Ikmugab.jpg
    g3vnbab.jpg
    0Mtkgab.jpg
    S70eeab.jpg
    W5P2gab.jpg
    HrC1eab.jpg
    ftoDgab.jpg
    pKFubab.jpg
    0XCkbab.jpg
    mNJKgab.jpg
    yk3Icab.jpg
    oJzVfab.jpg
    yk3Icab.jpg
    296Fdab.jpg
    KUv0cab.jpg
    cxJgdab.jpg
    cxJgdab.jpg
    zKBlbab.jpg
    WG4Beab.jpg
    kygQeab.jpg
    QqKedab.jpg

     

  2. 28 minutes ago, Takuma said:

    Just a few details... Because when addressing beginners (the target audience for this post), it's important to lay a solid foundation:

    No. It depends on the paradigm.

    It should be emphasized that the entirety of C is supported in C++. In fact, C++ is just an extensions of C with a vast number of libraries.

    Well, then I am a liar. Not learning C to understand what C++ does under the hood is like saying you know how a car works because when you turn the key, it starts.

    And in terms of courses (for English spearks), I also recommend https://www.learncpp.com. It's comprehensive and well-explained. 

    When I talk about syntax, I'm talking about all the factors, so why complicate something simple for beginners?

    If you learn c++ directly, you will learn what you need without having to learn C specifically.

    I personally started by learning the basics of C and then moved on to c++. Nobody is obliged to follow the same steps as me, they can simply start learning c++ directly.

  3. Hello community,

    I've been devoting most of my time recently to learning c++ in depth.

    My contact with c++ before I started learning was terrible and based on copy paste, I really understood very little or even nothing.

    I've decided to create this thread about my learning journey with c++.

    I'm still learning more and more every day, but I already have a journey planned for learning.


    Step 1  "Learning Logic and Algorithms"

    Spoiler

    Before you even think about writing "hello world" in C++ you should study "programming logic" because once you understand logic you can start learning any programming.

    Generally, the logic used in all programming is the same, what changes is the syntax.


    Step 2  "Learning the basics of C" (Opecional)

    Spoiler

    By personal choice, I decided to learn C before I started learning it, since C is the mother tongue of C++.

    C++ is an independent language but it comes from C but many functions in C++ are exactly the same as C.

    Note: This was a personal choice! You don't need to learn C to learn C++ and if someone told you that, get away from them because it's a lie.


    Step 3  "Learning C++"

    Spoiler

    You should start by learning the structure of C++.

    Not sure how to study? There are several youtube channels with "learn c++ beginner to advanced" series and there are also several free online courses.

    If you don't mind spending money you can buy a course, I personally am taking several courses on Udemy.

    Don't try to learn everything in one day, take your time and never take one step too far!

    Before moving on to the next modules of your chosen course, try to master the current subject.


    My Tips

    • Don't want to learn everything in one day, it won't work
    • Take your time learning.
    • Don't panic if you don't understand something and try to solve your doubts.
    • Study by modules and don't skip to the next one until you really understand the current one.
       

    Good studies and much success!

    • Metin2 Dev 1
    • Good 4
    • Love 3
  4. Hello community,

    I decided to create a vdi with the latest version of FreeBSD (13.2) and all the packages needed to start a server and compile the source.

    s6BRbab.png

    Packages Installed

    Spoiler

    boost-all
    devil
    gcc
    gcc8
    gcc9
    gcc10
    gmake
    makedepend
    subversion
    gdb
    python
    python2
    python27
    cryptopp
    llvm
    ccache
    openssl
    googletest
    compat8x-amd64
    zip
    mariadb1011-server-10.11.4
    clang++90

    Login Details
    -> FreeBSD + MariaDB
    User: root
    Password: papix

    Download

    This is the hidden content, please

    • Metin2 Dev 101
    • Eyes 1
    • Not Good 1
    • Good 37
    • Love 8
    • Love 75
  5. 2 hours ago, Matteo said:

    Are you sure it's a good idea to host Live Servers in Germany?

    Also i've been using OVH for some years now, never had outages (Except when the French datacenter caught on fire :kekw:) or anything that needs support. 

    In my opinion there is no problem with hosting live servers in Germany, all the companies I mentioned are already reasonably large, they won't suspend your VPS for having a metin server :capra32:

    • Love 1
  6. Hello community,

    I created this quest to use on my PvP server and decided to share it.

    The anti-farm in relation to killing characters is by windows guid, you must add this check in the source.

    If you don't want to add it, you can replace it with the existing standard IP check function.

    This is the hidden content, please

    • Metin2 Dev 31
    • Eyes 1
    • Facepalm 1
    • Good 11
    • Love 20
  7. Hello community,

    In this topic I'm going to recommend a few companies based on my experience with them.

    Many people are still under the illusion that OVH is the best company, but believe me, nowadays it's not so good in terms of cost-benefit, support is terrible and uptime is sometimes very unstable.

    I'll keep this topic updated as new experiences with hosting companies emerge.

    LowHosting
    Stability: ⭐⭐⭐⭐
    Hardware: ⭐⭐⭐⭐⭐
    Support: ⭐⭐⭐⭐⭐
    Cost benefit: ⭐⭐⭐⭐
    DDoS protection: ⭐⭐⭐⭐⭐
    Datacenter: Germany
    Recommended for: Test Server, Live Server
    Website: https://lowhosting.org/

    Host Unlimited

    Stability: ⭐⭐⭐⭐⭐
    Hardware: ⭐⭐⭐⭐⭐
    Support: ⭐⭐⭐⭐⭐
    Cost benefit: ⭐⭐⭐⭐
    DDoS protection: ⭐⭐⭐⭐⭐
    Datacenter: Germany
    Recommended for: Test Server, Live Server
    Website: https://host-unlimited.de/

    RoyaleHosting

    Stability: ⭐⭐⭐
    Hardware: ⭐⭐⭐
    Support: ⭐⭐⭐⭐⭐
    Cost benefit: ⭐⭐⭐⭐
    DDoS protection: ⭐⭐⭐⭐⭐
    Datacenter: Netherlands, United States
    Recommended for: Test Server, Live Server
    Website: https://royalehosting.net/

    Hetzner

    Stability: ⭐⭐⭐⭐⭐
    Hardware: ⭐⭐⭐⭐⭐
    Support: ⭐⭐⭐
    Cost benefit: ⭐⭐⭐⭐
    DDoS protection: ⭐⭐⭐
    Datacenter: Germany, Finland, United States
    Recommended for: Test Server, Live Server
    Websitehttps://www.hetzner.com/

    Contabo

    Stability: ⭐⭐⭐
    Hardware: ⭐⭐⭐
    Support: ⭐⭐
    Cost benefit: ⭐⭐⭐⭐⭐
    DDoS protection: ⭐
    Datacenter: Germany, United Kingdom, United States, Singapore, Japan, Australia
    Recommended for: Test Server
    Website: https://contabo.com/

    • Love 1
  8. 42 minutes ago, Syreldar said:

    Didn't test, don't care, wrote in notepad in 5 min spare. This 'system' shouldn't be done in Lua btw.

    But if you really want make such an abomination, please, do things properly at the very least:

    define STUN_AFFECT_ID 210
    
    define FALSE_ITEMS_NUM 3 -- How many false items should be in the selection.
    define FAILED_COUNT_LIMIT 3 -- Warp to village when failing the captcha this amount of times.
    define METIN_KILL_LIMIT 50 -- Show captcha upon destroying this amount of metinstones.
    
    quest anti_bot_captcha begin
        state start begin
            function setting()
                return {
                    ["true_vnums"] = {101129, 9600, 12829, 2169, 11839, 12789, 71107, 79, 2099, 199, 2159, 3169, 2139, 5349, 1139, 101006, 12809, 7009, 13109, 7029, 189, 39, 7019, 29, 101005},
                    ["fake_vnums"] = {
                        11299, 17229, 7379, 2079, 101119, 20509, 2129, 18089, 11819, 129, 13089,
                        89, 69, 11849, 101141, 469, 12849, 101004, 16579, 2069, 101140, 14579, 169,
                        2039, 15459, 11899, 2019, 101144, 11499, 20259, 3199, 139, 101109, 7059, 2109,
                        13169, 17709, 14229, 2059, 7039, 99, 49, 101143, 13069, 18099, 11699, 479, 15449,
                        179, 2049, 5129, 20009, 59, 2089, 2379, 9830, 11829, 20759, 101142, 119, 2179, 2009,
                        2119, 16229, 11809, 101139, 19, 2029, 1349, 11859, 2179, 13149, 7049, 13129, 2149
                    }
                };
            end -- function
    
            function block_player()
                pc.setqf("status", 1); -- Unused, but can be useful.
                pc.affect_stun();
            end -- function
    
            function unblock_player()
                pc.setqf("status", 0); -- Unused, but can be useful.
                pc.setqf("kill_count", 0);
                pc.setqf("failed_count", 0);
                affect.remove(STUN_AFFECT_ID);
            end -- function
    
            function captcha_response(is_correct)
                if (is_correct) then
                    anti_bot_captcha.unblock_player();
                    return;
                end -- if
    
                pc.setqf("failed_count", pc.getqf("failed_count") + 1);
                if (pc.getqf("failed_count") >= FAILED_COUNT_LIMIT) then
                    pc.setqf("failed_count", 0);
                    notice("[Captcha] Fail limit reached. Warping you back to your village..")
                    warp_to_village();
                    return;
                end -- if
    
                say_reward(string.format("Wrong captcha! (Attempts remaining: %d)", FAILED_COUNT_LIMIT - pc.getqf("failed_count")))
                anti_bot_captcha.show_captcha();
            end -- function
    
            function show_captcha()
                local setting = anti_bot_captcha.setting();
                local true_item = table_get_random_item(setting["true_vnums"]);
    
                say("What is the name of this item?")
                say_item_vnum(true_item);
                say("[ENTER][ENTER]")
    
                local random_item, chosen_items, except_items = 0, {}, {};
                for _ = 1, FALSE_ITEMS_NUM do
                    -- table_get_random_item_except (https://metin2.dev/topic/15905-syreldars-quest-functions/)
                    random_item = table_get_random_item_except(setting["fake_vnums"], except_items);
                    table.insert(chosen_items, item_name(random_item));
                    table.insert(except_items, random_item);
                end -- for
    
                table.insert(chosen_items, item_name(true_item));
    
                -- table_shuffle (https://metin2.dev/topic/15905-syreldars-quest-functions/)
                local options = table_shuffle(chosen_items);
                local selection = select(unpack(options));
                anti_bot_captcha.captcha_response(options[selection] == item_name(true_item))
            end -- function
    
            when kill with not npc.is_pc() and npc.is_metin() begin
                pc.setqf("kill_count", pc.getqf("kill_count")+1);
    
                if (pc.getqf("kill_count") >= METIN_KILL_LIMIT) then
                    anti_bot_captcha.block_player();
                    anti_bot_captcha.show_captcha();
                end -- if
            end -- when
        end -- state
    end -- quest

     

    Thanks for the contribution, I guess.

    As I said I made the code in a short time and it helped me in my project, I already mentioned in the topic that it could be improved but as I published it works without problems.

    Thanks for your contribution, I think :kekw:

    • Love 1
  9. Hello community,

    I created some time this method to reduce the use of bots on my server, this code was written for anti metins farm but can be adapted for monsters too.
    The code was made in a few hours and could be improved a lot more, but as it stands it works perfectly.

    Logic

    • When the player destroys 30 metins, the captcha will appear and the player will be stunned at the same time.
    • The player has only 3 attempts, if he fails all 3 times he is teleported to the city.
    • The stun is only removed when the captcha is successfully completed.

    As I said, this is not a WOW solution, but it can help as it has helped me on my server.
    For those who really want to spend time creating a more effective solution, I recommend creating a captcha in c++ with encrypted connection client -> server.

    Don’t forget to update the values in the quest according to your item_proto.

    Lua

    This is the hidden content, please

    C++
    This is the hidden content, please

    quest_functions
    This is the hidden content, please

    • Metin2 Dev 115
    • Eyes 3
    • Think 1
    • Good 33
    • muscle 1
    • Love 7
    • Love 57
  10. Hello community,

    In this topic I will teach you how to make your signature beautiful with your Discord.

    Guide


    Done! Now you will have several templates available to use in your signature.

    You can also insert a direct link that will open your Discord profile when you click on the image.

    Example

    Hidden Content

      https://discordapp.com/users/YOUR_DISCORD_ID_HERE

    • Metin2 Dev 2
    • Good 1
    • Love 2
  11. Hello community,

    I recently created two scripts to promote my project and decided to share with the community.

    The scripts are written in python and are easy to understand.

    Screenhot
    BoQefab.png

    Guide

    This is the hidden content, please

    Download

    This is the hidden content, please

    • Metin2 Dev 50
    • Eyes 4
    • Good 9
    • Love 1
    • Love 16
  12. Hello community,

    I have received several messages asking for a patcher that will update files, no matter how small the change, and that will not alert to viruses.

    I will share with you for free the solution I use in my projects.

    VirusTotal
    YxWydab.png

    This is the hidden content, please


    Preview
    ni7iaab.jpg
     

    Step by Step

    This is the hidden content, please

    Thanks to @ martysama0134 for some files.

    • Metin2 Dev 136
    • Facepalm 1
    • Lmao 1
    • Good 30
    • Love 6
    • Love 69
  13. 2 hours ago, crewfire1337 said:

    Bros..... I had the same error, tried to fix it for 7 hours (that was 1 week ago) and yesterday I saw this topic...

    that was my bugfix before, but all your bugfixes in that way dont work!

    DO right click on a monster (select a monster ) but run with a mount to a another group, the bug is not gone.

    sometimes at a mount the character moves little bit forward i think if you attack.

    	if (m_pkHorse)
    	{
    		if(rVictim.IsEnemy() || rVictim.IsPoly())
    		{
    			return FALSE;
    		}
    		else if(isAttacking())
    		{
    			return TRUE;
    		}
    	}

     

    And this fix: dont works too guys..

    This is the hidden content, please

    I use the function on my PvM server, I don't have any problems that were mentioned, it's up to whoever wants to use it if they need to adapt something in their server-files.

    In server-files owsap works fine, if you use other files you will have to adapt the code if something does not work correctly.

    • Metin2 Dev 3
    • Love 1
  14. Hello community,

    I saw many tutorials and they all didn't work for me, many of them involved completely installing llvm9 which doesn't make sense since we will only use clang++90.

    Downloading a vdi with 50gb or more to compile your source is not something I advise, do a clean install of FreeBSD and follow this guide.

    I got several ways, I will share the easiest way to understand and use.

    In this guide I used FreeBSD 12.3 but I believe it will work on any version from 12 to 13.


    Step by Step

    This is the hidden content, please


    Done! Now you can compile your source using clang++90 😄

    nI0taab.png

    • Metin2 Dev 175
    • Eyes 6
    • Dislove 1
    • Sad 1
    • Smile Tear 1
    • Think 2
    • Good 52
    • Love 6
    • Love 94
×
  • 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.