VegaS
Banned-
Posts
363 -
Joined
-
Last visited
-
Days Won
40 -
Feedback
0%
VegaS last won the day on January 8 2017
VegaS had the most liked content!
About VegaS
- Birthday 01/22/1884
Core X
-
BAN_NOTICE
Yes
Metin2 Dev
Informations
-
Gender
Male
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
VegaS's Achievements
-
BeauDeCiuda started following VegaS
-
PS: Sorry for so later answer here, but one guy asked me about this topic, and i was think is ok and post here. [Hidden Content] - Here is more settings.
-
M2 Download Center Download Here ( Internal ) 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))
-
[S] Developer for Payment Script
VegaS replied to ‚Point‘'s topic in Paid Support / Searching / Recruiting
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 -
Looking for: >"Professional Mapper"<
VegaS replied to Raylee's topic in Paid Support / Searching / Recruiting
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.) -
Looking for: >"Professional Mapper"<
VegaS replied to Raylee's topic in Paid Support / Searching / Recruiting
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 -
Of course.
-
M2 Download Center Download Here ( Internal ) For who want in client-side: For who want in server-side:
-
how to print date( YEAR-MONTH-DAY ) in chat
VegaS replied to Marggraf's topic in Community Support - Questions & Answers
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(¤tTime); localTime = localtime(¤tTime); 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- 1 reply
-
- 1
-
You can contact these people: @DevChuckNorris @.PolluX @Ayaka @Mariuk3 @ondry @metin2team @MichaelM @BombWork Studio @Ionuț | @Optimus
-
Map1 no duel or free mode ?
VegaS replied to DeYaN.'s topic in Community Support - Questions & Answers
//@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 -
How to load a dll file from client source?
VegaS replied to Dash's topic in Community Support - Questions & Answers
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; } } -
Question about new pet system (time)
VegaS replied to Iηfιηιт²⁴ᵏ's topic in Community Support - Questions & Answers
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. -
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: [Hidden Content] */ 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); } }
-
[HELP] Does this function exist?
VegaS replied to Gmmetinero's topic in Community Support - Questions & Answers
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 -
[HELP] Does this function exist?
VegaS replied to Gmmetinero's topic in Community Support - Questions & Answers
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 *****************/ int numberCount, total; std::string flag = "mob.count_kills"; numberCount = ch->GetQuestFlag(flag); total = numberCount += 1; ch->SetQuestFlag(flag, total); ch->ChatPacket(CHAT_TYPE_INFO, "<Debug> Now you killed mob: %s", tch->GetName()); ch->ChatPacket(CHAT_TYPE_INFO, "<Debug> Total counting of kills: %d.", numberCount); } #endif //@svn/Source/Server/game/src/common/service.h //Add where you want: #define ENABLE_COUNTING_KILLS //Example if you want to make special function to get counting kills: //CPP - char.cpp / char_battle.cpp / char_item.cpp etc. int CHARACTER::GetCountingKills() { int res = ch->GetQuestFlag("mob.count_kills"); return res; } // Header - char.h public: int GetCountingKills(); //How to use: //Part for other function on source to result chat. ch->ChatPacket(CHAT_TYPE_INFO, "<Debug> Total counting of kills: %d", ch->GetCountingKills()); //Part for result in lua. //svn/Source/Server/game/src/game/questlua_pc.cpp luaL_reg pc_functions[] = { { "get_counting_kills", pc_get_counting_kills }, }; int pc_get_counting_kills(lua_State * L) { lua_pushnumber(L, ch->GetCountingKills()); return 1; } //yourquest.lua: say(string.format("<Debug> Total counting of kills: %d", pc.get_counting_kills()))