Jump to content

Recommended Posts

  • Contributor

M2 Download Center

This is the hidden content, please
( Internal )

This is the hidden content, please
( GitHub )

Spoiler

1812279luZg6X.jpeg
181227I1pCxwO.jpeg
181227O9zZF2K.jpeg

 

Hi guys,

I leave the system of PENDANT,  It's basically like the official system, If you see something is missing, you can tell me.

 

  • Metin2 Dev 275
  • kekw 1
  • Eyes 5
  • Dislove 4
  • Angry 1
  • Not Good 3
  • Smile Tear 1
  • Think 2
  • Confused 3
  • Scream 1
  • Good 84
  • muscle 2
  • Love 18
  • Love 163
Link to comment
https://metin2.dev/topic/22387-pendant-system-elemental-talismans-with-bonus/
Share on other sites

  • Premium
il y a 53 minutes, Mafuyu a dit :

why tf u release it, now will every shit server use this...

"Why do you help the community moving on". No matter what system one server can have, a shitty server stays a shitty server due to many other reasons

  • Love 6
  • Contributor
hace 2 horas, Mali61 dijo:

You should give via for @metin2-factory

9682482f3f.png

63485210f9.png


True, I forgot to add your credits for the little code, I already did ^^
For the rest it fixes many problems for everyone.


 

hace 2 horas, Mafuyu dijo:

why tf u release it, now will every shit server use this...

 

Because i mostly like to help with insignificant things, some also sell what they shouldn't sell or place it badly. As one boy said before, any shit server will still be a shit server.

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 2
  • 1 month later...
  • Active Member

If someone has the same issues as me with elements sometimes being shown wrong replace this part of function in char.cpp:

		for (int i = RACE_FLAG_ATT_ELEC; i <= RACE_FLAG_ATT_DARK; i *= 2)
		{
			int diff = raceFlag - i;
			if (abs(diff) <= 1024)
				break;
		}

to this:

		for (int i = RACE_FLAG_ATT_ELEC; i <= RACE_FLAG_ATT_DARK; i *= 2)
		{
			curElementBase++;
			if (raceFlag & i)
				break;
		}

 

  • Metin2 Dev 1
  • Love 3
  • 10 months later...
  • 6 months later...

Error when compiling.

f7955ac30c1362db52af07715b07f00d.png

 

ok. very incomplete tutorial.

If you download the instruction here, you have only 50% of code there, if you undrastand 0 how all this work, dont even start.

 

*Solved

Edited by Metin2 Dev
Core X - External 2 Internal
  • 2 weeks later...
6 hours ago, backtop said:

Can someone tell me the sql's (no txt) for the items?

when i right click on the items nothing happens.

I have the same issue, i dont think that its the sql problem but maybe the client.

12 hours ago, danhakhavro said:

I have the same issue, i dont think that its the sql problem but maybe the client.

Just to make sure... Type is 2 and subtype is 7 am i right?

Edit: Tried it with subtype 14, cause source saying it but it doesnt work too

Edited by backtop
  • 2 months later...
  • 2 months later...
  • 2 months later...
  • 1 month later...
  • 1 month later...
11 hours ago, Hanma said:

Problem with ClientManagerBoot.cpp

https://pastebin.com/raw/Ntc5h5YA

 

Can someone help me with this?

Common/Length.h open
Search:

ATTRIBUTE_SET_MAX_NUM


Add Above 

ATTRIBUTE_SET_PENDANT,

 

Look This:

ATTRIBUTE_SET_PENDANT,

ATTRIBUTE_SET_MAX_NUM

or My Files:

 

enum EAttributeSet
{
	ATTRIBUTE_SET_WEAPON,
	ATTRIBUTE_SET_BODY,
	ATTRIBUTE_SET_WRIST,
	ATTRIBUTE_SET_FOOTS,
	ATTRIBUTE_SET_NECK,
	ATTRIBUTE_SET_HEAD,
	ATTRIBUTE_SET_SHIELD,
	ATTRIBUTE_SET_EAR,
#ifdef ENABLE_ITEM_ATTR_COSTUME
	ATTRIBUTE_SET_COSTUME_BODY,
	ATTRIBUTE_SET_COSTUME_HAIR,
#if defined(ENABLE_ITEM_ATTR_COSTUME) && defined(ENABLE_WEAPON_COSTUME_SYSTEM)
	ATTRIBUTE_SET_COSTUME_WEAPON,
#endif
#endif
#ifdef ENABLE_PENDANT_SYSTEM
	ATTRIBUTE_SET_PENDANT,
	ATTRIBUTE_SET_PENDANT_SPECIAL,
#endif
	ATTRIBUTE_SET_MAX_NUM
};

Ok ❤️

Also 

Basic Code ClientManagerBoot.cpp 

ATTRIBUTE_SET_PENDANT

Nice Code

EAttributeSet::ATTRIBUTE_SET_PENDANT

Edited by EAkar
  • 2 months later...

