Onforum.net - Web and gaming resource community

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members .

Metin2 [Advance] Gold Bars from source

DevGames

Well-known member
Credits
0
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:
Hi, I'm trying but it doesn't work for me even clicking on the item. How should it be set correctly?

Code:
80003    Ŕş±« (5¸¸łÉ)    ITEM_SPECIAL    SPECIAL_MAP    1    ANTI_DROP    NONE    NONE    NONE    50500    250000    0    0    0    0    LIMIT_NONE    0    LIMIT_NONE    0    APPLY_NONE    0    APPLY_NONE    0    APPLY_NONE    0    APPLY_NONE    0    0    0    0    0    0    0    0    0    0    0    0    0    0
 

Similar threads


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!

babayagaaa Purchase

User upgrade! at

🔥 Upgrade Now

babayagaaa Purchase

User upgrade! at

🔥 Upgrade Now
bibitreva

bibitreva Purchase

User upgrade! at

🔥 Upgrade Now