Hab mir das Waffenkostüm runtergeladen und versuch es gerade selber einzubauen
Hab aber mein Compilen vom Server nen fehler bei char item benütze FliegeFiles 2
Direkt in der bool zeile zeigt er den fehler an
Code
- /// ÇöÀç ij¸¯ÅÍÀÇ »óŸ¦ ¹ÙÅÁÀ¸·Î ÁÖ¾îÁø itemÀ» Âø¿ëÇÒ ¼ö ÀÖ´Â Áö È®ÀÎÇÏ°í, ºÒ°¡´É ÇÏ´Ù¸é ij¸¯ÅÍ¿¡°Ô ÀÌÀ¯¸¦ ¾Ë·ÁÁÖ´Â ÇÔ¼ö
- bool CHARACTER::CanEquipNow(const LPITEM item, const TItemPos& srcCell, const TItemPos& destCell) /*const*/
- {
- const TItemTable* itemTable = item->GetProto();
- BYTE itemType = item->GetType();
- BYTE itemSubType = item->GetSubType();
- switch (GetJob())
- {
- case JOB_WARRIOR:
- if (item->GetAntiFlag() & ITEM_ANTIFLAG_WARRIOR)
- return false;
- break;
- case JOB_ASSASSIN:
- if (item->GetAntiFlag() & ITEM_ANTIFLAG_ASSASSIN)
- return false;
- break;
- case JOB_SHAMAN:
- if (item->GetAntiFlag() & ITEM_ANTIFLAG_SHAMAN)
- return false;
- break;
- case JOB_SURA:
- if (item->GetAntiFlag() & ITEM_ANTIFLAG_SURA)
- return false;
- break;
- }
- for (int i = 0; i < ITEM_LIMIT_MAX_NUM; ++i)
- {
- long limit = itemTable->aLimits[i].lValue;
- switch (itemTable->aLimits[i].bType)
- {
- case LIMIT_LEVEL:
- if (GetLevel() < limit)
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("·¹º§ÀÌ ³·¾Æ Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- break;
- case LIMIT_STR:
- if (GetPoint(POINT_ST) < limit)
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("±Ù·ÂÀÌ ³·¾Æ Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- break;
- case LIMIT_INT:
- if (GetPoint(POINT_IQ) < limit)
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Áö´ÉÀÌ ³·¾Æ Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- break;
- case LIMIT_DEX:
- if (GetPoint(POINT_DX) < limit)
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¹ÎøÀÌ ³·¾Æ Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- break;
- case LIMIT_CON:
- if (GetPoint(POINT_HT) < limit)
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ü·ÂÀÌ ³·¾Æ Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- break;
- }
- }
- if (item->GetWearFlag() & WEARABLE_UNIQUE)
- {
- if ((GetWear(WEAR_UNIQUE1) && GetWear(WEAR_UNIQUE1)->IsSameSpecialGroup(item)) ||
- (GetWear(WEAR_UNIQUE2) && GetWear(WEAR_UNIQUE2)->IsSameSpecialGroup(item)))
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°°Àº Á¾·ùÀÇ À¯´ÏÅ© ¾ÆÀÌÅÛ µÎ °³¸¦ µ¿½Ã¿¡ ÀåÂøÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- if (marriage::CManager::instance().IsMarriageUniqueItem(item->GetVnum()) &&
- !marriage::CManager::instance().IsMarried(GetPlayerID()))
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°áÈ¥ÇÏÁö ¾ÊÀº »óÅ¿¡¼ ¿¹¹°À» Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- }
- return true;
- }