mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
20 lines
No EOL
471 B
C++
20 lines
No EOL
471 B
C++
#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();
|
|
} |