Jump to content

Fast sit on mount


Go to solution Solved by xTryhard,

Recommended Posts

Hi, im making server. I want to sit on mount then unmount it and again sit on it fast. It working but when im attacking monster it writes - If you want to do this, you have to stop. What can i do to remove it to make to work, so i can jump on mount multiple times really fast when im attacking monster? Thank you ?

Link to comment
https://metin2.dev/topic/28802-fast-sit-on-mount/
Share on other sites

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

  • Contributor
4 minutes ago, dexolus said:

Can you please tell me where can i find it please? ?

I just told you to search it in the source(server source).

Use n++ with global search. If you can't find it, it might be because it's in korean, so you have to open locale_string.txt and find the korean string matching this, then search that.

I tried looking for it in my source, but I don't have it, so it has to be something changed in your source.

 

Good luck

Link to comment
https://metin2.dev/topic/28802-fast-sit-on-mount/#findComment-147911
Share on other sites

  • Contributor
9 minutes ago, dexolus said:

Okay thanks ?

I'm not sure, but it might be in cmd_general.cpp, somewhere in one of the ride functions.

 

Edit: Or in horse_rider.cpp

bool CHorseRider::StartRiding()

Edited by Amun
Link to comment
https://metin2.dev/topic/28802-fast-sit-on-mount/#findComment-147914
Share on other sites

Hi, so i did not find it in that korean shit ? but i found how to make it work. In cmd general.cpp line around 2588 

Spoiler

        // TODO : 탈것용 SubType 추가
        switch (item->GetVnum())
        {
        case 71114:    // 저신이용권

add more cases with vnum of your seals from mount. And in database change type to 18. It works for me ?

Link to comment
https://metin2.dev/topic/28802-fast-sit-on-mount/#findComment-147951
Share on other sites

  • Premium
  • Solution

when you click on a item the client will send a packet to the server and leads you to CHARACTER::UseItemEx for example you have a wolf seal with the VNUM 500

use in this function (CHARACTER::UseItemEx) a switch statement for each vnum you want to mount

the code should look like this :

 

bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
{
	if (item == NULL) return;
	DWORD ItemID = item->GetVnum();

	switch (ItemID)
	{
	case 500: 
		if(this->IsRiding())
		{
			this->MountVnum(0);
			return true;
		}
		else
		{
			this->MountVnum(101);
			return true;
		}
		break; 
	default: break;
	}

Note : you have to add your own Logic with Bonus Attributes and so on 

Edited by xTryhard
Link to comment
https://metin2.dev/topic/28802-fast-sit-on-mount/#findComment-147954
Share on other sites

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.