Jump to content
×
×
  • Create New...

CTRL+G Mount Bug Fixed


Recommended Posts

Open : cmd_general.cpp
 
 Search:
 
ACMD(do_unmount)
{
 if (true == ch->UnEquipSpecialRideUniqueItem())
 {

  ch->RemoveAffect(AFFECT_MOUNT);
  ch->RemoveAffect(AFFECT_MOUNT_BONUS);

  if (ch->IsHorseRiding())
  {
   ch->StopRiding();
  }
 }
 else
 {
  ch->ChatPacket( CHAT_TYPE_INFO, LC_TEXT("Àκ¥Å丮°¡ ²Ë Â÷¼­ ³»¸± ¼ö ¾ø½À´Ï´Ù."));
 }

}

 
 Replace:
ACMD(do_unmount)
{
   LPITEM item = ch->GetWear(WEAR_UNIQUE1);
   LPITEM item2 = ch->GetWear(WEAR_UNIQUE2);

  if (item && item->IsRideItem())
    ch->UnequipItem(item);
  
  if (item2 && item2->IsRideItem())
    ch->UnequipItem(item2);

	if (true == ch->UnEquipSpecialRideUniqueItem())
	{
		ch->RemoveAffect(AFFECT_MOUNT);
		ch->RemoveAffect(AFFECT_MOUNT_BONUS);

		if (ch->IsHorseRiding())
		{
			ch->StopRiding(); 
		}
	}
	else
	{
		ch->ChatPacket( CHAT_TYPE_INFO, LC_TEXT("Àκ¥Å丮°¡ ²Ë Â÷¼­ ³»¸± ¼ö ¾ø½À´Ï´Ù."));
	}

}

 

 
 Open char_battle.cpp
 
 Search:
 
 RemoveAffect(AFFECT_MOUNT_BONUS);

 
 Add:
         LPITEM item = GetWear(WEAR_UNIQUE1);
         LPITEM item2 = GetWear(WEAR_UNIQUE2);

      if (item && item->IsRideItem())
        UnequipItem(item);
      
      if (item2 && item2->IsRideItem())
        UnequipItem(item2);

Best Regards Rideas.

Edited by Rideas
  • Love 6
Link to comment
Share on other sites

  • Moon
ACMD(do_unmount)
{
	LPITEM pItem = ch->GetWear(WEAR_UNIQUE1);
	LPITEM pItem2 = ch->GetWear(WEAR_UNIQUE2);
	
	if (pItem && pItem->IsRideItem())
		ch->UnequipItem(pItem)
	else if (pItem2 && pItem2->IsRideItem())
		ch->UnequipItem(pItem2);
	
	if (ch->UnequipSpecialRideUniqueItem())
	{
		ch->RemoveAffect(AFFECT_MOUNT);
		ch->RemoveAffect(AFFECT_MOUNT_BONUS);
		
		if (ch->IsHorseRiding())
			ch->StopRiding();		
	}
	else
		ch->ChatPacket( CHAT_TYPE_INFO, LC_TEXT("Àκ¥Å丮°¡ ²Ë Â÷¼­ ³»¸± ¼ö ¾ø½À´Ï´Ù."));
}


/////////////////////////////////////////////////////////////////////////////////////////////////
LPITEM pItem = ch->GetWear(WEAR_UNIQUE1);
LPITEM pItem2 = ch->GetWear(WEAR_UNIQUE2);

if (pItem && pItem->IsRideItem())
	UnequipItem(pItem)
else if (pItem2 && pItem2->IsRideItem())
	UnequipItem(pItem2);

Much better and thank you for share this fix with us.

Kind Regards ~ Ken

  • Love 1

Do not be sorry, be better.

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 6
    2. 9

      Help in implementing a switch bot

    3. 0

      Special Inventory System Can't Sell To Npc's

    4. 0

      ROV2.GLOBAL | International | Server start 14.05.2022

    5. 75

      Services - System Ard [C ++ / Python / Lua]

    6. 76

      Chatting Window Renewal (Mini Version)

    7. 2

      ItemShop GM ZONE TAB

    8. 9

      Help in implementing a switch bot

  • Recently Browsing

    • No registered users viewing this page.

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.