Hello, I have problem with adding bonuses to costume weapon. I am trying to add item, which will set 3 bonuses to costume weapon. Costume body and hair are working fine.
This is the problem: Bitte melden Sie sich an, um diesen Link zu sehen.
Code:
else if(item->GetVnum() == 70070)
{
if (item2->GetAttributeCount() != 0)
{
ChatPacket(CHAT_TYPE_INFO, "Bonuses are already in this item.");
return false;
}
else
{
if (number(1, 100) <= 25) //Chance to add bonuses
{
if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_WEAPON_SWORD && item->GetVnum() == 70070)
{
item2->SetForceAttribute(0, 1, 2000);
item2->SetForceAttribute(1, 63, 10);
item2->SetForceAttribute(2, 43, 10);
}
}
}
item->SetCount(item->GetCount() - 1);
return true;
}
Thanks for any advice.
Best Regards,
Baltazar