Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/17/19 in all areas

  1. M2 Download Center Download Here ( Internal ) I wrote this small tool in python to manage easly the server source in a unique script to run. The tool is written in Python 2.7 but it should works fine with next version. Basically, the tool can help you to build/touch/strip without navigate in the differents paths. The tool can perform: -Build: build game/db build game/db with clean build game&db (consecutively) build game&db with clean -Touch (which dont' create new file when is used with a wrong name): perform Touch of one or more files in game/src (by inserting the names separated with a space) perform Touch of one or more files in db/src (by inserting the names separated with a space) -Strip: Strip game (by copying it) Strip db (--same) Additional features: - the tool find if a file is edited $val seconds in the future (eg. if you have set a wrong date in your compiler) and it will touch the file automatically. - the tool is written in procedural python (no OOP) so you should read easly it even if you are not an expert with python. - You can run more than one commands in sequence by separating them with one of these character : ("&&","&","|"," ",'\t',"-",',') (es. : 1&9 -> build game and strip game) - the tool can get command-line arguments to perform what you need (you could take a look under to know the command you can pass) to-know: - To run a script in python in the compiler you need to have installed Python (i recommend python27 which i can guarantee it will works). If you haven't installed python you can do it by using pkg manager (pkg install pyhon27) or ports (cd /usr/ports/lang/python27 && make config-recursive && make install clean) - If you get some problem with the script you can post a comment in this thread to know the solution, anyway it should works perfectly with martysama source (most commonly used). - To run the script you should give 7XX octal permission. - To run the script you need to go at the same path where is the script and to use "./scriptname.py" to run it. - If you are creating the scriptfile using notepad++ (or some external editor) is possible to have a problem about the EOL character (you have to set it on "Unix EOL"). - You have way to enable/disable the question "exit?" when the build fail - To run the script you should put it on "Server" folder, when you can find game, db, common, etc. For any kind of problems i recommend you to write a comment in this thread (instead of pm) because another user could get same problem and find here the solution. i hope it would be usefull. byebye COMMANDLINE ARGUMENTS SCRIPT
    4 points
  2. M2 Download Center Download Here ( Internal ) Hello guys.. So much people got problem with this system then i do FULL TuT exclusive for metin2dev All is tested and all works TuT included in all FILES.. New Link: Pass: When you find some bug post it here.. I will try to fix it.. Have Fun //EnZi EDITED: #New Link UPDATE cmd_general.cpp - Added some new code char_battle.cpp - Added some new code ProtoReader.cpp - Added some new code questlua_pc - Repaired code item_proto - Query for navicat Quest added UP LINK UPDATED fixed quest: [Hidden Content]
    1 point
  3. M2 Download Center Download Here ( Internal ) Hey today i will show you my new tool. This tool will help you find duplicate files in the client. At the moment, this tool does not support automatic correction of duplicates, but if the community is interested, then I will try to implement this. File uniqueness is verified through the md5 algorithm. Thus, we can see duplicate files by their contents, and not by name. P.S The idea behind this tool belongs to Kori. DOWNLOAD ver. 1.0.0.0 VT
    1 point
  4. need update folder scan example monster2/boss1/motlist.txt monster2/boss2/motlist.txt they not duplicate but good idea thx if solve problem very good tool
    1 point
  5. @Helia01 add printing duplicates to new file. Will be very usable
    1 point
  6. // Add this function prototype to public in item.h void ChangeAttributeValue(); // Add this function in item_attribute.cpp or item.cpp void CItem::ChangeAttributeValue() { int attrCount = GetAttributeCount(); if(attrCount == 0) return; int iAttributeSet = GetAttributeSetIndex(); if (iAttributeSet < 0) return; for(int k = 0; k < attrCount; k++) { int attr_idx = GetAttributeType(k); const TItemAttrTable & r = g_map_itemAttr[attr_idx]; int nLevel = number(1, r.bMaxLevelBySet[iAttributeSet]); long lVal = r.lValues[MIN(4, nLevel - 1)]; if (lVal) SetAttribute(k, attr_idx, lVal); } } // In char_item.cpp just go to the item you want to be the changer and replace: item2->ChangeAttribute // With item2->ChangeAttributeValue();
    1 point
  7. 1 point
×
×
  • 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.