|
|
@ -87,10 +87,6 @@ bool CExchangeView::putItemInExchange(uint32 bagSlot, uint32 exchangeSlot, uint3
|
|
|
|
if (!item->getMovable() && _InterlocutorView != NULL && form->Family != ITEMFAMILY::PET_ANIMAL_TICKET && (!form->DropOrSell || item->getUnMovable()))
|
|
|
|
if (!item->getMovable() && _InterlocutorView != NULL && form->Family != ITEMFAMILY::PET_ANIMAL_TICKET && (!form->DropOrSell || item->getUnMovable()))
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
// pet animal ticket must be exchangeable only if shardExchangeable
|
|
|
|
|
|
|
|
if (form->Family == ITEMFAMILY::PET_ANIMAL_TICKET && !form->ShardExchangeable)
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Can't trade items locked by owner
|
|
|
|
// Can't trade items locked by owner
|
|
|
|
if (item->getLockedByOwner())
|
|
|
|
if (item->getLockedByOwner())
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -322,7 +318,7 @@ void CExchangeView::onInterlocutorSlotChanged(uint32 interlocutorGiveSlot)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const INVENTORIES::TItemId &itemId = item->getItemId();
|
|
|
|
const INVENTORIES::TItemId &itemId = item->getItemId();
|
|
|
|
RM_FABER_STAT_TYPE::TRMStatType itemBestStat = RM_FABER_STAT_TYPE::Unknown;
|
|
|
|
RM_FABER_STAT_TYPE::TRMStatType itemBestStat = RM_FABER_STAT_TYPE::Unknown;
|
|
|
|
|
|
|
|
|
|
|
|
if (item->getCraftParameters() != NULL)
|
|
|
|
if (item->getCraftParameters() != NULL)
|
|
|
|
itemBestStat = item->getCraftParameters()->getBestItemStat();
|
|
|
|
itemBestStat = item->getCraftParameters()->getBestItemStat();
|
|
|
|
|
|
|
|
|
|
|
@ -375,7 +371,7 @@ void CExchangeView::onInterlocutorSlotChanged(uint32 interlocutorGiveSlot)
|
|
|
|
// getCharacter()->_PropertyDatabase.setProp(sDBPath+":PREREQUISIT_VALID", 0);
|
|
|
|
// getCharacter()->_PropertyDatabase.setProp(sDBPath+":PREREQUISIT_VALID", 0);
|
|
|
|
recvItem.setPREREQUISIT_VALID(getCharacter()->_PropertyDatabase, false);
|
|
|
|
recvItem.setPREREQUISIT_VALID(getCharacter()->_PropertyDatabase, false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// increment the info version
|
|
|
|
// increment the info version
|
|
|
|
// sint64 nPropValue = getCharacter()->_PropertyDatabase.getProp(sDBPath+":INFO_VERSION");
|
|
|
|
// sint64 nPropValue = getCharacter()->_PropertyDatabase.getProp(sDBPath+":INFO_VERSION");
|
|
|
|
uint8 nPropValue = recvItem.getINFO_VERSION(getCharacter()->_PropertyDatabase);
|
|
|
|
uint8 nPropValue = recvItem.getINFO_VERSION(getCharacter()->_PropertyDatabase);
|
|
|
@ -397,7 +393,7 @@ void CExchangeView::updateExchangeSlot(uint32 exchangeSlot)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const INVENTORIES::TItemId &itemId = item->getItemId();
|
|
|
|
const INVENTORIES::TItemId &itemId = item->getItemId();
|
|
|
|
RM_FABER_STAT_TYPE::TRMStatType itemBestStat = RM_FABER_STAT_TYPE::Unknown;
|
|
|
|
RM_FABER_STAT_TYPE::TRMStatType itemBestStat = RM_FABER_STAT_TYPE::Unknown;
|
|
|
|
|
|
|
|
|
|
|
|
if (item->getCraftParameters() != NULL)
|
|
|
|
if (item->getCraftParameters() != NULL)
|
|
|
|
itemBestStat = item->getCraftParameters()->getBestItemStat();
|
|
|
|
itemBestStat = item->getCraftParameters()->getBestItemStat();
|
|
|
|
|
|
|
|
|
|
|
@ -450,7 +446,7 @@ void CExchangeView::updateExchangeSlot(uint32 exchangeSlot)
|
|
|
|
// getCharacter()->_PropertyDatabase.setProp(sDBPath+":PREREQUISIT_VALID", 0);
|
|
|
|
// getCharacter()->_PropertyDatabase.setProp(sDBPath+":PREREQUISIT_VALID", 0);
|
|
|
|
giveItem.setPREREQUISIT_VALID(getCharacter()->_PropertyDatabase, false);
|
|
|
|
giveItem.setPREREQUISIT_VALID(getCharacter()->_PropertyDatabase, false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// increment the info version
|
|
|
|
// increment the info version
|
|
|
|
// sint64 nPropValue = getCharacter()->_PropertyDatabase.getProp(sDBPath+":INFO_VERSION");
|
|
|
|
// sint64 nPropValue = getCharacter()->_PropertyDatabase.getProp(sDBPath+":INFO_VERSION");
|
|
|
|
uint8 nPropValue = giveItem.getINFO_VERSION(getCharacter()->_PropertyDatabase);
|
|
|
|
uint8 nPropValue = giveItem.getINFO_VERSION(getCharacter()->_PropertyDatabase);
|
|
|
|