Jump to content

Recommended Posts

Hello,

 

i want to add more then one attribute on my mount, but the "pc.mount_bonus" does only allow ONE bonus.

I saw a dif for the 2089 game to fix this, but i want to change it in the source, but i don't find something like this.

 

I hope someone can help me.

 

Kind Regards

xXCapConXx

Link to comment
https://metin2.dev/topic/2114-problem-with-pcmount_bonus/
Share on other sites

Open questlua_pc.cpp and search pc_mount_bonus function and replace with this

	int pc_mount_bonus(lua_State* L)
	{
		BYTE applyOn = static_cast<BYTE>(lua_tonumber(L, 1));
		long value = static_cast<long>(lua_tonumber(L, 2));
		long duration = static_cast<long>(lua_tonumber(L, 3));

		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();

		if( NULL != ch )
		{
			//ch->RemoveAffect(AFFECT_MOUNT_BONUS);
			ch->AddAffect(AFFECT_MOUNT_BONUS, aApplyInfo[applyOn].bPointType, value, AFF_NONE, duration, 0, false);
		}

		return 0;
	}

Best Regards

Ellie

  • Love 4

Do not be sorry, be better.

Link to comment
https://metin2.dev/topic/2114-problem-with-pcmount_bonus/#findComment-14686
Share on other sites

Open questlua_pc.cpp and search pc_mount_bonus function and replace with this

	int pc_mount_bonus(lua_State* L)
	{
		BYTE applyOn = static_cast<BYTE>(lua_tonumber(L, 1));
		long value = static_cast<long>(lua_tonumber(L, 2));
		long duration = static_cast<long>(lua_tonumber(L, 3));

		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();

		if( NULL != ch )
		{
			//ch->RemoveAffect(AFFECT_MOUNT_BONUS);
			ch->AddAffect(AFFECT_MOUNT_BONUS, aApplyInfo[applyOn].bPointType, value, AFF_NONE, duration, 0, false);
		}

		return 0;
	}

Best Regards

Ellie

 

So easy?! ... Facepalm for my self ... :P  Thanks!

Link to comment
https://metin2.dev/topic/2114-problem-with-pcmount_bonus/#findComment-14688
Share on other sites

 

Open questlua_pc.cpp and search pc_mount_bonus function and replace with this

	int pc_mount_bonus(lua_State* L)
	{
		BYTE applyOn = static_cast<BYTE>(lua_tonumber(L, 1));
		long value = static_cast<long>(lua_tonumber(L, 2));
		long duration = static_cast<long>(lua_tonumber(L, 3));

		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();

		if( NULL != ch )
		{
			//ch->RemoveAffect(AFFECT_MOUNT_BONUS);
			ch->AddAffect(AFFECT_MOUNT_BONUS, aApplyInfo[applyOn].bPointType, value, AFF_NONE, duration, 0, false);
		}

		return 0;
	}

Best Regards

Ellie

 

So easy?! ... Facepalm for my self ... :P  Thanks!

 

 

Some problem looking hard but normally it was easy :)

 

Best Regards

Ellie

Do not be sorry, be better.

Link to comment
https://metin2.dev/topic/2114-problem-with-pcmount_bonus/#findComment-14689
Share on other sites

 

 

Open questlua_pc.cpp and search pc_mount_bonus function and replace with this

	int pc_mount_bonus(lua_State* L)
	{
		BYTE applyOn = static_cast<BYTE>(lua_tonumber(L, 1));
		long value = static_cast<long>(lua_tonumber(L, 2));
		long duration = static_cast<long>(lua_tonumber(L, 3));

		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();

		if( NULL != ch )
		{
			//ch->RemoveAffect(AFFECT_MOUNT_BONUS);
			ch->AddAffect(AFFECT_MOUNT_BONUS, aApplyInfo[applyOn].bPointType, value, AFF_NONE, duration, 0, false);
		}

		return 0;
	}

Best Regards

Ellie

 

So easy?! ... Facepalm for my self ... :P  Thanks!

 

 

Some problem looking hard but normally it was easy :)

 

Best Regards

Ellie

 

 

Yeah, ok i tested it, and it work's ! thanks. :D

Link to comment
https://metin2.dev/topic/2114-problem-with-pcmount_bonus/#findComment-14690
Share on other sites

  • 1 month later...

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.