-
Posts
576 -
Joined
-
Days Won
43 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by Sanchez
-
last_account.cfg unprotected?
Sanchez replied to Aurora's topic in Community Support - Questions & Answers
So, what's your question? -
last_account.cfg unprotected?
Sanchez replied to Aurora's topic in Community Support - Questions & Answers
Use MD5: import hashlib def Something(self, plainText): return hashlib.md5(plainText).hexdigest() Or if you want to decrypt it too, just use base64. It's basic, but probably enough. -
source - pet irrevocably teleport
Sanchez replied to chairman's topic in Community Support - Questions & Answers
What? -
Great idea, but this won't be a cleaner way? int party_spouse_in_party(lua_State* L) { // Get the current character const LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); // Something went wrong, character does not exist if (!ch) { lua_pushboolean(L, false); return 1; } // I'm not in party if (!ch->GetParty()) { lua_pushboolean(L, false); return 1; } // Get my marriage partner const LPCHARACTER tch = ch->GetMarryPartner(); // I don't have marriage partner if (!tch) { lua_pushboolean(L, false); return 1; } // My spouse is not in party if (!tch->GetParty()) { lua_pushboolean(L, false); return 1; } // We are not on the same map if (tch->GetMapIndex() != ch->GetMapIndex()) { lua_pushboolean(L, false); return 1; } // We are not in the same party if (!ch->GetParty()->IsMember(tch->GetPlayerID())) { lua_pushboolean(L, false); return 1; } lua_pushboolean(L, true); return 1; }
-
[C++]Mysql_select quest function
Sanchez replied to Randomize's topic in Community Support - Questions & Answers
Sure It's possible. // Get the current character LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); // Something wen't wrong, character does not exist if (!ch) { // Push back -1 to the quest, which means there was an error lua_pushnumber(L, -1); return 1; } // Character don't have desc if (!ch->GetDesc()) { // Push back -1 to the quest, which means there was an error lua_pushnumber(L, -1); return 1; } // Execute the query std::auto_ptr<SQLMsg> msg(DBManager::instance().DirectQuery("SELECT something FROM account.account WHERE id = %lu", ch->GetDesc()->GetAccountTable().id)); // Something was wrong with the query if (msg->Get()->uiNumRows <= 0 || msg->uiSQLErrno != 0) { // Push back -1 to the quest, which means there was an error lua_pushnumber(L, -1); return 1; } // Create a new lua table lua_newtable(L); // Row will contains the current line of data MYSQL_ROW row; // Lua indexing starts from 1, so the first index of the array should be 1 int idx = 1; // value contains the data of current field int value = 0; // While we have available data while ((row = mysql_fetch_row(msg->Get()->pSQLResult))) { if (!row[0]) continue; // Push the index to the table lua_pushnumber(L, idx); // Convert the data of the field to number str_to_number(value, row[0]); // Push the data to the table lua_pushnumber(L, value); // We are pushing back a one dimensional array, so set the index of the table to -3 lua_settable(L, -3); // Add +1 to the index idx++; } return 1; -
1. Navigate to externcryptopp and open cryptest.sln 2. Set the target toolset of the projects to v120, if it's not that by default 3. Rebuild the solution in Debug & Release mode, because you need both.
-
Rebuild crypto++ with v120 toolset.
-
Set isShowDebugInfo to True in game.py
-
I watched Whiplash in the night and it was great.
-
Yes, because you just copied everything to game.py without replacing the spaces with tabs. Search for "mds" and insert the correct tabs.
-
You have syntax errors everywhere, in python you have to use [TAB] instead of [sPACE]
-
I moved your topic to the correct section: Metin2 -> Services -> Searching
-
Never do something like this on client-side.
-
How To Change Client Protection with Keys in Hexa
Sanchez replied to Denis's topic in Guides & HowTo
I recommend you to choose between these: [Hidden Content] -
Compile Binary in VS 2013
Sanchez replied to Randomize's topic in Community Support - Questions & Answers
Rebuild crypto++ with v120 toolset. -
backdoors, bugs crashed
Sanchez replied to MaRRaTPL's topic in Community Support - Questions & Answers
There are no backdoors in these branches, but if you purchase a VIP membership you'll be able to access to a non-public section where you can find the currently known exploits with fixes. It's not that expensive, so if you're going to make a server I highly recommend you to purchase it. -
What is this?
-
[HELP] How to write something before the name
Sanchez replied to RachadoPT's topic in Community Support - Questions & Answers
Every branch have it. -
[HELP] How to write something before the name
Sanchez replied to RachadoPT's topic in Community Support - Questions & Answers
You're looking for the TextTail in PythonTextTail.cpp, just duplicate the already exist guild, align or the character name tails. -
Problem with packet - character move
Sanchez replied to Necro's topic in Community Support - Questions & Answers
Nobody will able to solve your problem without more informations, but why don't you debug it? -
HELP ME! START POSITION
Sanchez replied to denisuk777's topic in Community Support - Questions & Answers
g_start_position contains the positions: DWORD g_start_position[4][2] = { { 0, 0 }, { 469300, 964200 }, // Red { 55700, 157900 }, // Yellow { 969600, 278400 } // Blue }; -
[ERROR] Compile client binary
Sanchez replied to phayara's topic in Community Support - Questions & Answers
It looks one or more of your libs has been compiled with an another version of compiler, rebuild all them, including crypto++ with the same version. -
Jeden Spieler auswählen/go through all players
Sanchez replied to Benhero's topic in Community Support - Questions & Answers
void RemoveAffectInMap(const long lMapIndex, const DWORD dwAffect) { if (lMapIndex) { const DESC_MANAGER::DESC_SET & c_ref_set = DESC_MANAGER::instance().GetClientSet(); std::for_each(c_ref_set.begin(), c_ref_set.end(), aff_remove_func(lMapIndex, dwAffect)); } } struct aff_remove_func { const long m_lMapIndex; const DWORD m_dwAffect; aff_remove_func(const long lMapIndex, const DWORD dwAffect) : m_lMapIndex(lMapIndex), m_dwAffect(dwAffect) { } void operator () (LPDESC d) { if (!d) return; LPCHARACTER ch; if (!(ch = d->GetCharacter())) return; if (ch->GetMapIndex() == m_lMapIndex && ch->FindAffect(dwAffect)) ch->RemoveAffect(dwAffect); } }; -
Item price in privateshopbuilder
Sanchez replied to Endymion's topic in Community Support - Questions & Answers
As first argument you have to pass the type of the window. -
As you can see it's don't even compiled.