Char_item.cpp
bool IS_BOTARYABLE_ZONE(int nMapIndex) // arat
//altına ekle
bool WAR_MOUNT_USE_BLOCK_MAP(int map_index)
{
if(CWarMapManager::instance().IsWarMap(map_index))
return true;
switch (map_index)
{
case 113: // OX
case 111: // lonca
case 110: // lonca
case 103: // ronark
case 28: // duello arenası
return false;
}
return true;
}
//arat
if (false == FN_check_item_sex(this, item))
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¼ºº°ÀÌ ¸ÂÁö¾Ê¾Æ ÀÌ ¾ÆÀÌÅÛÀ» »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
return false;
}
//altına düzelt kendine göre ekle /**binektype bineksubtype kısımlarını*/
if (item->GetType() == binektype && item->GetSubType() == bineksubtype)
{
if (false == WAR_MOUNT_USE_BLOCK_MAP(GetMapIndex()) || GetMapIndex() >= 1100000 && GetMapIndex() <= 1120000)
{
ChatPacket(CHAT_TYPE_INFO, "Bu bölgede kullanamazsın. ");
return false;
}
}
input_loginde void CInputLogin::Entergame(
böyle bir fonksiyon var içinde
else if (ch->GetMapIndex() == 113) //arat
{
//altına ekle
LPITEM item3 = ch->GetWear(WEAR_COSTUME_MOUNT);
if(ch->IsRidingMount())
{
ch->UnequipItem(item3);
}