Jump to content

NexuS

Inactive Member
  • Posts

    23
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by NexuS

  1. Hi!

    I want disable trading with GMs

    well its looks like:

    exchange.cpp (def. line 61)

    	if(strstr(victim->GetName(), "["))
    	{
    		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't trade with admins"));
    		return false;
    	}
    

    Yes thats right, but if GM isn't the victim it doesn't works.
     

    Modify like this:

    if(strstr(victim->GetName(), "[") || strstr(pOwner->GetName(), "["))

    But the pOwner is not declared yet.

    How can i solve this?

  2. Hi! 

     

    I have got some freetime in summer, so i release my patcher source. Just use file size (bytes) to check files.

    (Made it in C# WPF)

    How to work:

    1. Create your patchlist.txt (added image)

    2. Upload on FTP or wherever you want

    3. Upload the listed files

     

    Lets do the exe

    1. Open solution with a compiler

    2. Edit Globals.cs

     

            public static string ServerUrl = "http://www.***.com/patcher/";
    
    

    The "ServerUrl" is the server folder, that contain created patchlist.txt

     

     

            //starter exe name
            public static string exename = "game.exe";

    If downloaded finished automatically start this exe (currentfolder)

     

     

            //create patchlog.txt with datas of downloading and etc
            public static string logname = "patchlog.txt";
            public static bool enablelog = true;

    The patcher create log, "enablelog" = true/false 

     

    Download link: https://mega.co.nz/#!pFhVFZoL!kG8zorvqfxikPbcuPxdVwyGifVldWP2ciAaz3gcWXsY

    plist.png

    ftp.png

    For any service, effect, design, programming PM to me

    Ohh, the main thing : Have nice summer!

    • Metin2 Dev 1
    • Love 4
  3. Hi Guys
     
    So, I saw a script which is delete 
    *.py
    *.mix
    ...
    the bad files in the game folder.
    I thought about it :rolleyes:  and created a script which check  ALL FOLDER  AND ALL FILES CURRENT DIRECTORY and compare WITH A PATCHLIST.
     
    Let's check:
     

    ##########################
    ###>>>coded by Nexus<<<###
    ##########################
    
    
    import urllib.request
    import os
    import threading
    
    
    repeattime = 2
    url = 'http://exapmle.com/patcher/patchlist.txt'
    
    
    backslash = ''
    curdir= (os.getcwd())
    #the web list
    
    response = urllib.request.urlopen(url)
    data = response.read()      # a `bytes` object
    text = data.decode('utf-8') # a `str`; this step can't be used if data is binary
    lines = text.split('n')
    protectedfiles = [line.strip() for line in lines]
    for x in protectedfiles:
        gfullfile= (curdir + backslash + x.split(';')[0])
        protectedfiles [protectedfiles.index(x)] = gfullfile
    #
    
    ##ha-ha-ha 
    #save your self by the self-delete or the usr  config files
    protectedfiles.append(curdir + backslash + "config.cfg")
    allcurrentfile=[]
    
    def again():
    	for path, subdirs, files in os.walk(curdir):
    		for name in files:
    			onefile = (os.path.join(path, name))
    			if onefile not in protectedfiles:
    				os.remove(onefile)
    	threading.Timer(repeattime, again).start()
    				
    again()
    
    

    protectedfiles.append(curdir + backslash + "CONFIG.CFG")
    this is necessary, because this file created by the config.exe , and this file storage the like the sound volume, screen resolution. (you couldn't patching this file)

    so the script is check the files by the patchlist, my patchlist look as:

    excxy.pyc;0c1759a0
    etcyx.py;e626408e
    

    THE FILE + HASH (in between ';')

    you change the patchlist url here:

    url = 'http://exapmle.com/patcher/patchlist.txt'

    and the repeattime means the how often repeat the checking.
    the script DELETE the file if it doesn't listed.

    HUH, don't be afraid ,not long.

     

    • Love 3
  4. Hi Community!

     

    I created a program for beginners.

    Can write:

    -kill

    -drop

    -level_limit 

    type drop.

     

    It tab with real tab (no spaces).Numbered the items, and start afresh, if you close the group.

    You can change the language at the lower right corner.

     

     

    Startup:

    startupwind_www.kepfeltoltes.hu_.png

    Mob drop:

    erro_drop__www.kepfeltoltes.hu_.png

    Kill Type Drop:

    killtype_www.kepfeltoltes.hu_.png

    Limit Type Drop:

    limitype_www.kepfeltoltes.hu_.png

    It can make error, if you open a group before you close it, and if press douple end.

     

    . Pictures stored by kepfeltoltes.hu

    This is the hidden content, please

     

    Download

    • Metin2 Dev 1
    • Love 4
×
×
  • 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.