mehmetdogan
-
Posts
4 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by mehmetdogan
-
-
-
hello
The time is reset when I change the map. I just want to reset when quit or character change. thx
DWORD CHARACTER::GetLogonTime(){ return (get_dword_time() - m_dwLogonTime) / 1000 + 0.5; //now - logon_time -> convert ms to sec > convert float to int } void CHARACTER::CheckLogonTime(int time){ if (time / 60 > 180 && !m_iLogonIsRewarded){ ChatPacket(CHAT_TYPE_INFO, LC_TEXT("rewardplaytime.")); //You are won 10M for that 3 hours in the game PointChange(POINT_GOLD, 10000000, false); //10.000.000 DBManager::instance().SendMoneyLog(MONEY_LOG_QUEST, 1, 10000000); m_iLogonIsRewarded = 1; } ChatPacket(CHAT_TYPE_COMMAND, "ClientLogonUpdate %d", time / 60); } EVENTFUNC(logontime_check_event) { char_event_info* info = dynamic_cast<char_event_info*>(event->info); if (info == NULL) { sys_err("logontime_check_event> <Factor> Null pointer"); return 0; } LPCHARACTER ch = info->ch; if (ch == NULL) { // <Factor> return 0; } ch->CheckLogonTime(ch->GetLogonTime()); return PASSES_PER_SEC(60); //1min } void CHARACTER::InitCharLogonEvent(){ if (m_pkLogonEvent) return; if (m_iLogonIsStarted != 1) { ChatPacket(CHAT_TYPE_COMMAND, "ClientLogonStart 0"); m_iLogonIsStarted = 1; } char_event_info* info = AllocEventInfo<char_event_info>(); info->ch = this; m_pkLogonEvent = event_create(logontime_check_event, info, PASSES_PER_SEC(60)); }
-
networkModule.py(line:209) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:30) <module> system.py(line:130) __pack_import system.py(line:110) _process_result interfaceModule.py(line:12) <module> system.py(line:130) __pack_import system.py(line:110) _process_result uiInventory.py(line:23) <module> system.py(line:130) __pack_import system.py(line:110) _process_result interfacemodule.py(line:30) <module> system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unexpected indent (uiMiniMap.py, line 458)
???
RenderTarget System Scale Problem
in Community Support - Questions & Answers
Posted · Edited by Metin2 Dev
Core X - External 2 Internal
hi everybody. i have a problem.
Boss timer system doesn't show the boss's head. What could be the problem ?
https://metin2.download/picture/QYcfbvAL27qqm3u11u9f0L6CCO7V66eY/.png