Welcome to Onforum.net - Web and gaming resource community

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?
  • elefant.ro%20

Metin2 [Advance] Gold Bars from source

DevGames

Well-known member
Credits
2
in common/service.h
add
#define __GOLD_BARS__
in char.cpp at end of files add:



in char.h under
bool ItemProcess_Polymorph(LPITEM item);
add:


in char_item.cpp, under function:
if (-1 != iLimitRealtimeStartFirstUseFlagIndex)
{
// 한 번이라도 사용한 아이템인지 여부는 Socket1을 보고 판단한다. (Socket1에 사용횟수 기록)
if (0 == item->GetSocket(1))
{
// 사용가능시간은 Default 값으로 Limit Value 값을 사용하되, Socket0에 값이 있으면 그 값을 사용하도록 한다. (단위는 초)
long duration = (0 != item->GetSocket(0)) ? item->GetSocket(0) : item->GetProto()->aLimits[iLimitRealtimeStartFirstUseFlagIndex].lValue;

if (0 == duration)
duration = 60 * 60 * 24 * 7;

item->SetSocket(0, time(0) + duration);
item->StartRealTimeExpireEvent();
}

if (false == item->IsEquipped())
item->SetSocket(1, item->GetSocket(1) + 1);
}

add:


in constansts.cpp at end of file, add:



in constants.h
under:
extern const char * c_apszEmpireNames[EMPIRE_MAX_NUM];
extern const char * c_apszPrivNames[MAX_PRIV_NUM];
extern const SStoneDropInfo aStoneDrop[STONE_INFO_MAX_NUM];
add:



in log.cpp under:
else
{
Query( "INSERT INTO hackshield_log(time, account_id, login, pid, name, reason, ip) "
"VALUES(NOW(), %u, '%s', %u, '%s', %u, inet_aton('%s'))",
ch->GetDesc()->GetAccountTable().id, ch->GetDesc()->GetAccountTable().login,
ch->GetPlayerID(), ch->GetName(),
ErrorCode,
ch->GetDesc()->GetHostName());
}
}
add:



in log.h under:
void HackShieldLog(unsigned long ErrorCode, LPCHARACTER ch);
add:



in log database(navicat) add:
[/POSTS]
 
Last edited:

Similar threads


About us

OnForum.net is a resource community where aspiring webmasters and designers can share content and receive support for a wide variety of software platforms. We are working every day to make sure our community is one of the best.

PARTNERS

Follow us

We recommend

Doza de Blog
Top

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

The advertises that you'll see aren't intrusive they just help us to keep the community alive

If you don't want to see those ads just buy an upgrade.

Thank you for understanding!