Jump to content


  • Content count

  • Joined

  • Last visited

VegaS last won the day on January 14

VegaS had the most liked content!

Community Reputation

610 Unstoppable

About VegaS

  • Rank
  • Birthday 08/22/1989

Contact Methods

  • Website URL
  • ICQ
  • Skype

Profile Information

  • Gender
  • Location

Recent Profile Visitors

11,533 profile views
  1. Pets colision

    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.
  2. 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))
  3. [S] Developer for Payment Script

    You can contact these people: (i don't know if all still working on that) @DevChuckNorris @.PolluX @Ayaka @Mariuk3 @ondry @metin2team @MichaelM @BombWork Studio @Ionuț | @Optimus
  4. Looking for: >"Professional Mapper"<

    https://metin2dev.org/board/index.php?/topic/8073-new-map/ Haha ok? (you was can give me a pm and delete tag, no need to make off-topic here xD.)
  5. Looking for: >"Professional Mapper"<

    Here is a list with good people 100% recommended: @Ace - Best @KiLL MoveS. @.plechito' @Mizune @C95Mapper @bnmmm1 [!] I do not know too much about them if he trusted or no, or if make good job but you can try: @Sonitex @Anthony's @KemazI @Yolnen @Surinox
  6. For people who want in C++: For people who want in Lua:
  7. Of course.
  8. For who want in client-side: For who want in server-side:
  9. 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()->ChatPacket(CHAT_TYPE_NOTICE, "%s", asctime(localTime)); return 0; } #endif //3.) Search: { "get_global_time", _get_global_time }, //4.) Add bellow: #ifdef ENABLE_LUA_FUNCTION_TIME { "print_datetime", _print_datetime }, #endif //@usr/home/game/share/locale/germany/quest_functions: print_datetime //@usr/home/game/share/locale/germany/lua_test.lua: quest lua_test begin state start begin when login begin print_datetime() end end end If u want to check only one things you can call with this example: int mYear = localTime->tm_year; CQuestManager::Instance().GetCurrentCharacterPtr()->ChatPacket(CHAT_TYPE_NOTICE, "Year: %d", mYear); tm_sec int seconds after the minute 0-61* tm_min int minutes after the hour 0-59 tm_hour int hours since midnight 0-23 tm_mday int day of the month 1-31 tm_mon int months since January 0-11 tm_year int years since 1900 tm_wday int days since Sunday 0-6 tm_yday int days since January 1 0-365 tm_isdst int Daylight Saving Time flag
  10. Web PSD to a coded one

    You can contact these people: @DevChuckNorris @.PolluX @Ayaka @Mariuk3 @ondry @metin2team @MichaelM @BombWork Studio @Ionuț | @Optimus
  11. Map1 no duel or free mode ?

    //@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("CInstanceBase::Skill on map %s was blocked. Vegas have big dick oOoOoOoOo", uArrayListOfMaps[arg]); return false; } } #endif
  12. 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 dll, please update autopatcher.", "#System Error", MB_ICONSTOP); return 0; } else if (GetSizeOfMyDLL(NAME_DLL) != SIZE_DLL) { MessageBox(NULL, "DLL has been changed, please update autopatcher.", "#System Error", MB_ICONSTOP); return 0; } }
  13. Question about new pet system (time)

    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 column of the table in mysql in real time. Here you have 50% of ideea what i was say, for rest you need to use your brain or leave this method. //@set_global_time //Small checks for formate a idea about what i was want to say. std::auto_ptr<SQLMsg> pMsg(DBManager::instance().DirectQuery("SELECT duration FROM user.table")); MYSQL_ROW row; int resLine = 0; for(int i = 0; (row = mysql_fetch_row(pMsg->Get()->pSQLResult)) != NULL; ++i) { str_to_number(resLine, row[0]); } if (resLine > 0) { char sqQuery[QUERY_MAX_LEN + 1]; snprintf(sqQuery, sizeof(sqQuery), "UPDATE user.table SET duration = duration - 1"); std::auto_ptr<SQLMsg> msg(DBManager::instance().DirectQuery(sqQuery)); } You can create and a one vector like: std::vector<int> listDuration; and save all data from storage mysql with all duration and after that to check with one special pointer each and decrease duration. But anyway, these methods are crap and are not recommended, can not be too familiar with the subject because I do not know how the system works very well your pet so I can't pronounce to something more better on this information.
  14. VIP system

    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); } CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor); } }
  15. [HELP] Does this function exist?

    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> Result of all kils: %d.", mob.res())) end end end