ACMD(do_user_horse_back)
{
CItem* pCostumeMount = ch->GetWear(WEAR_COSTUME_MOUNT);
if (pCostumeMount->IsEquipped())
{
if (ch->GetHorse() != NULL)
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("HAS_UNEQUIPPED_MOUNT_ITEM"));
ch->UnequipItem(pCostumeMount);
ch->HorseSummon(false);
return;
}
if (!pCostumeMount->IsEquipped() && ch->GetHorse() != NULL)
{
ch->HorseSummon(false);
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¸»À» µ¹·Áº¸³Â½À´Ï´Ù."));
}
else if (ch->IsHorseRiding() == true)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¸»¿¡¼ ¸ÕÀú ³»·Á¾ß ÇÕ´Ï´Ù.")); //Du musst absteigen.
}
else
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¸»À» ¸ÕÀú ¼ÒÈ¯ÇØÁÖ¼¼¿ä.")); // Bitte ruf zuerst Dein Pferd.
}
}
Hello Community,
To explain you my situation i'll describe my problem shortly.
I've implemented the horse appearance via database table & i need to unequip the "Costume Mount" Item if i use strg + B <-
the problem is, i do not know anything about c++ my method is working == Player wears costume_mount uses strg +b and the Mount (Which is defined as a horse) unsummons.
But if i summon my horse (not the mounts, which are defined as horse i mean the horse you get by horselevel) && use this command core crashes.
In this spoiler i've posted my function without my changes.