I have my bravery capes and spend yang depending on the player's level. But I wanted up to level 30 to use the cape for free. Someone can help me?
Code
- case UNIQUE_ITEM_CAPE_OF_COURAGE:
- case 70057:
- case REWARD_BOX_UNIQUE_ITEM_CAPE_OF_COURAGE:
- {
- long long llPrice = ((int)GetLevel()/10) * 1000;
- if (GetGold() < llPrice)
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You don't have enough Yang."));
- return false;
- }
- AggregateMonster();
- PointChange(POINT_GOLD, -llPrice, true);
- }
- break;