Jump to content

Unmount Costume Mount with CTRL+H


Recommended Posts

  • Premium

We can use CTRL+H for unmount/mount horse, but when we are riding a costume mount, we get an error if we try to use CTRL+H. So if you wanna be able to use it just follow this guide:

 

cmd_general.cpp
Go to function ACMD(do_user_horse_ride)
Replace the if block (ch->GetMountVnum())

With this code:

		if (ch->GetMountVnum())
		{

			LPITEM item = ch->GetWear(WEAR_COSTUME_MOUNT);

			if (item && item->IsRideItem())
				ch->UnequipItem(item);
	
			if (ch->UnEquipSpecialRideUniqueItem())
			{
				ch->RemoveAffect(AFFECT_MOUNT);
				ch->RemoveAffect(AFFECT_MOUNT_BONUS);
			}
			
			//ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ÀÌ¹Ì Å»°ÍÀ» ÀÌ¿ëÁßÀÔ´Ï´Ù."));
			return;
		}

 

  • Love 3
Link to comment
Share on other sites

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.