mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 04:37:02 +00:00
Added Support for DB2 Reader. Thanks to all Authors
NOTE: extractor need fix/update.
support for VC80/VC90
cmake need update
Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
parent
a6f3ca6ab0
commit
5424aed420
19 changed files with 994 additions and 13 deletions
|
|
@ -62,6 +62,7 @@
|
|||
#include "Mail.h"
|
||||
#include "SpellAuras.h"
|
||||
#include "DBCStores.h"
|
||||
#include "DB2Stores.h"
|
||||
#include "SQLStorages.h"
|
||||
|
||||
#include <cmath>
|
||||
|
|
@ -19285,7 +19286,7 @@ void Player::InitDisplayIds()
|
|||
}
|
||||
}
|
||||
|
||||
/*void Player::TakeExtendedCost(uint32 extendedCostId, uint32 count)
|
||||
void Player::TakeExtendedCost(uint32 extendedCostId, uint32 count)
|
||||
{
|
||||
ItemExtendedCostEntry const* extendedCost = sItemExtendedCostStore.LookupEntry(extendedCostId);
|
||||
|
||||
|
|
@ -19299,7 +19300,7 @@ void Player::InitDisplayIds()
|
|||
if (extendedCost->reqitem[i])
|
||||
DestroyItemCount(extendedCost->reqitem[i], extendedCost->reqitemcount[i] * count, true);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
// Return true is the bought item has a max count to force refresh of window by caller
|
||||
bool Player::BuyItemFromVendorSlot(ObjectGuid vendorGuid, uint32 vendorslot, uint32 item, uint8 count, uint8 bag, uint8 slot)
|
||||
|
|
@ -19384,7 +19385,7 @@ bool Player::BuyItemFromVendorSlot(ObjectGuid vendorGuid, uint32 vendorslot, uin
|
|||
return false;
|
||||
}
|
||||
|
||||
/*if (uint32 extendedCostId = crItem->ExtendedCost)
|
||||
if (uint32 extendedCostId = crItem->ExtendedCost)
|
||||
{
|
||||
ItemExtendedCostEntry const* iece = sItemExtendedCostStore.LookupEntry(extendedCostId);
|
||||
if (!iece)
|
||||
|
|
@ -19424,7 +19425,7 @@ bool Player::BuyItemFromVendorSlot(ObjectGuid vendorGuid, uint32 vendorslot, uin
|
|||
SendEquipError(EQUIP_ERR_CANT_EQUIP_RANK, NULL, NULL);
|
||||
return false;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
uint32 price = (crItem->ExtendedCost == 0 || pProto->Flags2 & ITEM_FLAG2_EXT_COST_REQUIRES_GOLD) ? pProto->BuyPrice * count : 0;
|
||||
|
||||
|
|
@ -19452,8 +19453,8 @@ bool Player::BuyItemFromVendorSlot(ObjectGuid vendorGuid, uint32 vendorslot, uin
|
|||
|
||||
ModifyMoney(-int32(price));
|
||||
|
||||
/*if (crItem->ExtendedCost)
|
||||
TakeExtendedCost(crItem->ExtendedCost, count);*/
|
||||
if (crItem->ExtendedCost)
|
||||
TakeExtendedCost(crItem->ExtendedCost, count);
|
||||
|
||||
pItem = StoreNewItem(dest, item, true);
|
||||
}
|
||||
|
|
@ -19475,8 +19476,8 @@ bool Player::BuyItemFromVendorSlot(ObjectGuid vendorGuid, uint32 vendorslot, uin
|
|||
|
||||
ModifyMoney(-int32(price));
|
||||
|
||||
/*if (crItem->ExtendedCost)
|
||||
TakeExtendedCost(crItem->ExtendedCost, count);*/
|
||||
if (crItem->ExtendedCost)
|
||||
TakeExtendedCost(crItem->ExtendedCost, count);
|
||||
|
||||
pItem = EquipNewItem(dest, item, true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue