eluna-scripts-ornfelt/lua/WowEmulationScriptPack/C++/vendor_multi.cpp

20 lines
471 B
C++
Raw Permalink Normal View History

2023-08-16 00:50:59 +02:00
#include "ScriptPCH.h"
#include <cstring>
class vendor_general : public CreatureScript
{
public:
vendor_general()
: CreatureScript("vendor_general")
{
}
bool OnGossipHello(Player* player, Creature* creature)
{
player->currentVendorEntry = -1;
player->GetSession()->SendListInventory(creature->GetGUID());
return true;
}
};
void AddSC_vendor_general()
{
new vendor_general();
}