void Transmogrification::DeleteFakeEntry(Player* player, uint8 slot, Item* itemTransmogrified, SQLTransaction* trans)
{
    //if (!GetFakeEntry(item))
    //    return false;
    DeleteFakeFromDB(itemTransmogrified->GetGUID(), trans);
    player->SetVisibleItemSlot(slot, itemTransmogrified);
}
Exemple #2
0
/*static*/
void Item::DeleteFromDB(SQLTransaction& trans, uint32 itemGuid)
{
    DeleteFakeFromDB(itemGuid); // custom
    PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_ITEM_INSTANCE);
    stmt->setUInt32(0, itemGuid);
    trans->Append(stmt);
}
Exemple #3
0
bool Item::DeleteFakeEntry() // custom
{
    if (!GetFakeEntry())
        return false;
    GetOwner()->UpdateUInt32Value(PLAYER_VISIBLE_ITEM_1_ENTRYID + (GetSlot() * 2), GetEntry());
    DeleteFakeFromDB(GetGUIDLow());
    return true;
}
bool Transmogrification::DeleteFakeEntry(Item* item)
{
    if (!GetFakeEntry(item))
        return false;
    item->GetOwner()->UpdateUInt32Value(PLAYER_VISIBLE_ITEM_1_ENTRYID + (item->GetSlot() * 2), item->GetEntry());
    DeleteFakeFromDB(item->GetGUIDLow());
    return true;
}