Jump to content

Recommended Posts

Hi dev's,

i added a new dew and i am searching a way to add 3 bonus to him instead of 1.
i have edited several things but dont have successfull... only show the first bonus.

//GAME_SOURCE
*char_item.cpp
	// START_NEW_POTION
	case 165649:
	{
		if (FindAffect(AFFECT_ATTBONUS_METIN))
			RemoveAffect(AFFECT_ATTBONUS_METIN);

		AddAffect(AFFECT_ATTBONUS_METIN, apply_type, apply_value, 0, apply_duration, 0, true);

		if (FindAffect(AFFECT_ATTBONUS_BOSS))
			RemoveAffect(AFFECT_ATTBONUS_BOSS);

		AddAffect(AFFECT_ATTBONUS_BOSS, apply_type, apply_value, 0, apply_duration, 0, true);
	}
	break;
	// END_NEW_POTION
		// START_NEW_POTION
	case 165649:
		AddAffect(AFFECT_ATTBONUS_METIN, APPLY_NONE, 0, AFF_NONE, item->GetSocket(2), 0, false, false);
		AddAffect(AFFECT_ATTBONUS_BOSS, APPLY_NONE, 0, AFF_NONE, item->GetSocket(3), 0, false, false);
		break;
		// END_NEW_POTION
//CLIENT_SOURCE
*PythonCharacterModule.cpp

// START_NEW_POTION
	PyModule_AddIntConstant(poModule, "AFFECT_ATTBONUS_METIN", CInstanceBase::AFFECT_ATTBONUS_METIN);
	PyModule_AddIntConstant(poModule, "AFFECT_ATTBONUS_BOSS", CInstanceBase::AFFECT_ATTBONUS_BOSS);
// END_NEW_POTION


*InstanceBase.h
		AFFECT_ATTBONUS_METIN = 319,
		AFFECT_ATTBONUS_BOSS = 320,

//CLIENT_LOCALE
*new_locale_game.txt
TOOLTIP_AFFECT_ATTBONUS_METIN	Strenght agains Metin	SNA
TOOLTIP_AFFECT_ATTBONUS_BOSS	Strenght agains Boss	SNA
# NEW_POTION
section
	item_vnum	165649
	apply_type	ATTBONUS_METIN
	apply_type1	ATTBONUS_BOSS
	apply_value	50	50	50	50	50
	apply_value1	50	50	50	50	50
	apply_duration	0	0	0	0	0
end

can some one help me please?
Maybe i made some mistake =S

 

Edited by Shiki007
need to add some information
Link to comment
https://metin2.dev/topic/34072-add-more-bonus-in-dews/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.