Jump to content

a1ien

Members
  • Posts

    6
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by a1ien

  1. + uint32 speed_z = m_spellInfo->EffectMiscValue[eff_idx];

    + if (!speed_z)

    + speed_z = 10;

    + uint32 time = m_spellInfo->EffectMiscValueB[eff_idx];

    + if (!time)

    + time = speed_z * 10;

    This information was incorrect.

    If you take Sniff and compare value from offy, you get different data

    This data from sniff offy spell - http://www.wowhead.com/spell=49575

    First test: distance - 10.931

    Current Position: 5739,467 175,6612 181,5781

    Time: 0x000000AF (175)

    speedZ: float 130,6122

    Dest position: 5735,85 185,9771 181,593

    Second test: distance - 19.637

    Current Position: 5737,253 188,6062 181,593

    Time: 0x0000013B (315)

    speedZ: float 40,31242

    Dest position: 5726,408 204,9769 181,593

    Third test: distance - 8.15411512

    Current Position: 5727,32 163,5015 179,2827

    Time: 0x00000083 (131)

    speedZ: float 233,0866

    Dest position: 5724,258 156,6079 176,1856

  2. For example.

    http://wowhead.com/npc=32216 this vendor show http://wowhead.com/item=44689 only for Alliance

    and show http://wowhead.com/item=44690 only for Horde

    diff --git a/src/game/ItemHandler.cpp b/src/game/ItemHandler.cpp
    index 41796a7..3d9057e 100644
    --- a/src/game/ItemHandler.cpp
    +++ b/src/game/ItemHandler.cpp
    @@ -756,7 +756,8 @@ void WorldSession::SendListInventory(uint64 vendorguid)
                {
                    if((pProto->AllowableClass & _player->getClassMask()) == 0 && pProto->Bonding == BIND_WHEN_PICKED_UP && !_player->isGameMaster())
                        continue;
    -
    +        if((pProto->AllowableRace & _player->getRaceMask()) == 0 && pProto->Bonding == BIND_WHEN_PICKED_UP && !_player->isGameMaster())
    +            continue;
    +
                    ++count;
    
                    // reputation discount

    and another small fix

    If after use filters from vendors will not be a single object that he can offer for sale then the vendor will not open the window

    diff --git a/src/game/ItemHandler.cpp b/src/game/ItemHandler.cpp
    index 41796a7..ce94160 100644
    --- a/src/game/ItemHandler.cpp
    +++ b/src/game/ItemHandler.cpp
    @@ -774,9 +775,11 @@ void WorldSession::SendListInventory(uint64 vendorguid)
            }
        }
    
    -    if ( count == 0 || data.size() != 8 + 1 + size_t(count) * 8 * 4 )
    -        return;
    -
    +    if(data.size() != 8 + 1 + size_t(count) * 8 * 4)
    +        return;
    +    if ( count == 0 )
    +        data << uint8(0);
    +       
        data.put<uint8>(count_pos, count);
        SendPacket( &data );
    }

    + if ( count == 0 )

    + data << uint8(0);

    package from Offy has length of 10 bytes

    but we have if vendor does not offer any item for sale, package have length 9 bytes

    This actually appends bytes

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use