a1ien
Members-
Posts
6 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Everything posted by a1ien
-
[patch] implement SPLINEFLAG_TRAJECTORY (jump effect visual)
a1ien replied to Auntie Mangos's topic in ... rejectedOld
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 -
[10225][fix] Filter Display items from a vendor(by Faction)
a1ien replied to a topic in ... acceptedOld
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 -
[10225][fix] Filter Display items from a vendor(by Faction)
a1ien replied to a topic in ... acceptedOld
The first patch is implemented in [10206] But may be need implement second patch? -
[10225][fix] Filter Display items from a vendor(by Faction)
a1ien replied to a topic in ... acceptedOld
Some question still alive? Why it not in GIT? -
[10225][fix] Filter Display items from a vendor(by Faction)
a1ien replied to a topic in ... acceptedOld
Because i does not add this ) And do not me to decide to remove it or not -
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
Contact Us
To contact us
click here
You can also email us at [email protected]
Privacy Policy | Terms & Conditions
You can also email us at [email protected]
Privacy Policy | Terms & Conditions
Copyright © getMaNGOS. All rights Reserved.
This website is in no way associated with or endorsed by Blizzard Entertainment®
This website is in no way associated with or endorsed by Blizzard Entertainment®