Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


VegaS last won the day on January 8 2017

VegaS had the most liked content!

Community Reputation

421 Good

About VegaS

  • Rank
  • Birthday 01/22/1884


  • Gender


  • Kingdom

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. This account was banned 4 years ago because of:

    • multi account
    • spamming/warnings

    The new account: 

    1. ASIKOO


      Do you want me to merge your accounts ? :) 

    2. ASIKOO
  2. cel mai smecher ❤️

  3. PS: Sorry for so later answer here, but one guy asked me about this topic, and i was think is ok and post here. https://metin2dev.org/board/index.php?/topic/12962-c-stop-collision-with-arguments-bonus/ - Here is more settings.
  4. Perhaps it will be useful for some people for various systems. Have fun. # onPressKeyDict[app.DIK_F5] = lambda : self.Print() # For test function @root/game.py def Print(self): import app, chat list = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" # Set list maxStr = 10 # Set the maximum number of characters k = "" for v in xrange(maxStr): k = k + list[app.GetRandom(0, len(list) - 1)] chat.AppendChat(chat.CHAT_TYPE_INFO, "Result word: %s" % str(k))
  5. For who want in client-side: For who want in server-side:
  6. Debug: //@svn/Server/game/common/service.h #define ENABLE_LUA_FUNCTION_TIME //@svn/Server/game/src/game/questlua_global.cpp //1.) Search: int _get_global_time(lua_State* L) { lua_pushnumber(L, get_global_time()); return 1; } //2.) Add bellow: #ifdef ENABLE_LUA_FUNCTION_TIME /* © Dick of VegaS™ */ #include <time.h> /* time_t, struct tm, time, localtime */ int _print_datetime(lua_State* L) { time_t currentTime; struct tm *localTime; time(&currentTime); localTime = localtime(&currentTime); CQuestManager::Instance().GetCurrentCharacterPtr()-&
  7. //@svn/Source/Client/UserInterface/InstanceBaseBattle.cpp //1.) Search: bool CInstanceBase::NEW_UseSkill(UINT uSkill, UINT uMot, UINT uMotLoopCount, bool isMovingSkill) { //2.) Add bellow: #ifdef ENABLE_DISABLE_ATTACK_SPECIALS_MAP std::string uCurrentMap = CPythonBackground::Instance().GetWarpMapName(); static const char* uArrayListOfMaps[] = { "metin2_map_a1", "metin2_map_b1", "metin2_map_c1" }; /* loaded from atlasinfo.txt */ for (int arg=0; arg<_countof(uArrayListOfMaps); arg++) { if (IsPC() && uArrayListOfMaps[arg] == uCurrentMap) { TraceError("CInstanceBa
  8. Here you have a small example to understand better. //@svn/Source/Client/UserInterface/Userinterface.cpp: int GetSizeOfMyDLL(char* fileName) { HANDLE file = CreateFileA(fileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); return GetSizeOfMyDLL(file, NULL); } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { #define SIZE_DLL 16896 #define NAME_DLL "bdvid32.dll" HINSTANCE hGetProcIDDLL = LoadLibrary(NAME_DLL); if (hGetProcIDDLL == NULL) { MessageBox(NULL, "The client can't start without one d
  9. You can not do this because of pet time that you use that system by saving time is used by data type int value what was saved on storage mysql. You need to make a takeover increment in real time server and decrease in all columns baseline - 1 second. Which means you will have to do a query directly query that look like to do a check which consists if time is > 0, then you need a query and update query as noted above. Or you can do an event which is running throughout the game (as long as it receives no crash or other strokes), and through that event can decrease the time of each co
  10. You can test with this. //@svn/Client/UserInterface/InstanceBaseEffect.cpp void CInstanceBase::UpdateTextTailLevel(DWORD level) { if (IsPC()) { static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f/255.0f, 255.0f/255.0f, 51.0f/255.0f, 1.0f); char szText[256]; char* szName[2] = {"[VIP]", "[Player]"}; /* Name of grade */ char* szColor[2] = {"d2d400", "09eeee"}; /* Color of grade: http://www.color-hex.com/color/ccffff */ if (IsVIP()) { sprintf(szText, "|cFF%s%s|r Lv. %d", szColor[0], szName[0], level); } else { sprintf(szText, "|cFF%s%s|r Lv. %d", szColor[1], szName[1], level
  11. Lua will hate me now but you can try with this shit: --[[########################### # Quest: Counting kills # ###########################]] quest mob begin state start begin function res() return (pc.getqf("count_kills")) end function count() pc.setqf("count_kills", mob.res() + 1) syschat(string.format("<Debug Mode> Now you killed mob: %s. Your counters of kills mobs was increased +1.", mob_name(npc.get_race()))) end when kill with not npc.is_pc() begin mob.count() end when 70001.use begin say_title("#Informations") say(string.format("<Debug Mode> Resu
  12. It can make the quest easier, but I prefer the more in C++. //@svn/Source/Server/game/src/game/char_battle.cpp //1.) Search: void CHARACTER::Dead(LPCHARACTER pkKiller, bool bImmediateDead) { if (IsDead()) return; //2.) Add bellow: #ifdef ENABLE_COUNTING_KILLS if (pkKiller->IsPC() && !IsPC()) { CountingKills(pkKiller, this); } #endif //3.) Search: int CHARACTER::GetRealAlignment() const { return m_iRealAlignment; } //4.) Add bellow: #ifdef ENABLE_COUNTING_KILLS void CountingKills(LPCHARACTER ch, LPCHARACTER tch) { /***************** Credits: VegaS ****************
  • 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.