Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/22/15 in all areas

  1. M2 Download Center Download Here ( Internal ) Hey devs! One word: Works! Follow the steps: 1.) Open "db/src/Main.cpp" file and write this to the top of the file, under to the includes: // NOTXT_STARTUP_BEGIN BOOL g_noTXT = false; // NOTXT_STARTUP_END 2.) Search for this: "int iDisableHotBackup;" and put under this: // NOTXT_STARTUP_BEGIN int iNoTXT; if (CConfig::instance().GetValue("NO_TXT", &iNoTXT)) { if (iNoTXT) { sys_log(0, "CONFIG: NO_TXT"); g_noTXT = true; } } // NOTXT_STARTUP_END 3.) Save&Close. Now open "db/src/ClientManager.h" and replace: bool InitializeMobTable(); bool InitializeItemTable(); With: // NOTXT_STARTUP_BEGIN bool InitializeMobTableTXT(); bool InitializeItemTableTXT(); bool InitializeMobTableSQL(); bool InitializeItemTableSQL(); // NOTXT_STARTUP_END 4.) Save&Close. Then open "db/src/ClientManagerBoot.cpp" and put this the top of the file: // NOTXT_STARTUP_BEGIN extern int g_noTXT; // NOTXT_STARTUP_END 5.) Replace this: bool CClientManager::InitializeMobTable() With this: bool CClientManager::InitializeMobTableTXT() And repeat it with ItemProto(::InitializeItemTable) 6.) Search for this: "bool CClientManager::InitializeTables()" and replace this: if (!InitializeMobTable()) { sys_err("InitializeMobTable FAILED"); return false; } if (!MirrorMobTableIntoDB()) { sys_err("MirrorMobTableIntoDB FAILED"); return false; } if (!InitializeItemTable()) { sys_err("InitializeItemTable FAILED"); return false; } if (!MirrorItemTableIntoDB()) { sys_err("MirrorItemTableIntoDB FAILED"); return false; } With this: // NOTXT_STARTUP_BEGIN if (g_noTXT) // item and mob proto { if (!InitializeMobTableSQL()) { sys_err("InitializeMobTableSQL FAILED"); return false; } if (!InitializeItemTableSQL()) { sys_err("InitializeItemTableSQL FAILED"); return false; } } else { if (!InitializeMobTableTXT()) { sys_err("InitializeMobTableTXT FAILED"); return false; } if (!MirrorMobTableIntoDB()) { sys_err("MirrorMobTableIntoDB FAILED"); return false; } if (!InitializeItemTableTXT()) { sys_err("InitializeItemTableTXT FAILED"); return false; } if (!MirrorItemTableIntoDB()) { sys_err("MirrorItemTableIntoDB FAILED"); return false; } } // NOTXT_STARTUP_END 7.) And last put these functions into the file: 7+1.) New item_proto_table.sql: DROP TABLE IF EXISTS `item_proto`; CREATE TABLE `item_proto` ( `vnum` int(11) unsigned NOT NULL DEFAULT '0', `vnum_range` int(11) unsigned NOT NULL DEFAULT '0', `name` varbinary(200) NOT NULL DEFAULT 'Noname ', `locale_name` varbinary(24) NOT NULL DEFAULT 'Noname ', `type` tinyint(2) NOT NULL DEFAULT '0', `subtype` tinyint(2) NOT NULL DEFAULT '0', `weight` tinyint(3) DEFAULT '0', `size` tinyint(3) DEFAULT '0', `antiflag` int(11) DEFAULT '0', `flag` int(11) DEFAULT '0', `wearflag` int(11) DEFAULT '0', `immuneflag` set('PARA','CURSE','STUN','SLEEP','SLOW','POISON','TERROR') CHARACTER SET big5 NOT NULL DEFAULT '', `gold` int(11) DEFAULT '0', `shop_buy_price` int(10) unsigned NOT NULL DEFAULT '0', `refined_vnum` int(10) unsigned NOT NULL DEFAULT '0', `refine_set` smallint(11) unsigned NOT NULL DEFAULT '0', `refine_set2` smallint(5) unsigned NOT NULL DEFAULT '0', `magic_pct` tinyint(4) NOT NULL DEFAULT '0', `limittype0` tinyint(4) DEFAULT '0', `limitvalue0` int(11) DEFAULT '0', `limittype1` tinyint(4) DEFAULT '0', `limitvalue1` int(11) DEFAULT '0', `applytype0` tinyint(4) DEFAULT '0', `applyvalue0` int(11) DEFAULT '0', `applytype1` tinyint(4) DEFAULT '0', `applyvalue1` int(11) DEFAULT '0', `applytype2` tinyint(4) DEFAULT '0', `applyvalue2` int(11) DEFAULT '0', `value0` int(11) DEFAULT '0', `value1` int(11) DEFAULT '0', `value2` int(11) DEFAULT '0', `value3` int(11) DEFAULT '0', `value4` int(11) DEFAULT '0', `value5` int(11) DEFAULT '0', `socket0` tinyint(4) DEFAULT '-1', `socket1` tinyint(4) DEFAULT '-1', `socket2` tinyint(4) DEFAULT '-1', `socket3` tinyint(4) DEFAULT '-1', `socket4` tinyint(4) DEFAULT '-1', `socket5` tinyint(4) DEFAULT '-1', `specular` tinyint(4) NOT NULL DEFAULT '0', `socket_pct` tinyint(4) NOT NULL DEFAULT '0', `addon_type` smallint(6) NOT NULL DEFAULT '0', PRIMARY KEY (`vnum`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin; But you can modify your item_proto with "Design table" option in navicat, just make the vnum_range column to the second column after the vnum, as you can see in the query. conf.txt: NO_TXT = 1 0: TXT 1: SQL Special thanks to: - iMer, Zonni for the snippets ^^ Changelog: - "0" If you find any errors or problems just post a message into this thread. I tested on win. I hope you like it. With regards, P3NG3R.
    1 point
  2. Hi Open InstanceBaseEffect.cpp (Client-Source, UserInterface) Search for: static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f / 255.0f, 255.0f / 255.0f, 51.0f / 255.0f, 1.0f); Replace with: static D3DXCOLOR s_kLevelColor; if (IsPC() || IsEnemy() || IsStone() || IsPoly()) { s_kLevelColor = D3DXCOLOR(152.0f / 255.0f, 255.0f / 255.0f, 51.0f / 255.0f, 1.0f); } else { s_kLevelColor = D3DXCOLOR(225.0f / 255.0f, 255.0f / 255.0f, 0.0f / 255.0f, 1.0f); }
    1 point
  3. when 19.pick begin say("You've just picked up Sword+9'") end ^Should work already if the type of the item is 18 / ITEM_QUEST. If you want to change that open char_item.cpp and search for: if (item->GetType() == ITEM_QUEST) quest::CQuestManager::instance().PickupItem (owner->GetPlayerID(), item); Either you add another type to the if statement or simply remove it.
    1 point
  4. BUUUULSHIT. Here is a corect and stable tutorial
    1 point
  5. hey guys today i was trying to read lycan books but i found a problem that when you read 200 book for example they all remove the soulation : open your game source char_item.cpp find : if (true == LearnSkillByBook(dwVnum)) { ITEM_MANAGER::instance().RemoveItem(item); change to : if (true == LearnSkillByBook(dwVnum)) { item->SetCount(item->GetCount() - 1); kind regards
    1 point
  6. The UCP is ready for testing now - some little changes will occur in the future, but the base is ready. Also i integrated AnythingSlider into this CMS, which allows to slide not only images but also Videos from Youtube, Vimeo and also your webspace! - Thanks HTML5 <3 Also the "default" style is set to 'metallic' - but you can change this easily (also the height and width) in the index.tpl <style> #slider1 { width: 350px; height: 195px; list-style: none} </style> <!-- AnythingSlider initialization --> <script> // DOM Ready $(function(){ $('#slider1').anythingSlider({ toggleControls : true, theme : 'metallic', autoPlay : true, autoPlayLocked : false, enableStartStop: true }); }); </script>
    1 point
  7. Sent some changes. You can take a look Ira, PHPStorm is the best php IDE by far
    1 point
  8. For people still having issues with this, let me try helping you out. What we are going to do is follow Shoguns tutorial from post 1, just a little more detailed for those of you who can't seem to get it right. Do you have 64 bit windows? CLICK ME Do you have 32 bit windows? CLICK ME This is the official download for Python 2.7.9. Open the installation and make sure it is exactly the same as these screenshots: Download the two files from Shoguns original post. FILE 1 and FILE 2 Unpack these two files. NOTE: if you are not using it yet, get it. It's called 7Zip. Just get it. (LINK) Did you unpack them? Great work. Now you see two directories (Micropenis calls them "Folders"): "World of Metin2 Client for metin2dev.org - Base" "World of Metin2 Client for metin2dev.org - Extra" I want you to create a new directory. Just put it on your desktop. Make your life easier. Name this new directory "Metin2WoM". Open this directory in one window. Open "World of Metin2 Client for metin2dev.org - Base" in another window, it contains three directories: Copy the first two, "client" and "server" into the "Metin2WoM" directory you created earlier. Now open the fresh copied "client" within "Metin2WoM", locate the file called "loginInfo.txt", and rename it to "loginInfo_TROLL_FILE.txt". Next thing, you see that "tools" directory? Cut that directory (Ctrl+X), open My Computer, open C:, and paste it here. Now the path to that directory is "C:tools". This was easy, right? You will need to add this path ("C:tools") to your system path. Do you know how to get to system path? If not, click Windows7 or Windows8. When you open the system path, use your arrow keys to move to the start of the line, write in "C:tools;". Do not forget to add the " ; " at the end. Now close all that, and open your "Metin2WoM" directory, and now also open the "World of Metin2 Client for metin2dev.org - Extra" in another window. Within this, open "client", then "data". Now you see a ton of stuff inside. Mark it all (Ctrl+A), cut it (Ctrl+X). Switch to the "Metin2WoM" window, open "data", and paste stuff inside (Ctrl+V). You are almost done now. Open "Metin2WoM", "client", "data", and maximize this window so it nicely covers your whole screen. If you want to modify "serverinfo.py", find it in "root" directory here. You see these files below the directories? There are twenty "make_xxx.bat" files. I want you to double click the first one (make_effect.bat), and not touch anything for a while. A command prompt window (cmd) will open, and it will shoot around some data. Wait for this window to close on its own. After you've done this with all twenty "make_crap.bat" files, get back to "Metin2WoM", "client", "bin", and locate the "metin2.bin". Copy and paste it, this will create "metin2 - Copy.bin". Rename "metin2 - Copy.bin" into "metin2client.exe". And just double click "metin2client.exe". If you followed my guide to the letter, your client will now happily pop up. EDIT: whenever you want to edit something for the client, just go to /pack, delete the epk/eix of what you want to edit, go back to data, edit it, run the appropriate make_xxx.bat file (if you want to modify "root", delete "root.epk" and "root.eix" in pack, modify the stuff in dataroot, then run the "make_root.bat").
    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.