Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 33050 :
- {
- LPITEM item2;
- if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
- return false;
- if (item2->IsExchanging() == true)
- return false;
- if (item2->GetAttributeCount() > 0)
- {
- ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
- return false;
- }
- if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_WEAPON)
- {
- item2->SetForceAttribute(0, 1, 5000);
- item2->SetForceAttribute(1, 66, 20);
- item2->SetForceAttribute(2, 63, 15);
- item->SetCount(item->GetCount() - 1);
- }
- }
- break;
- case 33051 :
- {
- LPITEM item2;
- if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
- return false;
- if (item2->IsExchanging() == true)
- return false;
- if (item2->GetAttributeCount() > 0)
- {
- ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
- return false;
- }
- if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_WEAPON)
- {
- item2->SetForceAttribute(0, 1, 5000);
- item2->SetForceAttribute(1, 17, 15);
- item2->SetForceAttribute(2, 74, 5);
- item->SetCount(item->GetCount() - 1);
- }
- }
- break;
- case 33052 :
- {
- LPITEM item2;
- if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
- return false;
- if (item2->IsExchanging() == true)
- return false;
- if (item2->GetAttributeCount() > 0)
- {
- ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
- return false;
- }
- if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_BODY)
- {
- item2->SetForceAttribute(0, 53, 300);
- item2->SetForceAttribute(1, 97, 5);
- item2->SetForceAttribute(2, 66, 15);
- item->SetCount(item->GetCount() - 1);
- }
- }
- break;
- case 33053 :
- {
- LPITEM item2;
- if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
- return false;
- if (item2->IsExchanging() == true)
- return false;
- if (item2->GetAttributeCount() > 0)
- {
- ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
- return false;
- }
- if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_BODY)
- {
- item2->SetForceAttribute(0, 1, 5000);
- item2->SetForceAttribute(1, 17, 15);
- item2->SetForceAttribute(2, 92, 5);
- item->SetCount(item->GetCount() - 1);
- }
- }
- break;
- case 33054 :
- {
- LPITEM item2;
- if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
- return false;
- if (item2->IsExchanging() == true)
- return false;
- if (item2->GetAttributeCount() > 0)
- {
- ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
- return false;
- }
- if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_HAIR)
- {
- item2->SetForceAttribute(0, 63, 15);
- item2->SetForceAttribute(1, 93, 15);
- item2->SetForceAttribute(2, 94, 15);
- item->SetCount(item->GetCount() - 1);
- }
- }
- break;
- case 33055 :
- {
- LPITEM item2;
- if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
- return false;
- if (item2->IsExchanging() == true)
- return false;
- if (item2->GetAttributeCount() > 0)
- {
- ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
- return false;
- }
- if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_HAIR)
- {
- item2->SetForceAttribute(0, 53, 300);
- item2->SetForceAttribute(1, 17, 15);
- item2->SetForceAttribute(2, 73, 5);
- item->SetCount(item->GetCount() - 1);
- }
- }
- break;
- case 33056 :
- {
- LPITEM item2;
- if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
- return false;
- if (item2->IsExchanging() == true)
- return false;
- if (item2->GetAttributeCount() > 0)
- {
- ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
- return false;
- }
- if (item2->GetVnum() >= 53001 && item2->GetVnum() <= 53099 )
- {
- {
- item2->SetForceAttribute(0, 1, 10000);
- item2->SetForceAttribute(1, 63, 20);
- item2->SetForceAttribute(2, 53, 300);
- item2->SetForceAttribute(3, 97, 10);
- item2->SetForceAttribute(4, 98, 10);
- item->SetCount(item->GetCount() - 1);
- }
- }
- }
- break;
- case 33057 :
- {
- LPITEM item2;
- if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
- return false;
- if (item2->IsExchanging() == true)
- return false;
- if (item2->GetAttributeCount() > 0)
- {
- ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
- return false;
- }
- if (item2->GetVnum() >= 53001 && item2->GetVnum() <= 53099 )
- {
- {
- item2->SetForceAttribute(0, 1, 15000);
- item2->SetForceAttribute(1, 17, 35);
- item2->SetForceAttribute(2, 92, 15);
- item2->SetForceAttribute(3, 73, 5);
- item2->SetForceAttribute(4, 74, 5);
- item->SetCount(item->GetCount() - 1);
- }
- }
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement