Jump to content

a1ien

Members
  • Posts

    6
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by a1ien

  1. 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 Second test: distance - 19.637 Third test: distance - 8.15411512
  2. Hmmm... For example. If talk with this NPC http://ru.wowhead.com/npc=34252 and you class priest, it should open a blank window. But if not do if ( count == 0 ) data << uint8(0); his not open blank window
  3. The first patch is implemented in [10206] But may be need implement second patch?
  4. Because i does not add this ) And do not me to decide to remove it or not
  5. 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