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
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
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
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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.