Removed distribution_test_server
This commit is contained in:
@@ -535,7 +535,7 @@ bool CHARACTER::IsDead() const
|
||||
return false;
|
||||
}
|
||||
|
||||
#define GetGoldMultipler() (distribution_test_server ? 3 : 1)
|
||||
#define GetGoldMultipler() (1)
|
||||
|
||||
void CHARACTER::RewardGold(LPCHARACTER pkAttacker)
|
||||
{
|
||||
@@ -2464,10 +2464,6 @@ static void GiveExp(LPCHARACTER from, LPCHARACTER to, int iExp)
|
||||
// 레벨차 경험치 가감비율
|
||||
iExp = CALCULATE_VALUE_LVDELTA(to->GetLevel(), from->GetLevel(), iExp);
|
||||
|
||||
// 외부 테스트 서버 경험치 3배 보너스
|
||||
if (distribution_test_server)
|
||||
iExp *= 3;
|
||||
|
||||
int iBaseExp = iExp;
|
||||
|
||||
// 점술, 회사 경험치 이벤트 적용
|
||||
|
||||
@@ -2157,13 +2157,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
|
||||
|
||||
int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX);
|
||||
|
||||
if (distribution_test_server)
|
||||
iReadDelay /= 3;
|
||||
|
||||
//한국 본섭의 경우에는 시간을 24시간 고정
|
||||
if (LC_IsKorea())
|
||||
iReadDelay = 86400;
|
||||
|
||||
SetSkillNextReadTime(dwVnum, get_global_time() + iReadDelay);
|
||||
}
|
||||
}
|
||||
@@ -3082,7 +3075,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
|
||||
ITEM_MANAGER::instance().RemoveItem(item);
|
||||
|
||||
int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX);
|
||||
if (distribution_test_server) iReadDelay /= 3;
|
||||
|
||||
SetSkillNextReadTime(SKILL_LEADERSHIP, get_global_time() + iReadDelay);
|
||||
}
|
||||
@@ -3124,7 +3116,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
|
||||
ITEM_MANAGER::instance().RemoveItem(item);
|
||||
|
||||
int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX);
|
||||
if (distribution_test_server) iReadDelay /= 3;
|
||||
|
||||
SetSkillNextReadTime(SKILL_COMBO, get_global_time() + iReadDelay);
|
||||
}
|
||||
@@ -3153,7 +3144,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
|
||||
ITEM_MANAGER::instance().RemoveItem(item);
|
||||
|
||||
int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX);
|
||||
if (distribution_test_server) iReadDelay /= 3;
|
||||
|
||||
SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay);
|
||||
}
|
||||
@@ -3182,7 +3172,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
|
||||
ITEM_MANAGER::instance().RemoveItem(item);
|
||||
|
||||
int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX);
|
||||
if (distribution_test_server) iReadDelay /= 3;
|
||||
|
||||
SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay);
|
||||
}
|
||||
@@ -3255,7 +3244,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
|
||||
ITEM_MANAGER::instance().RemoveItem(item);
|
||||
|
||||
int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX);
|
||||
if (distribution_test_server) iReadDelay /= 3;
|
||||
|
||||
SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay);
|
||||
}
|
||||
@@ -3286,7 +3274,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
|
||||
ITEM_MANAGER::instance().RemoveItem(item);
|
||||
|
||||
int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX);
|
||||
if (distribution_test_server) iReadDelay /= 3;
|
||||
|
||||
SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay);
|
||||
|
||||
@@ -3328,7 +3315,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
|
||||
ITEM_MANAGER::instance().RemoveItem(item);
|
||||
|
||||
int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX);
|
||||
if (distribution_test_server) iReadDelay /= 3;
|
||||
|
||||
SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay);
|
||||
}
|
||||
@@ -3383,7 +3369,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
|
||||
PointChange(POINT_HORSE_SKILL, 1);
|
||||
|
||||
int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX);
|
||||
if (distribution_test_server) iReadDelay /= 3;
|
||||
|
||||
if (!test_server)
|
||||
SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay);
|
||||
|
||||
@@ -37,7 +37,6 @@ DWORD g_dwTrafficProfileFlushCycle = 3600;
|
||||
// END_OF_TRAFFIC_PROFILER
|
||||
|
||||
int test_server = 0;
|
||||
bool distribution_test_server = false;
|
||||
bool china_event_server = false;
|
||||
bool guild_mark_server = true;
|
||||
BYTE guild_mark_min_level = 3;
|
||||
@@ -586,12 +585,6 @@ void config_init(const string& st_localeServiceName)
|
||||
continue;
|
||||
}
|
||||
|
||||
TOKEN("distribution_test_server")
|
||||
{
|
||||
str_to_number(distribution_test_server, value_string);
|
||||
continue;
|
||||
}
|
||||
|
||||
TOKEN("china_event_server")
|
||||
{
|
||||
str_to_number(china_event_server, value_string);
|
||||
|
||||
@@ -23,7 +23,6 @@ extern int ping_event_second_cycle;
|
||||
extern int test_server;
|
||||
extern bool guild_mark_server;
|
||||
extern BYTE guild_mark_min_level;
|
||||
extern bool distribution_test_server;
|
||||
extern bool china_event_server;
|
||||
|
||||
extern bool g_bNoMoreClient;
|
||||
|
||||
Reference in New Issue
Block a user