mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-17 02:40:28 +00:00
Core update item packets (#1624)
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "ItemUsageValue.h"
|
||||
#include "ItemVisitors.h"
|
||||
#include "Playerbots.h"
|
||||
#include "ItemPackets.h"
|
||||
|
||||
class SellItemsVisitor : public IterateItemsVisitor
|
||||
{
|
||||
@@ -116,7 +117,10 @@ void SellAction::Sell(Item* item)
|
||||
|
||||
WorldPacket p;
|
||||
p << vendorguid << itemguid << count;
|
||||
bot->GetSession()->HandleSellItemOpcode(p);
|
||||
|
||||
WorldPackets::Item::SellItem nicePacket(std::move(p));
|
||||
nicePacket.Read();
|
||||
bot->GetSession()->HandleSellItemOpcode(nicePacket);
|
||||
|
||||
if (botAI->HasCheat(BotCheatMask::gold))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user