Jump to content

CTRL+G Mount Bug Fixed


Rideas

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

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

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.