I've changed it but it doesn't work. I've linked the code on the change attribute for vnum 71151. I've tried everything I can from my knowledge. Is there anything on here that looks odd to u that I need to change? And how would u change it
if (item->GetVnum() == 71151 || item->GetVnum() == 76023)
{
if ((item2->GetType() == ITEM_WEAPON) || (item2->GetType() == ITEM_ARMOR && item2->GetSubType() == ARMOR_BODY))
{
bool bCanUse = true;
for (int i = 0; i < ITEM_LIMIT_MAX_NUM; ++i)
{
if (item2->GetLimitType(i) == LIMIT_LEVEL && item2->GetLimitValue(i) > 40)
{
bCanUse = false;
break;
}
}
if (false == bCanUse)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("���� �������� ���� ����� �Ұ����մϴ�."));
break;
}
}
else
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("����� ���ʿ��� ��� �����մϴ�."));
break;
}
}
item2->ChangeAttribute();
}
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("�Ӽ��� �����Ͽ����ϴ�."));
{
char buf[21];
snprintf(buf, sizeof(buf), "%u", item2->GetID());
LogManager::instance().ItemLog(this, item, "CHANGE_ATTRIBUTE", buf);
}
item->SetCount(item->GetCount() - 1);