I have some problem with use of undeclared identifier like:
char.cpp:3885:8: error: use of undeclared identifier 'APPLY_ATTBONUS_ELEC'; did you mean 'APPLY_ATTBONUS_ORC'?
                case APPLY_ATTBONUS_ELEC: // 99
                     ^~~~~~~~~~~~~~~~~~~
                     APPLY_ATTBONUS_ORC

and duplicate case value:
char.cpp:3885:8: error: duplicate case value 'APPLY_ATTBONUS_ORC'
                case APPLY_ATTBONUS_ELEC: // 99
                     ^
char.cpp:3809:8: note: previous case defined here
                case APPLY_ATTBONUS_ORC:

Can someone help me with this?

  • Good 1
  • 4 weeks later...
  • Premium

The bonuses not working for me. I dont know what i missed, i added the metin2-factrory version for the bonuses, i checked rakancito version, and only different part was in battle.cpp. I changed it, bonuses are still not working for me. 
What i missed, or what did i do wrong?
I added strong againts stones and bosses, those bonuses are working fine. I dont know, really.
@ RakancitoSorry for bother you, can you help me ?:o

 

 

EDIT: 2023. Jan. 03.
Bonuses are working perfectly. i solved this problem months ago. ?

 

Edited by Ulthar
solved

Ulthar

  • 7 months later...
On 6/16/2021 at 5:18 PM, danhakhavro said:

Error when compiling.

f7955ac30c1362db52af07715b07f00d.png

 

ok. very incomplete tutorial.

If you download the instruction here, you have only 50% of code there, if you undrastand 0 how all this work, dont even start.

 

*Solved

can someone help regarding fixing this ? i have the same problem =(

none explained its solution tho

even if i remove that line i get another error : https://metin2.download/picture/lzX3TYsEuDI61UVc4Z9u87IObPMs7w5v/.png

if someone may help would be appreciated , no shit talk 

Edited by Metin2 Dev International
Core X - External 2 Internal
  • Good 1
  • 1 year later...
On 18.12.2019 at 04:56, Rakancito said:

M2 İndirme Merkezi

This is the hidden content, please
(Dahili)

This is the hidden content, please
(GitHub)

  Gizli içerikleri göster

1812279luZg6X.jpeg
181227I1pCxwO.jpeg
181227O9zZF2K.jpeg

 

Merhaba millet,

PENDANT sistemini bırakıyorum.  Temel olarak resmi sistem gibidir . Eksik bir şey görürseniz bana bildirebilirsiniz.

 

@ Rakancito ch1 syseer

 

SYSERR: Aug 29 23:33:44 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, D:\mainline_updated-u10\ServerSource\game\src\item_attribute.cpp 196
SYSERR: Aug 29 23:33:44 :: CItem::PutAttributeWithLevel: Cannot put item attribute 8 1
SYSERR: Aug 29 23:33:46 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, D:\mainline_updated-u10\ServerSource\game\src\item_attribute.cpp 196
SYSERR: Aug 29 23:33:46 :: CItem::PutAttributeWithLevel: Cannot put item attribute 8 2
SYSERR: Aug 29 23:33:47 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, D:\mainline_updated-u10\ServerSource\game\src\item_attribute.cpp 196
SYSERR: Aug 29 23:33:47 :: CItem::PutAttributeWithLevel: Cannot put item attribute 8 2
SYSERR: Aug 29 23:33:47 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, D:\mainline_updated-u10\ServerSource\game\src\item_attribute.cpp 196
SYSERR: Aug 29 23:33:47 :: CItem::PutAttributeWithLevel: Cannot put item attribute 8 2

 

 

void CItem::PutAttributeWithLevel (BYTE bLevel)
{
	int iAttributeSet = GetAttributeSetIndex();

	if (iAttributeSet < 0)
	{
		return;
	}

	if (bLevel > ITEM_ATTRIBUTE_MAX_LEVEL)
	{
		return;
	}

	std::vector<int> avail;

	int total = 0;

	// 붙일 수 있는 속성 배열을 구축
	for (int i = 0; i < MAX_APPLY_NUM; ++i)
	{
		const TItemAttrTable& r = g_map_itemAttr[i];

		if (r.bMaxLevelBySet[iAttributeSet] && !HasAttr (i))
		{
			avail.push_back (i);
			total += r.dwProb;
		}
	}

	// 구축된 배열로 확률 계산을 통해 붙일 속성 선정
	unsigned int prob = number (1, total);
	int attr_idx = APPLY_NONE;

	for (DWORD i = 0; i < avail.size(); ++i)
	{
		const TItemAttrTable& r = g_map_itemAttr[avail[i]];

		if (prob <= r.dwProb)
		{
			attr_idx = avail[i];
			break;
		}

		prob -= r.dwProb;
	}

	if (!attr_idx)
	{
		sys_err ("Cannot put item attribute %d %d", iAttributeSet, bLevel);
		return;
	}

	const TItemAttrTable& r = g_map_itemAttr[attr_idx];

	// 종류별 속성 레벨 최대값 제한
	if (bLevel > r.bMaxLevelBySet[iAttributeSet])
	{
		bLevel = r.bMaxLevelBySet[iAttributeSet];
	}

	AddAttr (attr_idx, bLevel);
}

 

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.