-
Posts
232 -
Joined
-
Last visited
-
Days Won
7 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by Cataclismo
-
Hello, A few weeks ago, being bored I thought about creating a visual editor for item_proto, without the need of XML, and here's the result: [Hidden Content] I should mention that this is my first time working with CLI and C#. Pretty fun actually. Also, the binaries for graphic interface (including library dll) are built for x64 arch. If anyone wants, I can provide the source code for the graphic interface, but because of laziness, I made the interface a bit tricky, yet easy to modify (on some parts). Enjoy PS: Any feedback is welcome. Not tested with an actual client. Just read and written some item_proto files. xD
-
That's very bad practice. You should cipher your packets. That's the best method. And you already have all the resources in game/client.
-
This just copy/paste from here. Nice. Can you stop copying other's stuff? Thanks.
-
Refactored like this? std::vector<DWORD> exp_vector; bool LoadExpTableFromMySQL() { std::auto_ptr<SQLMsg> pMsg(DBManager::instance().DirectQuery("SELECT level, exp FROM common.exp_table")); if (pMsg->uiSQLErrno != 0) { sys_err("Failed to load exp table!"); return false; } exp_vector.reserve(pMsg->Get()->uiNumRows); MYSQL_ROW row; while((row = mysql_fetch_row(pMsg->Get()->pSQLResult))) { DWORD level, exp; str_to_number(level, row[0]); str_to_nubmer(exp, row[1]); exp_vector[level] = exp; if (test_server) sys_log(0, "MYSQL EXP LOAD: LEVEL %u EXP %u", level, exp); } return true; } Since GetNextExp() will return DWORD, you should use DWORD too for your vector. You will fool the users thinking that they can increase exp limit over 4kkk (DWORD limit). Also, if you're using C++11 or higher consider using unique_ptr instead of auto_ptr.
-
[Hidden Content]
-
fix How To Block Change Bonus on Equipped Items
Cataclismo replied to xDeStRuCtx's topic in Bug Fixes
Yes, it is already posted for a year or more. Watch your language and use search -
Problem with constans.cpp
Cataclismo replied to Aurora's topic in Community Support - Questions & Answers
Hi, Aurora. TEH wants to tell you that PLAYER_EXP_TABLE_MAX is equal to 120, which means your experience table can have only 120 values. If you want 250 then you have to find where it's defined (probably in length.h) and change the value to 250. -
Game.Core problems Channel down
Cataclismo replied to xCoRPeR's topic in Community Support - Questions & Answers
Did you try to modify source to be able to put more than 7 bonuses on an item or more than 3 metin stones? -
Remove skill books and spirit stones from game. Easy. You don't need the source for that...
-
It's not so weird... your slot's are not "refreshing". You probably forgot some piece of codes when you redesigned the inventory. Can't you just compare the codes with an working inventory and see what do you miss?
-
[HACKSHIELD] Update Error
Cataclismo replied to Shinigami's topic in Community Support - Questions & Answers
Or .bin, as I told you. So, it compiles fine, and i can open the client but, hackshield does not show on task, i have seen a video from you showing the hackshield launching when you open the game, (in another post). Yeah. It's a little secret xD, but I discovered that this is just a break in security. You don't have to open that thing , hackshield will work without it. -
[HACKSHIELD] Update Error
Cataclismo replied to Shinigami's topic in Community Support - Questions & Answers
Or .bin, as I told you. -
[HACKSHIELD] Update Error
Cataclismo replied to Shinigami's topic in Community Support - Questions & Answers
Name your launcher metin2client.bin or metin2.bin -
Problem binary compile
Cataclismo replied to Abel(Tiger)'s topic in Community Support - Questions & Answers
I think you have to install SP1 for Visual Studio. I am not sure. -
Unknown Server Command
Cataclismo replied to PeaceMaker's topic in Community Support - Questions & Answers
Post the python part too. -
Did you even search the forum before you post? There's a solution already posted.
-
[HowTo]Disable Syserr client
Cataclismo replied to FlorinMarian's topic in Community Support - Questions & Answers
1. Just don't do it. Instead of just hiding errors you should repair them. 2. Take a look here: -
Quest function "For"
Cataclismo replied to Vesley's topic in Community Support - Questions & Answers
metin2team, you forgot something: function give_multiple_items(item, count) while(count > 200) do print("pc.give_item2(item, 200)") pc.give_item2(item, 200) count = count - 200 end if count > 0 then print("pc.give_item2(item, "..count..")") pc.give_item2(item, count) --!!! THIS FUNCTION end end -
Find #include "sectree_manager.h" And add after: #include "desc.h" And I recommend you to use this function, otherwise your game may crash: int npc_get_ip(lua_State* L) { LPCHARACTER npc = CQuestManager::instance().GetCurrentNPCCharacterPtr(); if (!npc || !npc->GetDesc()) { lua_pushstring(L, "INVALID"); return 1; } lua_pushstring(L, npc->GetDesc()->GetHostName()); return 1; } If the enemy is not a PC (if you forgot to check or you don't want to) or it's an invalid instance (kinda impossible) then the function will return "INVALID" and you may do a check in your quest (if pc.get_ip() == "INVALID" then). Tell me if that works.
-
Name of two commands urgent
Cataclismo replied to pedrorrr's topic in Community Support - Questions & Answers
Well, commands that start with that letters, but I'm not sure which of them. Check them all. There are a few starting with those letters. -
Well, you probably created it when you modified max yang. Check the types of yang in the buy functions. Or just follow the tutorial again and check everything. You're not alone, btw. Check this reply.
-
fix Proper 4th Inventory CExchange::CheckSpace function
Cataclismo replied to Metin2 Dev's topic in Bug Fixes
There's a lot of places to change that. Every function that uses position should be changed. The packets have to be changed too. -
Does items disappear from database too?
-
I actually found version 4.30 cracked yesterday